Using adept apt-get behind proxy

Create or edit /etc/apt/apt.conf

Acquire::http::Proxy "http://[[user:password]@]proxy:port”;

Sometimes you don’t need [user:password]. Just type:

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