blog icon indicating copy to clipboard operation
blog copied to clipboard

给 snap 配置代理

Open hanxi opened this issue 6 years ago • 0 comments

https://kuricat.com/gist/snap-install-too-slow-zmbjy https://blog.shunwww.cn/2019/02/19/yuque/proxy-snap/

# 开始设置代理
$ sudo systemctl edit snapd
加上:
[Service]
Environment="http_proxy=http://127.0.0.1:port"
Environment="https_proxy=http://127.0.0.1:port"

#保存退出。
$ sudo systemctl daemon-reload
$ sudo systemctl restart snapd

hanxi avatar Oct 10 '19 07:10 hanxi