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

Nick Russo 900081 at bugs.launchpad.net
Mon Feb 13 20:48:21 UTC 2012


I can only see two resolutions that might satisfy Brian's request:

1) teach apt-add-repository to differentiate between areas and distro names,
2) remove the 2nd sourceline variant described in the documentation.

The 2nd option would break valid existing scripts that use this tool.

The 1st option requires a database of all valid areas and distro names,
which seems infeasible.

-- 
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:
  Incomplete

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