Duplicate sources aren't fixed by apt-update

Bug #177698 reported by Vadim Peretokin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I have some duplicate lines in my sources.list, apparently. I don't want to tinker with them manually, because I'll remove something wrong. So I tried doing 'sudo apt-get update', which says it'll fix it, but instead, it just reports the error, and tells to run itself again:

vadi@vadi-laptop:~$ sudo apt-get update
[sudo] password for vadi:
Get:1 http://viewizard.com debian/ Release.gpg [189B]
Ign http://viewizard.com debian/ Translation-en_CA
Hit http://viewizard.com debian/ Release
Ign http://viewizard.com debian/ Packages
Hit http://viewizard.com debian/ Packages
Ign http://giss.tv ./ Release.gpg
Ign http://giss.tv ./ Translation-en_CA
Ign http://giss.tv ./ Release
Ign http://giss.tv ./ Packages
Hit http://giss.tv ./ Packages
Get:2 http://packages.medibuntu.org gutsy Release.gpg [189B]
Ign http://packages.medibuntu.org gutsy/free Translation-en_CA
Ign http://packages.medibuntu.org gutsy/non-free Translation-en_CA
Hit http://packages.medibuntu.org gutsy Release
Ign http://packages.medibuntu.org gutsy/free Packages
Ign http://packages.medibuntu.org gutsy/non-free Packages
Hit http://packages.medibuntu.org gutsy/free Packages
Hit http://packages.medibuntu.org gutsy/non-free Packages
Get:3 http://lgp203.free.fr gutsy Release.gpg [189B]
Get:4 http://archive.ubuntu.com gutsy Release.gpg [191B]
Ign http://archive.ubuntu.com gutsy/main Translation-en_CA
Ign http://lgp203.free.fr gutsy/universe Translation-en_CA
Ign http://archive.ubuntu.com gutsy/universe Translation-en_CA
Ign http://archive.ubuntu.com gutsy/restricted Translation-en_CA
Ign http://archive.ubuntu.com gutsy/multiverse Translation-en_CA
Get:5 http://archive.ubuntu.com gutsy-updates Release.gpg [191B]
Ign http://archive.ubuntu.com gutsy-updates/universe Translation-en_CA
Ign http://archive.ubuntu.com gutsy-updates/main Translation-en_CA
Ign http://archive.ubuntu.com gutsy-updates/multiverse Translation-en_CA
Ign http://archive.ubuntu.com gutsy-updates/restricted Translation-en_CA
Get:6 http://archive.ubuntu.com gutsy-proposed Release.gpg [191B]
Ign http://archive.ubuntu.com gutsy-proposed/universe Translation-en_CA
Ign http://archive.ubuntu.com gutsy-proposed/main Translation-en_CA
Ign http://archive.ubuntu.com gutsy-proposed/multiverse Translation-en_CA
Ign http://archive.ubuntu.com gutsy-proposed/restricted Translation-en_CA
Get:7 http://archive.ubuntu.com gutsy-backports Release.gpg [191B]
Ign http://archive.ubuntu.com gutsy-backports/universe Translation-en_CA
Ign http://archive.ubuntu.com gutsy-backports/main Translation-en_CA
Ign http://archive.ubuntu.com gutsy-backports/multiverse Translation-en_CA
Ign http://archive.ubuntu.com gutsy-backports/restricted Translation-en_CA
Hit http://archive.ubuntu.com gutsy Release
Hit http://archive.ubuntu.com gutsy-updates Release
Hit http://lgp203.free.fr gutsy Release
Get:8 http://archive.ubuntu.com gutsy-proposed Release [58.5kB]
Hit http://lgp203.free.fr gutsy/universe Packages
Hit http://archive.ubuntu.com gutsy-backports Release
Hit http://archive.ubuntu.com gutsy/main Packages
Hit http://archive.ubuntu.com gutsy/universe Packages
Hit http://archive.ubuntu.com gutsy/restricted Packages
Hit http://archive.ubuntu.com gutsy/multiverse Packages
Hit http://archive.ubuntu.com gutsy-updates/universe Packages
Hit http://archive.ubuntu.com gutsy-updates/main Packages
Hit http://archive.ubuntu.com gutsy-updates/multiverse Packages
Hit http://archive.ubuntu.com gutsy-updates/restricted Packages
Get:9 http://archive.ubuntu.com gutsy-proposed/universe Packages [24.3kB]
Get:10 http://archive.ubuntu.com gutsy-proposed/main Packages [77.3kB]
Get:11 http://archive.ubuntu.com gutsy-proposed/multiverse Packages [7570B]
Get:12 http://archive.ubuntu.com gutsy-proposed/restricted Packages [4263B]
Hit http://archive.ubuntu.com gutsy-backports/universe Packages
Hit http://archive.ubuntu.com gutsy-backports/main Packages
Hit http://archive.ubuntu.com gutsy-backports/multiverse Packages
Hit http://archive.ubuntu.com gutsy-backports/restricted Packages
Err http://download.tuxfamily.org gutsy Release.gpg
  Could not resolve 'download.tuxfamily.org'
