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来配置代理

https://www.cnblogs.com/dakewei/p/10127144.html

posted @ 2020-04-24 16:35  Jello  阅读(1289)  评论(0编辑  收藏  举报