Using apt with proxy

If you are using APT (Advanced Package Tool) and you are bound to use a proxy server to connect to the internet, you have to configure it as follows.

If not existent, you have to create the file /etc/apt/apt.conf

touch /etc/apt/apt.conf

Now insert the following line…

Acquire::http::Proxy http://username:password@proxy:8080;

Please adjust the parameters to your requirements.
When you try “apt-get update”, it should work now.

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>