Apt-get through proxy

/etc/apt/apt.conf

Add proxy configuration in section Acquire:

Acquire
{
http::proxy "http://login:pass@proxy:port/";
Retries "0";
};


By default template of the file is in /usr/share/doc/apt/examples/apt.conf
You may also use #sudo find / -name apt.conf to find it