Configure aptitude apt-get with a proxy server

Posted in Linux , howto

Set the http_proxy environment variable to your proxy.

dude@ubuntu:~$ export http_proxy=http://192.168.11.22:8002

ubuntu-installation2
You used to be able to edit /etc/apt/apt.conf in Ubuntu and make an ACQUIRE clause with a funky http::proxy setting, but not anymore. The http_proxy environment variable works well. It’s also used for other applications such as wget.

I’ve tested this in the 64-bit version of Ubuntu 10.04 Lucid Lynx. To make the setting persistent, put it in your .bashrc.

dude@ubuntu:~$ echo “export http_proxy=http://1.2.3.4″ >> ~/.bashrc
dude@ubuntu:~$ source ~/.bashrc
dude@ubuntu:~$ echo $http_proxy
http://1.2.3.4

Posted by admica   @   6 May 2010

Related Posts

Like this post? Share it!

Digg Twitter StumbleUpon Delicious Technorati Facebook RSS

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« Hidden checksum data on Ubuntu website
Next Post
Longest dumbest bash command ever »
Powered by Wordpress   |   Lunated designed by ZenVerse