apt-add-repository corrupts sources.list with multiple options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ubuntu 12.04, python-
Here is how to reproduce:
echo "deb [arch=amd64 trusted=yes] http://
apt-add-repository ppa:semiosis/
tail -1 /etc/apt/
It shows:
deb [arch=amd64] trusted=yes] http://
Notice that an extra right-hand square bracket has been added after arch=amd64, which means that sources.list is now invalid.
If you correct it, then
apt-add-repository --remove ppa:semiosis/
re-introduces the corruption.
Notes:
(1) The format of the options field is defined in the sources.list(5) manpage
(2) [arch=amd64 trusted=yes] is a valid option set, and is required for the htcondor repo, because it doesn't have i386 packages *and* its packages are not signed
Status changed to 'Confirmed' because the bug affects multiple users.