df.png

临时设置

export http_proxy=http://172.16.0.4:8118
apt-get update

在命令行临时带入

apt-get -o Acquire::http::proxy="http://172.16.0.4:8118/" update

写入配置

修改/etc/apt/apt.conf(或者/etc/envrionment),增加

Acquire::http::proxy "http://172.16.0.4:8118/";
Acquire::ftp::proxy "ftp://172.16.0.4:8118/";
Acquire::https::proxy "https://172.16.0.4:8118/";

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code