Comment 7 for bug 554068

Revision history for this message
csantiago (santiago-carlos) wrote :

I add two lines on top and forgot to renumber all the text. The correct text should be:

««
humble_coffee, have you tried to use wget as normal user?

I think the problem is related to sudo. To check it, do the following:

1) Remove, or comment out, your settings of the proxy in wgetrc (either in /etc/wgetrc as in ~/.wgetrc)

2) Set proxy in System->Preferences->Network Proxy and set it to be system-wide

3) sudo su
This will make you enter a root. All the commands after this will run as root, so you don't to start them with SUDO

4) echo $http_proxy

If your proxy is correctly shown then you should be able to execute 5), 6) or 7)

If not, before going to 5) do:
export http_proxy="http://your.proxy.address:port/"

5) wget <URL of the file to download>

or
6) apt-get update

or
7) apt-get install <some package>

If you can run 5) to 7) as described, but cannot run as:
sudo wget <URL of the file to download>
sudo apt-get update
sudo apt-get install <some package>

then the problem is with SUDO that is not reading $http_proxy from environment. That bug is already reported in
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/556293

but it is with very low activity :-(
»»

Sorry about the second post.