美文网首页
[转]apt-get使用代理

[转]apt-get使用代理

作者: 史班奇 | 来源:发表于2018-05-28 23:05 被阅读0次

在/etc/apt/apt.conf文件中加入如下内容(没有的话新建一个):

$ cat /etc/apt/apt.conf

Acquire::http::proxy "http://192.168.1.100:808/";

Acquire::ftp::proxy "ftp://192.168.1.100:808/";

Acquire::https::proxy "https://192.168.1.100:808/";

如果是要使用用户名密码登录代理服务器,需要按以下格式:

http://username:password@yourproxyaddress:proxyport

OK,可以愉快地通过代理使用apt-get了。

转载自:https://blog.csdn.net/wonxxx/article/details/52917464

相关文章

网友评论

      本文标题:[转]apt-get使用代理

      本文链接:https://www.haomeiwen.com/subject/ckwnjftx.html