2011-11-07 18:41:17 |
Manish Sinha (मनीष सिन्हा) |
description |
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
---------
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
--------
$ apt-cache policy python-software-properties
python-software-properties:
Installed: 0.81.13.1
Candidate: 0.81.13.1
-------- |
I was trying to add the elementary PPA, but by 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
---------
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
--------
$ apt-cache policy python-software-properties
python-software-properties:
Installed: 0.81.13.1
Candidate: 0.81.13.1
-------- |
|