Duplicate sources.list

Bug #370090 reported by Matt (Free Geek Intern)

This bug report was converted into a question: question #69475: Duplicate sources.list .

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Medibuntu
Invalid
Undecided
Unassigned

Bug Description

The following bug is for Ubuntu 8.04 - the Hardy Heron.

A little background, Free Geek is a non profit that refurbishes older computers and preloads them with Ubuntu to give to the community in Portland, Or. On each fresh image of Unbuntu 8.04, an error is given when the following command is ran:

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

The error is:
======================
 W: Duplicate sources.list entry http://us.archive.ubuntu.com hardy/main Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com hardy/restricted Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com hardy/universe Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy_universe_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
======================

After apt-get update is ran again, the error seems to be resolved. This happens 100% of the time on fresh installations. All commands can be found at http://wiki.freegeek.org/index.php/Enabling_a_DVD-ROM

Here are the steps to reproduce:

1. Log into Ubuntu
2. Open the terminal
3. sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
4. wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

The following results from step 4:

=======================
oem@freekbox:~$ wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
OK
Get:1 http://web.freegeek.org freegeek Release.gpg [189B]
Ign http://web.freegeek.org freegeek/public Translation-en_US
Ign http://web.freegeek.org freegeek/ubuntu Translation-en_US
Get:2 http://web.freegeek.org freegeek Release [6913B]
Get:3 http://apt.freegeek.org dapper Release.gpg [189B]
Ign http://apt.freegeek.org dapper/main Translation-en_US
Get:4 http://apt.freegeek.org dapper Release [1115B]
Ign http://web.freegeek.org freegeek/public Packages
Ign http://web.freegeek.org freegeek/ubuntu Packages
Hit http://web.freegeek.org freegeek/public Packages
Get:5 http://web.freegeek.org freegeek/ubuntu Packages [1317B]
Ign http://apt.freegeek.org dapper/main Packages
Get:6 http://apt.freegeek.org dapper/main Packages [1938B]
Get:7 http://packages.medibuntu.org hardy Release.gpg [197B]
Ign http://packages.medibuntu.org hardy/free Translation-en_US
Get:8 http://security.ubuntu.com hardy-security Release.gpg [189B]
Hit http://us.archive.ubuntu.com hardy Release.gpg
Ign http://packages.medibuntu.org hardy/non-free Translation-en_US
Get:9 http://packages.medibuntu.org hardy Release [11.7kB]
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Ign http://us.archive.ubuntu.com hardy/main Translation-en_US
Get:10 http://packages.medibuntu.org hardy/free Packages [6334B]
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_US
Ign http://us.archive.ubuntu.com hardy/restricted Translation-en_US
Get:11 http://packages.medibuntu.org hardy/non-free Packages [7274B]
Ign http://security.ubuntu.com hardy-security/universe Translation-en_US
Ign http://us.archive.ubuntu.com hardy/universe Translation-en_US
Get:12 http://security.ubuntu.com hardy-security Release [58.5kB]
Get:13 http://us.archive.ubuntu.com hardy-updates Release.gpg [189B]
Ign http://security.ubuntu.com hardy-security/main Packages
Ign http://security.ubuntu.com hardy-security/restricted Packages
Ign http://security.ubuntu.com hardy-security/main Sources
Ign http://security.ubuntu.com hardy-security/restricted Sources
Ign http://security.ubuntu.com hardy-security/universe Packages
Ign http://security.ubuntu.com hardy-security/universe Sources
Get:14 http://security.ubuntu.com hardy-security/main Packages [201kB]
Get:15 http://security.ubuntu.com hardy-security/restricted Packages [8299B]
Ign http://us.archive.ubuntu.com hardy-updates/main Translation-en_US
Get:16 http://security.ubuntu.com hardy-security/main Sources [31.8kB]
Get:17 http://security.ubuntu.com hardy-security/restricted Sources [809B]
Get:18 http://security.ubuntu.com hardy-security/universe Packages [98.7kB]
Get:19 http://security.ubuntu.com hardy-security/universe Sources [12.6kB]
Ign http://us.archive.ubuntu.com hardy-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com hardy-updates/universe Translation-en_US
Hit http://us.archive.ubuntu.com hardy Release
Get:20 http://us.archive.ubuntu.com hardy-updates Release [58.5kB]
Ign http://us.archive.ubuntu.com hardy/main Packages
Ign http://us.archive.ubuntu.com hardy/restricted Packages
Ign http://us.archive.ubuntu.com hardy/main Sources
Ign http://us.archive.ubuntu.com hardy/restricted Sources
Ign http://us.archive.ubuntu.com hardy/universe Packages
Ign http://us.archive.ubuntu.com hardy/universe Sources
Ign http://us.archive.ubuntu.com hardy-updates/main Packages
Ign http://us.archive.ubuntu.com hardy-updates/restricted Packages
Ign http://us.archive.ubuntu.com hardy-updates/main Sources
Ign http://us.archive.ubuntu.com hardy-updates/restricted Sources
Ign http://us.archive.ubuntu.com hardy-updates/universe Packages
Ign http://us.archive.ubuntu.com hardy-updates/universe Sources
Hit http://us.archive.ubuntu.com hardy/main Packages
Hit http://us.archive.ubuntu.com hardy/restricted Packages
Get:21 http://us.archive.ubuntu.com hardy/main Sources [443kB]
Get:22 http://us.archive.ubuntu.com hardy/restricted Sources [1345B]
Hit http://us.archive.ubuntu.com hardy/universe Packages
Hit http://us.archive.ubuntu.com hardy/universe Sources
Get:23 http://us.archive.ubuntu.com hardy-updates/main Packages [560kB]
Get:24 http://us.archive.ubuntu.com hardy-updates/restricted Packages [8299B]
Get:25 http://us.archive.ubuntu.com hardy-updates/main Sources [145kB]
Get:26 http://us.archive.ubuntu.com hardy-updates/restricted Sources [809B]
Get:27 http://us.archive.ubuntu.com hardy-updates/universe Packages [243kB]
Get:28 http://us.archive.ubuntu.com hardy-updates/universe Sources [48.9kB]
Fetched 1958kB in 6s (297kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://us.archive.ubuntu.com hardy/main Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com hardy/restricted Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://us.archive.ubuntu.com hardy/universe Packages (/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy_universe_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
====================================

Here is the original sources list:
=========================
# deb http://us.archive.ubuntu.com/ubuntu hardy main restricted
# deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted
# deb http://security.ubuntu.com/ubuntu hardy-security main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu hardy universe
deb-src http://us.archive.ubuntu.com/ubuntu hardy universe
deb http://us.archive.ubuntu.com/ubuntu hardy-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu hardy-updates universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu hardy partner
# deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://web.freegeek.org/ freegeek public ubuntu

deb http://us.archive.ubuntu.com/ubuntu hardy main restricted universe

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
# deb http://security.ubuntu.com/ubuntu hardy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
====================================

Thank you,

Matt
<email address hidden>

Changed in medibuntu:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.