← Back to team overview

touch-packages team mailing list archive

[Bug 1509702] Re: add-apt-repository adds same repository multiple times

 

BTW:
The --remove option empties both the repository file and its backup copy. 
But the empty files remains in /etc/apt/sources.list.d/ folder.   Is this correct?  

# Our repository files.
$ ls -l /etc/apt/sources.list.d/
-rw-r--r-- 1 root root 207 Out 26 15:41 audio-recorder-ubuntu-ppa-wily.list
-rw-r--r-- 1 root root 136 Out 26 15:41 audio-recorder-ubuntu-ppa-wily.list.save
-------

# Remove a repository. The empty files remain in the system.
$ sudo add-apt-repository --remove ppa:audio-recorder/ppa

$ ls -l /etc/apt/sources.list.d/
-rw-r--r-- 1 root root   0 Out 26 15:41 audio-recorder-ubuntu-ppa-wily.list  
-rw-r--r-- 1 root root   0 Out 26 15:41 audio-recorder-ubuntu-ppa-wily.list.save

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/1509702

Title:
  add-apt-repository adds same repository multiple times

Status in software-properties package in Ubuntu:
  New

Bug description:
  Hello,
  I am running Ubuntu 15.10 and noticed that add-apt-repository adds the same source-repository multiple times.  
  I have accidentally run the add-apt command several times.

  $ sudo add-apt-repository  ppa:audio-recorder/ppa

  A screenshot.
  [url=http://bildr.no/view/ZktOZDRI][img]http://bildr.no/thumb/ZktOZDRI.jpeg[/img][/url]

  I have one `audio-recorder-ubuntu-ppa-wily.list` file in /the
  etc/apt/sources.list.d/  folder:

  $  cat /etc/apt/sources.list.d/audio-recorder-ubuntu-ppa-wily.list

  deb http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
  # deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
  # deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
  # deb-src http://ppa.launchpad.net/audio-recorder/ppa/ubuntu wily main
  -----

  $ lsb_release -a
  No LSB modules are available.
  Distributor ID:	Ubuntu
  Description:	Ubuntu 15.10
  Release:	15.10     Codename:	wily

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: software-properties-gtk 0.96.13
  ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
  Uname: Linux 4.2.0-16-generic x86_64
  ApportVersion: 2.19.1-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sat Oct 24 19:43:44 2015
  InstallationDate: Installed on 2015-10-19 (4 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20151017)
  PackageArchitecture: all
  SourcePackage: software-properties
  UpgradeStatus: No upgrade log present (probably fresh install)

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


Follow ups

References