月度归档:2026年03月

apt怎样使用socks代理

sudo http_proxy="socks5h://192.168.0.158:1080" https_proxy="socks5h://192.168.0.158:1080" apt install cmake gdb
或者
sudo apt -o Acquire::http::Proxy="socks5h://192.168.0.158:1080" update

curl --socks5 192.168.0.158:1080 https://baidu.com