apt-add-repository returns "user or team does not exist." when erroring out due to proxy auth needed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I have just installed a fresh Ubuntu 15.10 to my machine and run into trouble with adding ppa repositories using apt-add-repository:
for e.g. running
apt-add-repository ppa:git-core/ppa
Cannot add PPA: 'ppa:~git-
ERROR: '~git-core' user or team does not exist.
After debugging a lot of code, I found the trouble, the used proxy-server needs authentification but the apt-add-repository does not throw a correct error message fro this case:
The PPAException raised here seems to be interpreted as not available, which is rather hard to debug.
def _get_https_
print(
try:
request = urllib.
lp_page = urllib.
json_data = lp_page.
print(" RV: %s"%str(json_data))
except (URLError, HTTPException) as e:
# HTTPException doesn't have a reason but might have a string
# representation
print(e)
reason = hasattr(e, "reason") and e.reason or e
raise PPAException("Error reading %s: %s" % (lp_url, reason), e)
The last print(e) gives me the hint what went wrong:
<urlopen error Tunnel connection failed: 407 Proxy Authorization Required>
For the future it would be great to get a correct error message.
summary: |
- apt-add-repository always returns "user or team does not exist." for ppa - repos + apt-add-repository returns "user or team does not exist." when erroring + out due to proxy auth needed |
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Low |
Status changed to 'Confirmed' because the bug affects multiple users.