Ubuntu 10.04 (Lucid Lynx) Behind Proxy

If you have a Ubuntu 10.04 LTS (Lucid Lynx) installation behind a proxy and you would like to use APT-GET and WGET then the below modifications need to be implemented:

Modifying apt.conf:

# sudo nano /etc/apt/apt.conf

And add these two lines:

Acquire::http::Proxy "http://user:pass@proxy-host:port/";
Acquire::ftp::Proxy "http://user:pass@proxy-host:port/";

If a username and password is not required, simply remove them as so:

Acquire::http::Proxy "http://proxy-host:port/";
Acquire::ftp::Proxy "http://proxy-host:port/";

Save & exit.

Modiying WGET

Simply run the below command:

# echo "export http_proxy=http://user:pass@proxy-host:port/" | tee -a ~/.bashrc

If there isn’t a username or password:

# echo "export http_proxy=http://proxy-host:port/" | tee -a ~/.bashrc

Done! 🙂


One Comment to “Ubuntu 10.04 (Lucid Lynx) Behind Proxy”

  1. sam

    For new apt configuration in Ubuntu Lucid (apt.conf.d) better do:

    echo “Acquire::http::Proxy “http://user:pass@proxy-host:port”;” > /etc/apt/apt.conf.d/01proxy


Leave a Comment

Your email address will not be published. Required fields are marked *