apt -o Acquire::socks::proxy="socks5h://192.168.4.64:10008/" update
apt -o Acquire::http::proxy="socks5h://192.168.4.64:10008/" upgrade
apt -o Acquire::http::proxy="socks5h://192.168.4.64:10008/" install inetutils-telnet

export http_proxy="socks5://192.168.4.64:10008"
export https_proxy="socks5://192.168.4.64:10008"

unset HTTP_PROXY HTTPS_PROXY FTP_PROXY ALL_PROXY NO_PROXY

Writing an apt proxy conf file /etc/apt/apt.conf.d/proxy.conf as below.

Acquire::http::Proxy "socks5h://127.0.0.1:1080";
Acquire::https::Proxy "socks5h://127.0.0.1:1080";
Acquire::socks::Proxy "socks5h://127.0.0.1:1080";
本文链接地址:https://const.net.cn/751.html

标签: none

添加新评论