Archit Arora Archit Arora - 1 year ago 108
Linux Question

Apt-get not working after setting proxy in ubuntu server

Hi Im using ubuntu server.
I have set the proxies using :

echo "export http_proxy='http://username:password@proxyIP:port/'" | tee -a ~/.bashrc

Ive set up http, https and ftp proxies.
works fine but
does not connect.
Please help!

Answer Source

I don't know about apt-get but I've never got yum to work with the environment variables. Instead, I've had to set the proxy via its config.

Here's a related post for the apt-get conf:

Also... how awesome is plain-text passwords sitting in a file that's public-readable by default! (or environment variables and bash history for that matter)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download