[Bug 854841] Re: add-apt-repository will write duplicate entries to /etc/apt/sources.list
John Doe
johndoe32102002 at gmail.com
Tue Feb 7 15:28:09 UTC 2012
This bug is NOT fixed yet!
I am getting:
W: Duplicate sources.list entry http://ppa.launchpad.net/xxxxx oneiric/main amd64 Packages (/var/lib/apt/lists/ppa.launchpad.net_xxxxx_dists_oneiric_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://ppa.launchpad.net/xxxxx/ubuntu/ oneiric/main i386 Packages (/var/lib/apt/lists/ppa.launchpad.net_xxxxx_dists_oneiric_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
After running sudo apt-get update, this problem is not resolved.
lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric
grep -Ri launchpad* /etc/apt/sources.list
deb http://ppa.launchpad.net/steubens/transmission-proxy-support/ubuntu natty main
deb-src http://ppa.launchpad.net/steubens/transmission-proxy-support/ubuntu natty main
deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu oneiric main
deb-src http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu oneiric main
(seems like some are not listed here)
Corrective measure needed:
Implement a check to see if any PPA was already added prior to adding it to the system.
--
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/854841
Title:
add-apt-repository will write duplicate entries to
/etc/apt/sources.list
Status in “software-properties” package in Ubuntu:
Fix Released
Bug description:
Hello,
Add-apt-repository command allows one to add duplicate entries to sources list. Would it be possible to improve this utility it so it adds only unique entries?
Eg. This command, when run twice, adds duplicate entries.
$ sudo add-apt-repository "deb http://archive.canonical.com/ubuntu oneiric partner
$ grep -Ri partner /etc/apt/sources.list
ProblemType: BugDistroRelease: Ubuntu 11.10
Package: python-software-properties 0.81.9
ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
Uname: Linux 3.0.0-11-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
Date: Tue Sep 20 18:38:17 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110919)
PackageArchitecture: all
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bashSourcePackage: 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/854841/+subscriptions
More information about the foundations-bugs
mailing list