ubuntu下如何设置apt-get使用代理?
1. 往/etc/apt/apt.conf.d/proxy.conf文件中添加以下内容即可,
Acquire::http::Proxy "http://user:password@proxy.server:port/";
Acquire::https::Proxy "http://user:password@proxy.server:port/";
2. 也可以修改/etc/apt/apt.conf来配置代理
1. 往/etc/apt/apt.conf.d/proxy.conf文件中添加以下内容即可,
Acquire::http::Proxy "http://user:password@proxy.server:port/";
Acquire::https::Proxy "http://user:password@proxy.server:port/";
2. 也可以修改/etc/apt/apt.conf来配置代理