由于“无法连接到 localhost:8250”错误,apt-get 更新失败

nul*_*dix 5 apt

我正在尝试运行 sudo apt-get update。我知道服务器已启动并且我的互联网正在运行。任何线索?

sudo apt-get update

Err http://ppa.launchpad.net oneiric InRelease  
Err http://archive.canonical.com oneiric InRelease
Err http://ppa.launchpad.net oneiric Release.gpg
  Unable to connect to localhost:8250:
Err http://archive.canonical.com oneiric Release.gpg
  Unable to connect to localhost:8250:

Reading package lists... Done
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/oneiric/InRelease  
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/oneiric/Release.gpg   
  Unable to connect to localhost:8250:
W: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

nul*_*dix 7

必须Acquire::http::proxy "localhost:8250/";; 从 /etc/apt/apt.conf 中删除该行