If using a proxy base network you need to complete the following steps:
...
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"
- Save the file.
- Let's make the Proxy available every time that we use sudo
- Edit the /ect/sudoers file
...
Defaults env_keep += "http_proxy https_proxy ftp_proxy socks_proxy no_proxy JAVA_OPTS
MAVEN_OPTS"
- Edit the /etc/apt/apt.conf file
...