我正在尝试运行 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.
答案1
必须
Acquire::http::proxy "localhost:8250/";;
从 /etc/apt/apt.conf 中删除该行