Synaptic creates duplicate entries (Hoary Preview LiveCD)

Bug #13843 reported by WW on 2005-03-12
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
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.
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 hoary/main Packages
W: Duplicate sources.list entry hoary/restricted

The problem is that main and restricted are now listed twice. Here is
the new sources.list:
deb hoary main restricted
deb-src 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 hoary universe
# deb-src hoary universe

deb hoary-security main restricted
deb-src hoary-security main restricted
deb 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

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

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.


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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