[Bug 1018327] [NEW] apt-add-repository mangles ppa:sources.list files

Jan Groenewald jan at aims.ac.za
Wed Jun 27 10:31:29 UTC 2012


Public bug reported:

On 12.04 the command

apt-add-repository -y ppa:existing_ppa

mangles the existing ppa sources.list file, causing all updates to be broken,
command line and graphically, requiring manual intervention:

0 root at muizenberg:~#cat /etc/apt/sources.list.d/aims-sagemath-precise.list
deb http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
# deb-src http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
0 root at muizenberg:~#apt-add-repository -y ppa:aims/sagemath
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.x0Deb8zJry --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv C5ACDE79014125D8F25B843ABDCB16CCBE796FF2
gpg: requesting key BE796FF2 from hkp server keyserver.ubuntu.com
gpg: key BE796FF2: "Launchpad PPA for AIMS" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
0 root at muizenberg:~#cat /etc/apt/sources.list.d/aims-sagemath-precise.list
deb-src http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
b-src http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
0 root at muizenberg:~#apt-get update
E: Type 'b-src' is not known on line 2 in source list /etc/apt/sources.list.d/aims-sagemath-precise.list
E: The list of sources could not be read.
100 root at muizenberg:~#

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
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/1018327

Title:
  apt-add-repository mangles ppa:sources.list files

Status in “software-properties” package in Ubuntu:
  Confirmed

Bug description:
  On 12.04 the command

  apt-add-repository -y ppa:existing_ppa

  mangles the existing ppa sources.list file, causing all updates to be broken,
  command line and graphically, requiring manual intervention:

  0 root at muizenberg:~#cat /etc/apt/sources.list.d/aims-sagemath-precise.list
  deb http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
  # deb-src http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
  0 root at muizenberg:~#apt-add-repository -y ppa:aims/sagemath
  Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.x0Deb8zJry --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv C5ACDE79014125D8F25B843ABDCB16CCBE796FF2
  gpg: requesting key BE796FF2 from hkp server keyserver.ubuntu.com
  gpg: key BE796FF2: "Launchpad PPA for AIMS" not changed
  gpg: Total number processed: 1
  gpg:              unchanged: 1
  0 root at muizenberg:~#cat /etc/apt/sources.list.d/aims-sagemath-precise.list
  deb-src http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
  b-src http://ppa.launchpad.net/aims/sagemath/ubuntu precise main
  0 root at muizenberg:~#apt-get update
  E: Type 'b-src' is not known on line 2 in source list /etc/apt/sources.list.d/aims-sagemath-precise.list
  E: The list of sources could not be read.
  100 root at muizenberg:~#

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1018327/+subscriptions




More information about the foundations-bugs mailing list