[ubuntu-uk] 'apt' Proxy Woes

Matthew Daubney matt at daubers.co.uk
Sun Jan 18 10:23:46 GMT 2009


On Sun, 2009-01-18 at 07:47 +0000, Stuart Bird wrote:
> Hi
> 
> I am running a recent install of Ubuntu 8.10 x64 on a Dell XPS M1330
> which I use both at work and at home. The issue I am having is that
> the works network is behind a proxy but the home one is not. I use a
> wired connection (eth0) when at work and the wi-fi (wlan0) when at
> home. I can get internet access at home by knocking off the proxy
> settings in Firefox and in the preferences menu, but cannot get
> synaptic or apt-get to work because it is looking for the works proxy.
> 
> I have looked high and low but cannot find where the proxy details are
> set for synaptic/apt.
> 
> Is there a straight forward way of getting this set up to work
> properly.
> 
> Thanks in advance.
> 
> Stu

Hi Stu,

I think synaptic/apt from the gnome menu use the system proxy (system ->
Preferences -> Network Proxy). If you're using them from the command
line you need to set the http_proxy environment variable:

export http_proxy=http://yourproxy.com:proxy_port

I frequently use the command line method at uni.

Hope that helps!

-Matt Daubney





More information about the ubuntu-uk mailing list