[Bug 1103200] Re: apt-add-repository corrupts sources.list with multiple options
Julian Andres Klode
juliank at ubuntu.com
Mon Oct 21 18:22:38 UTC 2013
A commit was committed to the upstream repository
commit 8a67219266605b39a522aee08bf7cd3b0b6c3a8c
Author: Julian Andres Klode <jak at debian.org>
Date: Mon Oct 21 20:20:22 2013 +0200
aptsources: Correctly parse multiple options (LP: #1103200)
It's still not optimal and we do not support the arch+ and arch-
options, but it's a beginning.
** Changed in: python-apt (Ubuntu)
Status: Confirmed => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1103200
Title:
apt-add-repository corrupts sources.list with multiple options
Status in “python-apt” package in Ubuntu:
In Progress
Bug description:
[ubuntu 12.04, python-software-properties 0.82.7.3]
Here is how to reproduce:
echo "deb [arch=amd64 trusted=yes] http://research.cs.wisc.edu/htcondor/debian/stable/ squeeze contrib" >>/etc/apt/sources.list
apt-add-repository ppa:semiosis/ubuntu-glusterfs-3.3 </dev/null
tail -1 /etc/apt/sources.list
It shows:
deb [arch=amd64] trusted=yes]
http://research.cs.wisc.edu/htcondor/debian/stable/ squeeze contrib
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/ubuntu-glusterfs-3.3 </dev/null
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1103200/+subscriptions
More information about the foundations-bugs
mailing list