修改/etc/apt/apt.conf文件
sudo vi /etc/apt/apt.conf
Acquire::http::proxy "http://域\\用户名:密码@代理地址:端口"; Acquire::https::proxy "http://域\\用户名:密码@代理地址:端口";
保存退出