[Bug 680203] Re: `apt-add-repository --remove` doesn't remove deb-src lines

Launchpad Bug Tracker 680203 at bugs.launchpad.net
Thu Feb 2 00:47:45 UTC 2012


*** This bug is a duplicate of bug 838507 ***
    https://bugs.launchpad.net/bugs/838507

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: software-properties (Ubuntu)
       Status: New => 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/680203

Title:
  `apt-add-repository --remove` doesn't remove deb-src lines

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

Bug description:
  With the same <sourceline> argument, the `apt-add-repository` command
  is not entirely reversed by the `apt-add-repository -r` command.

  For example:

    $ sudo apt-add-repository ppa:dajhorn/ppa
    $ cat /etc/apt/sources.list.d/dajhorn-ppa-maverick.list
    deb http://ppa.launchpad.net/dajhorn/ppa/ubuntu maverick main
    deb-src http://ppa.launchpad.net/dajhorn/ppa/ubuntu maverick main
    $ sudo apt-add-repository --remove ppa:dajhorn/ppa
    $ cat /etc/apt/sources.list.d/dajhorn-ppa-maverick.list
       deb-src http://ppa.launchpad.net/dajhorn/ppa/ubuntu maverick main

  Notice that the deb-src line persists.  The expected behavior is that
  all lines added by `apt-add-repository` are removed and/or the list
  file is entirely deleted.

  Furthermore, `apt-add-repository --remove` doesn't handle an explicit
  deb-src line:

    $ apt-add-repository --remove 'deb-src http://ppa.launchpad.net/dajhorn/ppa/ubuntu maverick main'
    $ echo $?
    0
    $ cat dajhorn-ppa-maverick.list
    deb-src http://ppa.launchpad.net/dajhorn/ppa/ubuntu maverick main

  The expected behavior is the deletion of the given deb-src line.

  If the <sourceline> argument doesn't exist, then an error message is
  emitted, but the result code is incorrect:

    $ apt-add-repository --remove 'deb-src http://ppa.launchpad.net/dajhorn/ppa/bogus maverick main'
    Error: 'deb-src http://ppa.launchpad.net/dajhorn/ppa/bogus maverick main' doesn't exist in a sourcelist file
    $ echo $?
    0  

  
  $ apt-cache policy python-software-properties
  python-software-properties:
    Installed: 0.76.7
    Candidate: 0.76.7
    Version table:
   *** 0.76.7 0
          500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64 Packages
          100 /var/lib/dpkg/status
  $ lsb_release -rd
  Description:	Ubuntu 10.10
  Release:	10.10

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




More information about the foundations-bugs mailing list