If using a proxy base network you need to complete the following steps:

sudo vi /etc/environment
http_proxy=http://proxy.local.com:PORT
https_proxy=http://proxy.local.com:PORT
ftp_proxy=http://proxy.local.com:PORT
socks_proxy=http://proxy.local.com:PORT
no_proxy=localhost
JAVA_OPTS="-DproxyHost=proxy.local.com -DproxyPort=PORT"
MAVEN_OPTS="-DsocksProxyHost=
proxy.local.com -DsocksProxyPort=PORT" 
sudo vi /etc/sudoers
Defaults        env_reset
Defaults        env_keep += "http_proxy https_proxy ftp_proxy socks_proxy no_proxy JAVA_OPTS MAVEN_OPTS"
sudo vi /etc/apt/apt.conf 
Acquire::http::proxy "http://proxy.local.com:PORT";
Acquire::https::proxy "http://proxy.local.com:PORT";

 

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.

Related issues