View Full Version : [all variants] Remove proxy for apt-get

April 21st, 2009, 01:27 AM
Hey all,

im trying to run:

sudo aptitude update

however, i get the responce of:

Err http://mirror.ucc.usyd.edu.au intrepid Release.gpg
Could not connect to localhost:8080 ( - connect (111 Connection refused)

im using a different mirror (but i know it works iv been using it for a while)

I get this response especially the "Could not connect to localhost:8080" because i usually use a ssh tunnel as a proxy.

- adding the following to my /etc/environment file:


here is the output of:

nick@nick-laptop:~$ env | grep proxy
nick@nick-laptop:~$ sudo env | grep proxy

please help, anything information is much appreciated.

April 21st, 2009, 02:02 AM
can you disable this under System Preferences >> Network Proxy?

Slim Odds
April 21st, 2009, 02:08 AM
apt-get uses its own config files to define a proxy.


April 21st, 2009, 02:27 AM
Slimodds: that file dosent exist on my system. which is weird, because your not the first person to mention it.

spider: thanks, you were close.

even though the proxy wasnt enabled, apt-get was still using the "manual" proxy settings because it didnt check to see if the proxy was set to none or manual. so i will report the bug.

April 21st, 2009, 02:31 AM
wonder if localhost was listed under the ignore hosts tab.

November 8th, 2009, 03:37 AM
By clicking reset and choosing manual in System Preferences >> Network Proxy and tehn restarting my laptop works on my end.

Thanks spiderbatdad.

January 4th, 2011, 11:02 AM
I found that my proxy settings were stored in /ect/apt/apt.conf file, in the form:
Acquire::http::Proxy "http://myproxy:8080/"

I found it by grep'ing for my proxy name in the etc/apt folder.

I had nothing in my proxy settings for Auto or Manual, and I had already tried setting them in command line with http_proxy="" etc.

Hope this helps someone.