Synaptic creates duplicate entries (Hoary Preview LiveCD)
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-
- 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://
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://
(/var/lib/
W: Duplicate sources.list entry http://
Packages
(/var/lib/
-------
The problem is that main and restricted are now listed twice. Here is
the new sources.list:
-------
deb http://
deb-src http://
## 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://
# deb-src http://
deb http://
deb-src http://
deb http://
-------
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.
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