Ubuntu proxy settings

For apt, software center etc

edit file /etc/apt/apt.conf

Acquire::http::proxy "http://username:[email protected]:port/";
Acquire::ftp::proxy "ftp://username:[email protected]:port/";
Acquire::https::proxy "https://username:[email protected]:port/";

Environment variables

edit file /etc/environment

http_proxy=http://username:[email protected]:port/
ftp_proxy=ftp://username:[email protected]:port/
https_proxy=https://username:[email protected]:port/

Source: https://askubuntu.com/questions/664777/systemwide-proxy-settings-in-ubuntu

Written on April 19, 2017