Err http://security.ubuntu.com gutsy-security Release.gpg
  Could not resolve 'security.ubuntu.com'
Err http://wine.budgetdedicated.com gutsy Release.gpg
  Could not resolve 'wine.budgetdedicated.com'
Err http://ppa.launchpad.net gutsy Release.gpg
  Could not resolve 'ppa.launchpad.net'
Err http://apt.wxwidgets.org gutsy-wx Release.gpg
  Could not resolve 'apt.wxwidgets.org'
Err http://debian.ettin.org etch-backports Release.gpg
  Could not resolve 'debian.ettin.org'
Err http://buildbot.no-ip.org gutsy Release.gpg
  Could not resolve 'buildbot.no-ip.org'
Err http://archive.canonical.com gutsy Release.gpg
  Could not resolve 'archive.canonical.com'
Ign http://apt.wxwidgets.org gutsy-wx/main Translation-en_CA
Ign http://download.tuxfamily.org gutsy/avant-window-navigator Translation-en_CA
Get:13 http://download.tuxfamily.org gutsy Release.gpg [189B]
Hit http://apt.wxwidgets.org gutsy-wx Release
Ign http://download.tuxfamily.org gutsy/screenlets Translation-en_CA
Hit http://download.tuxfamily.org gutsy Release
Hit http://apt.wxwidgets.org gutsy-wx/main Packages
Hit http://apt.wxwidgets.org gutsy-wx/main Sources
Hit http://download.tuxfamily.org gutsy Release
Hit http://download.tuxfamily.org gutsy/avant-window-navigator Packages
Hit http://download.tuxfamily.org gutsy/avant-window-navigator Sources
Hit http://download.tuxfamily.org gutsy/screenlets Packages
Ign http://wine.budgetdedicated.com gutsy/main Translation-en_CA
Ign http://debian.ettin.org etch-backports/main Translation-en_CA
Hit http://wine.budgetdedicated.com gutsy Release
Hit http://debian.ettin.org etch-backports Release
Ign http://wine.budgetdedicated.com gutsy/main Packages
Ign http://debian.ettin.org etch-backports/main Packages
Hit http://debian.ettin.org etch-backports/main Packages
Hit http://wine.budgetdedicated.com gutsy/main Sources
Hit http://wine.budgetdedicated.com gutsy/main Packages
Ign http://security.ubuntu.com gutsy-security/main Translation-en_CA
Ign http://security.ubuntu.com gutsy-security/restricted Translation-en_CA
Ign http://security.ubuntu.com gutsy-security/universe Translation-en_CA
Ign http://security.ubuntu.com gutsy-security/multiverse Translation-en_CA
Hit http://security.ubuntu.com gutsy-security Release
Hit http://security.ubuntu.com gutsy-security/main Packages
Hit http://security.ubuntu.com gutsy-security/restricted Packages
Hit http://security.ubuntu.com gutsy-security/main Sources
Hit http://security.ubuntu.com gutsy-security/restricted Sources
Hit http://security.ubuntu.com gutsy-security/universe Packages
Hit http://security.ubuntu.com gutsy-security/universe Sources
Hit http://security.ubuntu.com gutsy-security/multiverse Packages
Ign http://ppa.launchpad.net gutsy/main Translation-en_CA
Ign http://ppa.launchpad.net gutsy Release.gpg
Ign http://archive.canonical.com gutsy/partner Translation-en_CA
Ign http://ppa.launchpad.net gutsy/main Translation-en_CA
Hit http://ppa.launchpad.net gutsy Release
Hit http://archive.canonical.com gutsy Release
Hit http://ppa.launchpad.net gutsy Release
Hit http://archive.canonical.com gutsy/partner Packages
Ign http://ppa.launchpad.net gutsy/main Packages
Ign http://ppa.launchpad.net gutsy/main Sources
Hit http://archive.canonical.com gutsy/partner Sources
Ign http://ppa.launchpad.net gutsy/main Packages
Hit http://ppa.launchpad.net gutsy/main Packages
Hit http://ppa.launchpad.net gutsy/main Sources
Hit http://ppa.launchpad.net gutsy/main Packages
Err http://buildbot.no-ip.org gutsy/main Translation-en_CA
  Could not resolve 'buildbot.no-ip.org'
