I was trying to add the elementary PPA, but mistake added a ~ after :
$ sudo add-apt-repository ppa:~elementaryart/elementarydesktop
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 88, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 65, in get_ppa_info_from_lp
lp_page = urlopen(req).read()
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 400, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 513, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 438, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 521, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
Expected: The exception should be handled and a friendly error message should be shown instead of a verbose exception
I was trying to add the elementary PPA, but mistake added a ~ after :
$ sudo add-apt-repository ppa:~elementary art/elementaryd esktop add-apt- repository" , line 88, in <module> info_from_ lp(user, ppa_name) python2. 7/dist- packages/ softwarepropert ies/ppa. py", line 65, in get_ppa_ info_from_ lp python2. 7/urllib2. py", line 126, in urlopen python2. 7/urllib2. py", line 400, in open python2. 7/urllib2. py", line 513, in http_response python2. 7/urllib2. py", line 438, in error chain(* args) python2. 7/urllib2. py", line 372, in _call_chain python2. 7/urllib2. py", line 521, in http_error_default req.get_ full_url( ), code, msg, hdrs, fp)
Traceback (most recent call last):
File "/usr/bin/
ppa_info = get_ppa_
File "/usr/lib/
lp_page = urlopen(req).read()
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(
urllib2.HTTPError: HTTP Error 404: Not Found
Expected: The exception should be handled and a friendly error message should be shown instead of a verbose exception
---------
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
--------
$ apt-cache policy python- software- properties software- properties:
python-
Installed: 0.81.13.1
Candidate: 0.81.13.1
--------