1、创建配置文件(有误需要更改) vim /etc/apt/apt.conf 2、添加代理信息 Acquire::http::proxy "http://xxx.xxx.xx.xxx:8080"; 环境变量设置