Hit http://buildbot.no-ip.org gutsy Release
Ign http://buildbot.no-ip.org gutsy/main Packages
Hit http://buildbot.no-ip.org gutsy/main Sources
Hit http://buildbot.no-ip.org gutsy/main Packages
Fetched 172kB in 1m21s (2120B/s)
Failed to fetch http://archive.canonical.com/ubuntu/dists/gutsy/Release.gpg Could not resolve 'archive.canonical.com'
Failed to fetch http://security.ubuntu.com/ubuntu/dists/gutsy-security/Release.gpg Could not resolve 'security.ubuntu.com'
Failed to fetch http://wine.budgetdedicated.com/apt/dists/gutsy/Release.gpg Could not resolve 'wine.budgetdedicated.com'
Failed to fetch http://ppa.launchpad.net/rharding/ubuntu/dists/gutsy/Release.gpg Could not resolve 'ppa.launchpad.net'
Failed to fetch http://apt.wxwidgets.org/dists/gutsy-wx/Release.gpg Could not resolve 'apt.wxwidgets.org'
Failed to fetch http://download.tuxfamily.org/syzygy42/dists/gutsy/Release.gpg Could not resolve 'download.tuxfamily.org'
Failed to fetch http://debian.ettin.org/allacrost/dists/etch-backports/Release.gpg Could not resolve 'debian.ettin.org'
Failed to fetch http://buildbot.no-ip.org/~yokozar/apt/dists/gutsy/Release.gpg Could not resolve 'buildbot.no-ip.org'
Failed to fetch http://buildbot.no-ip.org/~yokozar/apt/dists/gutsy/main/i18n/Translation-en_CA.bz2 Could not resolve 'buildbot.no-ip.org'
Reading package lists... Done
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/universe Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/main Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_main_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/multiverse Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/restricted Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
vadi@vadi-laptop:~$

It should correct the problems as it says.

Revision history for this message
jtholmes (jtholmes) wrote :

Thank you for your report

Revision history for this message
Kiwinote (kiwinote) wrote :

"So I tried doing 'sudo apt-get update', which says it'll fix it"
as far as I can tell it doesn't state that, what did you base that on?

"but instead, it just reports the error"
it reports that there are duplicates as a warning, not as an error
the error is, that it failed to retrieve some index files

"and tells to run itself again"
can't see that either..

Changed in apt:
status: New → Incomplete
Revision history for this message
Vadim Peretokin (vperetokin) wrote :

I based that on this:

W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/universe Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/main Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_main_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/multiverse Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/restricted Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_restricted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems

I suspect W: means warning. It gave a bunch of warnings about duplicate entries, then, with the same W:, told me "You may want to run apt-get update to correct these problems". Yes, this is a problem, and yes, I do want to run apt-get update, which will "correct these problems". It doesn't, so that's what's wrong.

As for "E: Some index files failed to download, they have been ignored, or old ones used instead.", I believe it simply gave that because it couldn't resolve some addresses, which isn't relevant to the issue.

Revision history for this message
Kiwinote (kiwinote) wrote :

sorry, must have overlooked that line. confirming.

Changed in apt:
status: Incomplete → Confirmed
Revision history for this message
Patrick (ccz) wrote :

Exactly the same problem on a Gutsy.....
Not fixed by apt-get update....
W: Duplicate sources.list entry http://security.ubuntu.com gutsy-security/multiverse Packages (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_gutsy-security_multiverse_binary-i386_Packages)

i also have restricted drivers installed.

Thanks for your update....

PAtrick.

Revision history for this message
Julian Andres Klode (juliank) wrote :

You must remove duplicates yourself. Network errors may be corrected the next time update is run, but APT will never write configuration files for you.

Changed in apt (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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