我已经安装了Ubuntu12.10,因为大约一个月前,我不能从软件中心、突触或终端安装任何程序,也不能更新我安装的软件。以下是软件中心的截图:

您可以看到,程序的信息和安装底部都没有。(在“软件源”中,多体源被选中)
命令sudo apt-get upgrade的日志是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.命令sudo apt-get update的日志是:
Err http://ir.archive.ubuntu.com quantal InRelease
Err http://ir.archive.ubuntu.com quantal-updates InRelease
Err http://ir.archive.ubuntu.com quantal-backports InRelease
Err http://ir.archive.ubuntu.com quantal-security InRelease
Err http://extras.ubuntu.com quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ir.archive.ubuntu.com quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ir.archive.ubuntu.com quantal-updates Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ir.archive.ubuntu.com quantal-backports Release.gpg
Unable to connect to 127.0.0.1:9050:
Ign https://private-ppa.launchpad.net quantal InRelease
Err http://extras.ubuntu.com quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal InRelease
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ir.archive.ubuntu.com quantal-security Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Err http://ppa.launchpad.net quantal Release.gpg
Unable to connect to 127.0.0.1:9050:
Ign https://private-ppa.launchpad.net quantal Release.gpg
Ign https://private-ppa.launchpad.net quantal Release
Err https://private-ppa.launchpad.net quantal/main amd64 Packages
couldn't connect to host
Err https://private-ppa.launchpad.net quantal/main i386 Packages
couldn't connect to host
Ign https://private-ppa.launchpad.net quantal/main Translation-en_US
Ign https://private-ppa.launchpad.net quantal/main Translation-en
Reading package lists... Done
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal-updates/InRelease
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal-backports/InRelease
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal-security/InRelease
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/alexeftimie/ppa/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/alexmurray/indicator-sensors/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/atareao/atareao/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/debfx/virtualbox/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/indicator-multiload/stable-daily/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/jfi/ppa/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/flareget-amd64/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/gtk3/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/quantal/InRelease
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/alexeftimie/ppa/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/alexmurray/indicator-sensors/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/amith/ubuntutools/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/atareao/atareao/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/debfx/virtualbox/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/indicator-multiload/stable-daily/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/jfi/ppa/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/tualatrix/next/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/flareget-amd64/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/gtk3/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050:
W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/motorbike/ubuntu/dists/quantal/main/binary-amd64/Packages couldn't connect to host
W: Failed to fetch https://private-ppa.launchpad.net/commercial-ppa-uploaders/motorbike/ubuntu/dists/quantal/main/binary-i386/Packages couldn't connect to host
W: Some index files failed to download. They have been ignored, or old ones used instead.在更新管理器中,当我想检查更新时,它说:
无法下载下列软件包:
Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal/InRelease Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal-updates/InRelease Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal-backports/InRelease Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal-security/InRelease Failed to download http://extras.ubuntu.com/ubuntu/dists/quantal/InRelease Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050: Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg Unable to connect to 127.0.0.1:9050: Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg Unable to connect to 127.0.0.1:9050: Failed to download http://extras.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9050: Failed to download http://ir.archive.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg Unable to connect to 127.0.0.1:9050: 请帮帮忙。
我已经看过这个更新管理器无法获得更新了,但这对我没有帮助,所以请不要把这个问题标记为重复
发布于 2013-04-14 09:28:51
似乎您已经设置了一个代理服务器“127.0.0.1:9050”,可能是一些反过滤程序之类的。因此,如果您不坚持使用此代理,打开网络并将代理设置为none (或任何其他您需要的代理),然后单击set system wide。然后,您应该能够使用sudo apt-get update更新软件包列表,然后通过sudo apt-get install或使用synaptic或软件中心安装它们。
如果您坚持使用代理服务器,首先检查是否可以使用该代理访问internet (使用firefox或任何其他带有该代理的浏览器并打开网站)。然后在网络中设置代理,并设置系统的宽度。请记住,如果您的代理需要身份验证,则必须手动编辑/etc/apt/apt.conf文件,以类似于
Acquire::http::proxy "http://username:password@proxy:port";
Acquire::https::proxy "https://username:password@proxy:port";
Acquire::ftp::proxy "ftp://username:password@proxy:port";https://askubuntu.com/questions/281279
复制相似问题