Ben Chuanlong Du's Blog

It is never too late to learn.

Configure Proxy for Apt

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Add the following lines into the file /etc/apt/apt.conf, where proxy_server is the address/ip of the server and port is the port of the proxy service.

Acquire::http::Proxy "proxy_server:port";
Acquire::https::Proxy "proxy_server:port";

A HTTP proxy can be used as both HTTP and HTTPS proxy.

Question

  1. Does apt support socks proxy? If not, can a socks proxy be used as HTTP/HTTPS proxy for apt?

Comments