snap支持设置http代理,只需要将socket5转为http代理即可。使用polipo
sudo apt install snapd polipo
配置polipo
~ cat /etc/polipo/config
# This file only needs to list configuration variables that deviate
# from the default values. See /usr/share/doc/polipo/examples/config.sample
# and "polipo -v" for variables you can tweak and further information.
logSyslog = true
logFile = /var/log/polipo/polipo.log
socksParentProxy = "localhost:1080"
socksProxyType = socks5
重启polipo
sudo /etc/init.d/polipo restart
设置snap代理
sudo snap set system proxy.http=http://localhost:8123
sudo snap set system proxy.https=http://localhost:8123
apt代理
sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:8000/" update
https://daemon369.github.io/network/2014/06/05/use-proxy-for-apt-get
网友评论