Last active
December 26, 2015 09:28
-
-
Save esparta/7129227 to your computer and use it in GitHub Desktop.
Apt-get behind proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add-apt-repository behind proxy | |
#---- Long Term Solution --- | |
#Set export variables onto .bashrc | |
sudo nano ~/.bashrc | |
#Add following lines | |
echo "export http_proxy=http://url:port" >> ~/.bashrc | |
echo "export https_proxy=http://url:port" >> ~/.bashrc | |
#Preserve environment variables | |
sudo visudo | |
# Add the following line | |
#Defaults env_keep = "http_proxy https_proxy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment