You need to create a file /etc/apt/apt.conf
with the following content:
For HTTP:
1 |
Acquire::http::Proxy "http://192.168.1.1:8080"; |
For FTP:
1 |
Acquire::ftp::Proxy "ftp://192.168.1.1:2121"; |
You need root permissions to create/edit that file, but for using apt-get you already do so.