How to bypass proxy server for apt-get in Ubuntu 9.04
- December 23rd, 2009
- Posted in Documentation
- By Adnan Rahim
- Write comment
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:portexport ftp_proxy=http://username:password@hostname:port
omit the username and password if your proxy dont need it.



















No comments yet.