APT设置代理

修改配置文件/etc/apt/apt.conf,并增加以下内容:

Acquire::http::proxy "http://uid:pwd@ip:port/";
Acquire::https::proxy "https://uid:pwd@ip:port/";

Leave a Reply

Your email address will not be published. Required fields are marked *

*