其他分享
首页 > 其他分享> > apt-get临时设置代理

apt-get临时设置代理

作者:互联网

增加一个参数即可:-o Acquire::http::proxy="socks5h://127.0.0.1:1080/"

Acquire::http::proxy “http://127.0.0.1:1080/”
Acquire::ftp::proxy “ftp://127.0.0.1:1080/”
Acquire::https::proxy “https://127.0.0.1:1080/”
Acquire::http::proxy=“socks4h://127.0.0.1:1080/”

例如

sudo apt-get update

改写为:

sudo apt-get -o Acquire::http::proxy="socks5h://127.0.0.1:1080/" update

标签:127.0,http,1080,0.1,Acquire,代理,apt,proxy,get
来源: https://blog.csdn.net/u011932188/article/details/117257619