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).

 

❤️ Support This Blog


If this post helped you, you can support my writing with a small donation. Thank you for reading.


Comments

Popular posts from this blog

fixed: embedded-redis: Unable to run on macOS Sonoma

Copying MDC Context Map in Web Clients: A Comprehensive Guide

Reset user password for your own Ghost blog