[Bug 900081] Re: sources line is modified if a complete apt line is given

Jarno Suni 900081 at bugs.launchpad.net
Mon Apr 6 10:51:17 UTC 2026


This is a deprecated way to add a repository by apt-add-repository and by this syntax you can not give the pocket (i.e. suite or archive for codename) name, but area names (i.e. components). More recent versions of add-apt-repository give you preview of what is going to change and let you cancel before making changes. 
Older documentation tells this syntax only in --help text, not in the manual page. Newer documentation does not tell you to use quotes when using the deprecated ways.

Anyway, the reporter did not give a complete apt line so this is the
expected behavior or at least documented somewhere.

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

Title:
  sources line is modified if a complete apt line is given

Status in software-properties package in Ubuntu:
  Confirmed

Bug description:
  I was trying to add the oneiric-proposed pocket to my
  /etc/apt/sources.list with add-apt-repository instead of using vi.  I
  was using the following command:

  sudo apt-add-repository "http://archive.ubuntu.com/ubuntu/ oneiric-
  proposed main universe"

  and the following line appeared in my sources.list

  deb http://archive.ubuntu.com/ubuntu/ oneiric oneiric-proposed main universe
  deb-src http://archive.ubuntu.com/ubuntu/ oneiric oneiric-proposed main universe

  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-software-properties 0.81.13.1
  ProcVersionSignature: Ubuntu 3.0.0-13.22-generic 3.0.6
  Uname: Linux 3.0.0-13-generic x86_64
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  CheckboxSubmission: 2e6ecd139611830c78226ad04ff4c093
  CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
  Date: Sun Dec  4 16:10:50 2011
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  PackageArchitecture: all
  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)

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





More information about the foundations-bugs mailing list