[Bug 994569] Re: add-apt-repository doesn't work behind a proxy [Ubuntu 12.04]
Louis Bouchard
louis.bouchard at canonical.com
Thu Dec 13 15:08:46 UTC 2012
After confirming with Mathieu, I have verified that setting both
http_proxy and https_proxy environment variables will allow add-apt-
repository to work as expected.
Here is an example :
root at PreciseS-kdump:~# export http_proxy="http://10.1.1.3:3128"
root at PreciseS-kdump:~# add-apt-repository -r ppa:canonical-support/support-tools
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 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (7, "couldn't connect to host")
root at PreciseS-kdump:~# export https_proxy="http://10.1.1.3:3128"
root at PreciseS-kdump:~# add-apt-repository -r ppa:canonical-support/support-tools
You are about to remove the following PPA from your system:
Data collection and diagnostic tools useful for technical support
More info: https://launchpad.net/~canonical-support/+archive/support-tools
Press [ENTER] to continue or ctrl-c to cancel removing it
So both http_proxy and https_proxy must be setup to point to the proxy,
since the add-apt-repository command itself require this information
accessible
I have marked the task "Fix released" as the command works correctly
--
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/994569
Title:
add-apt-repository doesn't work behind a proxy [Ubuntu 12.04]
Status in “software-properties” package in Ubuntu:
Fix Released
Status in “software-properties” source package in Precise:
Fix Released
Bug description:
Using Ubuntu 12.04 in Virtual Box:
The software is unusable behind a proxy:
It simply waits and waits, but does get nothing.
I already got the proxy set up in "Networks" in the control center,
for https.
To fix , set the https_proxy variable
https_proxy=http://www.example.com:8000/
Please also see: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/516032
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/994569/+subscriptions
More information about the foundations-bugs
mailing list