SuperManito/LinuxMirrors: Linux 一键更换国内软件源 (github.com)
# 软件源
bash <(curl -sSL <https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh>)
# docker
bash <(curl -sSL <https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh>)
临时代理
sudo apt-get update -o Acquire::http::proxy="<http://127.0.0.1:4780/>"
配置代理
修改/etc/apt/apt.conf(或者/etc/envrionment),增加
Acquire::http::proxy "<http://127.0.0.1:4780/>";
Acquire::https::proxy "<http://127.0.0.1:4780/>";
Acquire::ftp::proxy "<ftp://127.0.0.1:4780/>";