编辑/etc/apt/apt.conf文件,加入下面这行,

  Acquire::http::Proxy "http://yourproxyaddress:proxyport";

  保存退出apt.conf。