问题会阻止更新或安装新软件

现在已经过了一个星期,每当我运行sudo apt-get update时它会向我显示:

Err http://archive.ubuntu.com quantal InRelease Err http://archive.ubuntu.com quantal-updates InRelease Err http://archive.ubuntu.com quantal-backports InRelease Err http://archive.ubuntu.com quantal-security InRelease Err http://archive.ubuntu.com quantal-proposed InRelease Err http://archive.canonical.com quantal InRelease Err http://archive.canonical.com quantal 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://dl.google.com stable InRelease Err http://archive.ubuntu.com quantal Release.gpg Unable to connect to 127.0.0.1:9666: Err http://archive.ubuntu.com quantal-updates Release.gpg Unable to connect to 127.0.0.1:9666: Err http://archive.ubuntu.com quantal-backports Release.gpg Unable to connect to 127.0.0.1:9666: Err http://archive.ubuntu.com quantal-security Release.gpg Unable to connect to 127.0.0.1:9666: Err http://archive.canonical.com quantal Release.gpg Unable to connect to 127.0.0.1:9666: Err http://extras.ubuntu.com quantal Release.gpg Unable to connect to 127.0.0.1:9666: Err http://ppa.launchpad.net quantal Release.gpg Unable to connect to 127.0.0.1:9666: Err http://ppa.launchpad.net quantal Release.gpg Unable to connect to 127.0.0.1:9666: Err http://dl.google.com stable Release.gpg Unable to connect to 127.0.0.1:9666: Err http://archive.ubuntu.com quantal-proposed Release.gpg Unable to connect to 127.0.0.1:9666: Err http://archive.canonical.com quantal Release.gpg Unable to connect to 127.0.0.1:9666: Err http://ppa.launchpad.net quantal Release.gpg Unable to connect to 127.0.0.1:9666: Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-backports/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/InRelease W: Failed to fetch http://archive.canonical.com/ubuntu/dists/quantal/InRelease W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/InRelease W: Failed to fetch http://archive.canonical.com/dists/quantal/InRelease W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-proposed/InRelease W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/quantal/InRelease W: Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/quantal/InRelease W: Failed to fetch http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/quantal/InRelease W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-backports/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-proposed/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://archive.canonical.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://archive.canonical.com/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/quantal/Release.gpg Unable to connect to 127.0.0.1:9666: W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg Unable to connect to 127.0.0.1:9666: W: Some index files failed to download. They have been ignored, or old ones used instead. and when i try to download and install a software from terminal it tells me: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

我也试过从Synaptic安装软件它也给我同样的错误..我的屏幕右上方还有一个红色三角形告诉我:

更新信息已过时。 这可能是由网络问题或不再存在的存储库引起的,

现在我在网上搜索了很多试图解决这个问题,所以我运行了大量的存储库,看看它们是否有效..但是没有它们工作..

我检查了我的软件来源,我在“其他软件”选项卡上勾选或取消了所有内容,但仍然没有改变。

这就是我现在的软件来源: 图片1

图片2

图3

图片4

这也是我的etc / apt / source.list的主体:

 # deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release i386 (20121017.2)]/ quantal main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu quantal main restricted deb-src http://archive.ubuntu.com/ubuntu quantal main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://archive.ubuntu.com/ubuntu quantal-updates main restricted deb-src http://archive.ubuntu.com/ubuntu quantal-updates main restricted ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu quantal universe deb-src http://archive.ubuntu.com/ubuntu quantal universe deb http://archive.ubuntu.com/ubuntu quantal-updates universe deb-src http://archive.ubuntu.com/ubuntu quantal-updates universe ## NB software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://archive.ubuntu.com/ubuntu quantal multiverse deb-src http://archive.ubuntu.com/ubuntu quantal multiverse deb http://archive.ubuntu.com/ubuntu quantal-updates multiverse deb-src http://archive.ubuntu.com/ubuntu quantal-updates multiverse ## NB software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://archive.ubuntu.com/ubuntu quantal-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu quantal-backports main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu quantal-security main restricted deb-src http://archive.ubuntu.com/ubuntu quantal-security main restricted deb http://archive.ubuntu.com/ubuntu quantal-security universe deb-src http://archive.ubuntu.com/ubuntu quantal-security universe deb http://archive.ubuntu.com/ubuntu quantal-security multiverse deb-src http://archive.ubuntu.com/ubuntu quantal-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. deb http://archive.canonical.com/ubuntu quantal partner deb-src http://archive.canonical.com/ubuntu quantal partner ## Uncomment the following two lines to add software from Ubuntu's ## 'extras' repository. ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu quantal main deb http://archive.canonical.com/ quantal partner deb-src http://archive.canonical.com/ quantal partner deb-src http://extras.ubuntu.com/ubuntu quantal main deb http://dl.google.com/linux/chrome/deb/ stable main deb-src http://dl.google.com/linux/chrome/deb/ stable main deb http://archive.ubuntu.com/ubuntu quantal-proposed restricted main multiverse universe 

任何想法我怎么能解决这个问题?

apt似乎使用自己的计算机作为镜像( 127.0.0.1:9666 )。 你有没有像apt-cacher这样的软件并删除/禁用它?

如果是这种情况,则应在/etc/apt/apt.conf/etc/apt/apt.conf中的任何文件中配置该信息。 要查看是否在任何这些文件中设置了它,请使用:

 cat /etc/apt/apt.conf grep -r proxy /etc/apt/apt.conf.d/ 

如果您看到有关这些文件的代理的任何信息,只需使用sudo gedit 编辑,然后使用“#”对该部分进行注释。 要弄清楚你应该看什么,看看这个答案。

在此之后只需要进行sudo apt-get update修复。 如果没有,那么你将不得不检查为什么它使用localhost作为镜像(你连接到代理吗?)。