編輯/etc/apt/apt.conf文件,加入下面這行,
Acquire::http::Proxy "http://yourproxyaddress:proxyport";
保存退出apt.conf。