Config socks5 proxy for some of the repos.

Hongyi Zhao hongyi.zhao at gmail.com
Tue Aug 11 02:32:20 UTC 2020


Hi,

I've used several packages repos and I want to use a local socks5
proxy for some of them. Currently, I set the following file:

$ cat /etc/apt/apt.conf.d/12proxy
#https://askubuntu.com/questions/35223/syntax-for-socks-proxy-in-apt-conf
#https://www.jianshu.com/p/bc4d7b758503

# For temperary use:
#sudo apt-get -o Acquire::http::proxy="socks5h://127.0.0.1:18887/" update

Acquire::http::proxy "socks5h://127.0.0.1:18887";
Acquire::https::proxy "socks5h://127.0.0.1:18887";


But this will the socks5 proxy all the repos.

Any hints for my problem will be highly appreciated.

Best regards
-- 
Hongyi Zhao <hongyi.zhao at gmail.com>




More information about the ubuntu-users mailing list