Ninvfeng Blog

记录web开发中的所见所得

ubuntu给apt设置代理的方法

mkdir -p /etc/apt/apt.conf.d

tee /etc/apt/apt.conf.d/95proxies <<-'EOF'
Acquire {
    HTTP::proxy "http://127.0.0.1:7890";
    HTTPS::proxy "http://127.0.0.1:7890";
    FTP::proxy "http://127.0.0.1:7890";
}
EOF

2024-11-27T03:54:50.png

文章评论已关闭!