Proxy – wget Works with Company Proxy but apt-get and dpkg Don’t

aptPROXY

I am trying to install some software in a fresh install of Linux dnoseda 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux.
I already set the variables http_proxy, https_proxy and ftp_proxy and wget works perfectly.

But when I try with apt-get it blocks trying to conect directly to the site, without the proxy. Or the other behavior that I got is a lots of 407 authentication errors. But the wget of those packages works perfectly.

It's something missing? Can you help me?

thanks in advance.

Best Answer

You need to set the apt-parameters:

Acquire::http { Proxy "http://proxy:port"; };

inside a /etc/apt/apt.conf.d/90proxy file or similar.

edit: you need to do an apt-get update after changing the settings.