I had a problem recently, when I remove squid as a proxy server that was installed on Ubuntu 9.04 in my laptop, I can’t run apt-get properly. It seems eventhough I remove squid, the apt-get keep searching the proxy first before updating. So I have to disable or bypass the proxy for the apt-get first.

This is a very simple instruction to follow, I’ve tested it and it’s really working, first thing to do is open your terminal window.. hehe.. and then just enter this 2 lines of command:

export http_proxy= “Press Enter Key”

export ftp_proxy= “Press Enter key”

to start updating your apt source, then type :

sudo apt-get update

If you want to enable proxy for apt-get in the future just type :

export http_proxy=http://username:password@hostname:port
export ftp_proxy=http://username:password@hostname:port

omit the username and password if your proxy dont need it.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)