[Bug 1053531] Re: Better error handling of apt-add-repository
Ma Xiaojun
damage3025 at gmail.com
Thu Sep 20 17:33:36 UTC 2012
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1053531
Title:
Better error handling of apt-add-repository
Status in “software-properties” package in Ubuntu:
New
Bug description:
If I issue "sudo add-apt-repository ppa:ubuntu-wine/ppa" without Internet connected.
I get something like this.
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")
Some other users reported that they got similar things for unknown reasons.
(From http://forum.ubuntu.org.cn/viewtopic.php?t=381149)
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 80, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (7, "couldn't connect to host")
Errors are possible and acceptable.
However, such error messages mentioned above are insane.
Please fix it.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: software-properties-common 0.82.7.2
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Thu Sep 20 12:14:21 2012
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
PackageArchitecture: all
ProcEnviron:
TERM=xterm
PATH=(custom, no username)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1053531/+subscriptions
More information about the foundations-bugs
mailing list