apt-get代理

linux服务器无法连接外网时,需要通过代理连接外网,
设置方式:修改/etc/apt/apt.conf,

Acquire::http::proxy "http://10.251.210.xx:808/";
Acquire::ftp::proxy "ftp://10.251.210.xx:808/";
Acquire::https::proxy "https://10.251.210.xx:808/";

参考:链接

你可能感兴趣的:(apt-get代理)