sources line is modified if a complete apt line is given
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
I was trying to add the oneiric-proposed pocket to my /etc/apt/
sudo apt-add-repository "http://
and the following line appeared in my sources.list
deb http://
deb-src http://
Notice that oneiric was added before oneiric-proposed. The documentation for add-apt-repository indicates that:
<sourceline> - The apt repository source line to add. This is one of:
a complete apt line in quotes,
I did provide a complete apt line and it was modified by apt-add-repository and now I can't run 'apt-get updates'.
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python-
ProcVersionSign
Uname: Linux 3.0.0-13-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: 2e6ecd139611830
CheckboxSystem: bb422ca46d02494
Date: Sun Dec 4 16:10:50 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: Upgraded to oneiric on 2011-09-29 (66 days ago)
Changed in software-properties (Ubuntu): | |
importance: | Undecided → High |
Changed in software-properties (Ubuntu): | |
status: | Incomplete → Confirmed |
assignee: | Robert Roth (evfool) → nobody |
A "complete apt line in quotes" requires a type at the beginning, (deb, deb-src, rpm, or rpm-src). If you add "deb " to your example, it will work as you expect. Without a type, it matches this argument type: "a repo url and areas in quotes (areas defaults to 'main')" so oneiric-proposed is assumed to be an area.