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
Bugs, which is subscribed to 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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to