set proxy for app-get



The easy way is

 $export http_proxy=http://xxx.xxx.xxx.xxx:xxxx 

if not work, try

$sudo http_proxy=http://xxx.xxx.xxx.xxx:xxxx apt-get update

http:// shall not be missed, otherwise you will encounter below errors :

Cannot initiate the connection to 8080:80 (0.0.31.144).

 

Comments

Popular posts from this blog

How to fix error : no module named sendgrid when try to use sendgrid python lib in PHP.

react-native run-android : sun.security.provider.cert path.SunCertPathBuilderException : unable to find valid certification path to req uested target

react-native run-android : do not build/update modified code(App.js)