[Bug 789859] Re: add-apt-repository adds invalid deb line to sources file, if adding an already added, but disabled, PPA

Rune K. Svendsen runesvend at gmail.com
Thu Jul 14 11:34:27 UTC 2011


It turns out we don't have to install anything, in order to reproduce
this bug. Simply:

1. Adding the PPA with add-apt-repository
2. Removing the PPA with ppa-purge
3. Again, adding the PPA with add-apt-repository

reproduces this error.

I'm attaching a terminal log that shows how the third step above adds
the invalid line "ain" to the .list file in question.

Also, I've noticed that this bug seemingly only appears when operating on PPAs which contain a forward slash in the title. Examples:
ppa:gnome3-team/gnome3
ppa:deluge-team/ppa
ppa:oibaf/graphics-drivers

So it seems add-apt-repository somewhere can't handle forward slashes.

** Attachment added: "add-apt-repository adds garbage to .list file"
   https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/789859/+attachment/2207524/+files/add-apt-repository-adds-garbage.txt

** Summary changed:

- add-apt-repository adds invalid deb line to sources file, if adding an already added, but disabled, PPA
+ if PPA contains a forward slash, when adding an already added, but disabled PPA, add-apt-repository adds invalid deb line to sources file

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

Title:
  if PPA contains a forward slash, when adding an already added, but
  disabled PPA, add-apt-repository adds invalid deb line to sources file

Status in “software-properties” package in Ubuntu:
  New

Bug description:
  
  STEPS TO REPRODUCE:
  Long way:
  1. Install oibaf's mesa PPA using add-apt-repository:
  sudo add-apt-repository ppa:oibaf/graphics-drivers
  sudo apt-get update
  sudo apt-get dist-upgrade
  2. Remove this PPA with ppa-purge:
  sudo ppa-purge ppa:oibaf/graphics-drivers
  3. Add the PPA again using add-apt-repository:
  sudo add-apt-repository ppa:oibaf/graphics-drivers

  ----OR----

  Short way:
  1. Place the two files "oibaf-graphics-drivers-natty.list" and "oibaf-graphics-drivers-natty.list.save" that are contained in the attached file sources.list.d.tar.gz in /etc/apt/sources.list.d. These are the files that are produced by follwing steps 1. and 2. above.
  2. Add the repository again:
  sudo add-apt-repository ppa:oibaf/graphics-drivers

  RESULT:
  The file "/etc/apt/sources.list.d/oibaf-graphics-drivers-natty.list" now contains a third, erroneous line that says "ain", causing "apt-get update" to fail with:
  E: Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/oibaf-graphics-drivers-natty.list

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: python-software-properties 0.80.9
  ProcVersionSignature: Ubuntu 2.6.39-0.5~20110427-generic 2.6.39-rc5
  Uname: Linux 2.6.39-0-generic x86_64
  Architecture: amd64
  Date: Sun May 29 14:20:37 2011
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_DK:en
   LANG=en_DK.UTF-8
   SHELL=/bin/bash
  SourcePackage: software-properties
  UpgradeStatus: Upgraded to natty on 2011-04-28 (30 days ago)

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




More information about the foundations-bugs mailing list