[Bug 1291799] Re: add-apt-repository edits wrong file when readding after upgrading across multiple distro releases
Brian Murray
brian at ubuntu.com
Thu Mar 20 14:49:32 UTC 2014
$ cat /etc/apt/sources.list.d/brian-murray-ppa-trusty.list
deb http://ppa.launchpad.net/brian-murray/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/brian-murray/ppa/ubuntu trusty main
Yes.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1291799
Title:
add-apt-repository edits wrong file when readding after upgrading
across multiple distro releases
Status in “software-properties” package in Ubuntu:
Incomplete
Bug description:
I have added the same PPA across Raring, Saucy, and now Trusty. I
would re-add it with add-apt-repository after updating.
These are the files I now have on my system in /etc/apt/sources.list.d:
scottritchie-build-tests-raring.list
scottritchie-build-tests-raring.list.distUpgrade
scottritchie-build-tests-raring.list.save
scottritchie-build-tests-saucy.list
scottritchie-build-tests-saucy.list.distUpgrade
scottritchie-build-tests-saucy.list.save
scottritchie-build-tests-trusty.list
The bug here is that the actual content of these has been munged in a
weird way. I would expect the -raring.list and -saucy.list files to
be commented out and the -trusty.list to contain the active line,
however instead:
raring.list:
deb http://ppa.launchpad.net/scottritchie/build-tests/ubuntu trusty main # disabled on upgrade to saucy disabled on upgrade to trusty
# deb-src http://ppa.launchpad.net/scottritchie/build-tests/ubuntu raring main
saucy.list:
# deb-src http://ppa.launchpad.net/scottritchie/build-tests/ubuntu saucy main
trusty.list:
# deb-src http://ppa.launchpad.net/scottritchie/build-tests/ubuntu trusty main
It looks like add-apt-repository is just editing the first file it finds with the listing, rather than leaving it commented out and editing the new file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1291799/+subscriptions
More information about the foundations-bugs
mailing list