已经有一个星期了,每当我运行 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 的软件,但它也给出了相同类型的错误。另外,屏幕右上角有一个红色三角形告诉我:
更新信息已过时。这可能是由于网络问题或存储库不再存在造成的,
现在我在网上搜索了很多关于尝试解决这个问题的方法,所以我运行了很多存储库来查看它们是否有效..但它们都没有用..
我还检查了我的软件源,我在“其他软件”选项卡上勾选或取消勾选了所有内容,但仍然没有任何变化。
这是我的软件源现在的样子:
这也是我的 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 ## N.B. 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 ## N.B. 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 ## N.B. 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
知道如何修复这个问题吗?
答案1
apt
似乎正在使用您自己的计算机作为镜像(127.0.0.1:9666
)。您没有类似的软件apt-cacher
,并且删除/禁用了它吗?
/etc/apt/apt.conf
如果是这种情况,则应在或 上的任何文件中配置该信息/etc/apt/apt.conf.d
。要查看是否在任何这些文件中设置了该信息,请使用 :
cat /etc/apt/apt.conf
grep -r proxy /etc/apt/apt.conf.d/
如果您在这些文件上看到有关代理的任何信息,只需使用sudo gedit <path_to_file>
“#”编辑它并使用注释该部分即可。要知道您应该查看什么,请查看这回答。
之后只需执行此操作sudo apt-get update
即可修复。如果没有,则必须检查为什么它使用 localhost 作为镜像(您是否连接到代理?)。