add-apt-repository explodes on missing ppa
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Just saw this on freshly updated Xenial. I think it's trying to be helpful and tell me what PPAs a particular LP team has published, but in the end it explodes:
$ sudo add-apt-repository ppa:juju/next
Traceback (most recent call last):
File "/usr/lib/
lp_page = urllib.
File "/usr/lib/
return opener.open(url, data, timeout)
File "/usr/lib/
response = meth(req, response)
File "/usr/lib/
'http', request, response, code, msg, hdrs)
File "/usr/lib/
return self._call_
File "/usr/lib/
result = func(*args)
File "/usr/lib/
raise HTTPError(
urllib.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
ret = get_ppa_
File "/usr/lib/
return get_info_
File "/usr/lib/
return _get_https_
File "/usr/lib/
raise PPAException("Error reading %s: %s" % (lp_url, reason), e)
softwarepropert
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
return PPAShortcutHand
File "/usr/lib/
info = get_ppa_
File "/usr/lib/
_get_
softwarepropert
The team named '~juju' has no PPA named 'ubuntu/next'
Please choose from the following available PPAs:
* '1.22': 1.22 Updates
* '1.22-proposed': 1.22 Proposed
* '1.23': 1.23 Updates
* 'daily': Juju Daily
* 'devel': juju devel packages
* 'enablement': Juju Enablement
* 'experimental': juju experimental packages
* 'golang': juju-golang
* 'proposed': juju proposed packages
* 'stable': juju stable packages
Error: 'ppa:juju/next' invalid
Related branches
- No reviews requested
tags: | added: patch |
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in software-properties (Ubuntu Xenial): | |
status: | New → Triaged |
importance: | Undecided → Medium |
With this patch the desired behavior is restored: repository ppa:juju/next ubuntu/ next'.
"""
$ fakeroot ./add-apt-
Cannot add PPA: 'ppa:~juju/
The team named '~juju' has no PPA named 'ubuntu/next'
Please choose from the following available PPAs:
* '1.22': 1.22 Updates
* '1.22-proposed': 1.22 Proposed
* '1.23': 1.23 Updates
* 'daily': Juju Daily
* 'devel': juju devel packages
* 'enablement': Juju Enablement
* 'experimental': juju experimental packages
* 'golang': juju-golang
* 'proposed': juju proposed packages
* 'stable': juju stable packages
"""