Synaptic creates duplicate entries (Hoary Preview LiveCD)

Bug #13843 reported by WW
6
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

I am using the Hoary Preview LiveCD (i386).

I used Synaptic to add the universe and multiverse repositories, and Synaptic
created a sources.list with multiple entries for main and restricted.

More specifically:
- Select Settings->Repositories
- Click "+Add"
- Select Hoary Hedgehog
- Click on universe and multiverse to enable these repositories
- Click "Yes" when asked to update.

When I did this I got an error, but I don't think this error is related to the
bug that I am reporting here. A window popped up saying:
--------------------------------------------------------------------------
Could not download all repository indexes

The repository might be no longer available or could not be contacted because of
network problems. If available an older version of the failed index will be
used. Otherwise the repository will be ignored. Check your network connection
and the correct writing of the repository address in the preferences.

http://archive.ubuntu.com/ubuntu/dists/hoary/main/binary-i386/Packages.gz:
Sub-process bzip2 returned an error code (2)
--------------------------------------------------------------------------

I closed the error window, and Synaptic continued.

I then got a Warning window that said:
--------------------------------------------------------------------
The following problems were found on your system:
W: Duplicate sources.list entry http://archive.ubuntu.com hoary/main Packages
(/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_hoary_main_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com hoary/restricted
Packages
(/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_hoary_restricted_binary-i386_Packages)
--------------------------------------------------------------------

The problem is that main and restricted are now listed twice. Here is
the new sources.list:
-------------------------------------------------------------------
deb http://archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://archive.ubuntu.com/ubuntu hoary main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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://archive.ubuntu.com/ubuntu hoary universe
# deb-src http://archive.ubuntu.com/ubuntu hoary universe

deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
--------------------------------------------------------------------

I realize that it is possible to create a bad sources.list if I edit it manually
(as noted in bug 8104). However, it seems that Synaptic should be smart enough
to not break sources.list, especially in the case of simply adding universe and
multiverse.

The fix in Synaptic might be as simple as not including main and restricted in
the extra line that was added to sources.list.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

The current repository editor in synaptic will not allow the creation of
duplicated entries anymore. Please reopen this bug if you can still reproduce
the problem.

Cheeers,
 Michael

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.