sudo apt-add-repository ppa: results in IndexError: string index out of range
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Released
|
High
|
Unassigned | ||
software-properties (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
$ sudo apt-add-repository ppa
Error: 'ppa' invalid
Just saying ppa without a user- or ppa name fails gracefully and informs the user it doesn't work. However, if we add the ':' separator, it attempts and fails to parse the string:
$ sudo apt-add-repository ppa:
Traceback (most recent call last):
File "/usr/bin/
shortcut = shortcut_
File "/usr/lib/
ret = factory(shortcut)
File "/usr/lib/
return PPAShortcutHand
File "/usr/lib/
self.shortcut = mangle_
File "/usr/lib/
if (user[0] == "~"):
IndexError: string index out of range
This should handle the error more gracefully and display a similar error message to the user as above.
(See also bug 1405951 which is unrelated but similar)
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: software-
ProcVersionSign
Uname: Linux 3.16.0-28-generic x86_64
ApportVersion: 2.15.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Dec 27 15:06:46 2014
InstallationDate: Installed on 2014-12-19 (7 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141211)
PackageArchitec
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
description: | updated |
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Medium |
importance: | Medium → High |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in hundredpapercuts: | |
status: | Confirmed → Fix Released |
On Ubuntu14.10 with latest update I have the same error
# apt-add-repository ppa: apt-add- repository" , line 119, in <module> handler( line) python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 839, in shortcut_handler python3/ dist-packages/ softwarepropert ies/ppa. py", line 382, in shortcut_handler ler(shortcut) python3/ dist-packages/ softwarepropert ies/ppa. py", line 345, in __init__ ppa_shortcut( shortcut) python3/ dist-packages/ softwarepropert ies/ppa. py", line 133, in mangle_ppa_shortcut
Traceback (most recent call last):
File "/usr/bin/
shortcut = shortcut_
File "/usr/lib/
ret = factory(shortcut)
File "/usr/lib/
return PPAShortcutHand
File "/usr/lib/
self.shortcut = mangle_
File "/usr/lib/
if (user[0] == "~"):
IndexError: string index out of range