关键词:
【中文标题】Ubuntu apt-get 无法获取软件包 [关闭]【英文标题】:Ubuntu apt-get unable to fetch packages [closed] 【发布时间】:2015-07-30 18:15:49 【问题描述】:刚刚安装了 Ubuntu 13.10 (Saucy),我尝试通过 sudo apt-get install
安装的任何东西都失败并抛出了一系列 404
错误。
示例 - 安装 tmux
[jeeves@HAL] hadoop > sudo apt-get install tmux
[sudo] password for jeeves:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
tmux
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 247 kB of archives.
After this operation, 577 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
tmux
Install these packages without verification [y/N]? Y
Err http://us.archive.ubuntu.com/ubuntu/ saucy/main tmux amd64 1.8-4
404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/t/tmux/tmux_1.8-4_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
在这种情况下,它无法获取存档 URL。
我在安装mysql-server
时得到了类似的东西
....
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.37-0ubuntu0.13.10.1_all.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.37-0ubuntu0.13.10.1_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libd/libdbi-perl/libdbi-perl_1.627-1_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
....
...以及许多其他软件包。
我什至尝试过sudo apt-get update
并使用--fix-missing?
运行
是 Ubuntu 存储库刚刚关闭(考虑到有多少人依赖它,这似乎很奇怪)还是我错过了什么?
编辑:这是我尝试sudo apt-get update
时发生的情况。由于找不到资源,更新本身不起作用
> sudo apt-get update
Hit http://download.virtualbox.org maverick InRelease
Ign http://us.archive.ubuntu.com saucy InRelease
Ign http://us.archive.ubuntu.com saucy-updates InRelease
Ign http://extras.ubuntu.com saucy InRelease
Ign http://us.archive.ubuntu.com saucy-backports InRelease
Hit http://download.virtualbox.org maverick/contrib amd64 Packages
Hit http://download.virtualbox.org maverick/non-free amd64 Packages
Ign http://us.archive.ubuntu.com saucy Release.gpg
Hit http://extras.ubuntu.com saucy Release.gpg
Hit http://download.virtualbox.org maverick/contrib i386 Packages
Ign http://us.archive.ubuntu.com saucy-updates Release.gpg
Hit http://download.virtualbox.org maverick/non-free i386 Packages
Ign http://us.archive.ubuntu.com saucy-backports Release.gpg
Ign http://us.archive.ubuntu.com saucy Release
Ign http://security.ubuntu.com saucy-security InRelease
Hit http://extras.ubuntu.com saucy Release
Ign http://us.archive.ubuntu.com saucy-updates Release
Ign http://security.ubuntu.com saucy-security Release.gpg
Ign http://us.archive.ubuntu.com saucy-backports Release
Ign http://security.ubuntu.com saucy-security Release
Hit http://extras.ubuntu.com saucy/main Sources
Ign http://us.archive.ubuntu.com saucy/main Sources/DiffIndex
Ign http://security.ubuntu.com saucy-security/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/restricted Sources/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted Sources/DiffIndex
Hit http://extras.ubuntu.com saucy/main amd64 Packages
Ign http://us.archive.ubuntu.com saucy/universe Sources/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse Sources/DiffIndex
Hit http://extras.ubuntu.com saucy/main i386 Packages
Ign http://security.ubuntu.com saucy-security/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy/main amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/restricted amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/universe amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse amd64 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/main i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/contrib Translation-en_US
Ign http://security.ubuntu.com saucy-security/main i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/contrib Translation-en
Ign http://us.archive.ubuntu.com saucy/restricted i386 Packages/DiffIndex
Ign http://download.virtualbox.org maverick/non-free Translation-en_US
Ign http://download.virtualbox.org maverick/non-free Translation-en
Ign http://us.archive.ubuntu.com saucy/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/restricted i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/universe i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/multiverse i386 Packages/DiffIndex
Ign http://extras.ubuntu.com saucy/main Translation-en_US
Ign http://extras.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-updates/multiverse i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Sources/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse amd64 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/main i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/restricted i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/universe i386 Packages/DiffIndex
Ign http://us.archive.ubuntu.com saucy-backports/multiverse i386 Packages/DiffIndex
Ign http://security.ubuntu.com saucy-security/main Translation-en_US
Ign http://security.ubuntu.com saucy-security/main Translation-en
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en_US
Ign http://security.ubuntu.com saucy-security/multiverse Translation-en
Ign http://security.ubuntu.com saucy-security/restricted Translation-en_US
Ign http://security.ubuntu.com saucy-security/restricted Translation-en
Ign http://security.ubuntu.com saucy-security/universe Translation-en_US
Ign http://security.ubuntu.com saucy-security/universe Translation-en
Err http://security.ubuntu.com saucy-security/main Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse Sources
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/main amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/main i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/restricted i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/universe i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com saucy-security/multiverse i386 Packages
404 Not Found [IP: 91.189.91.23 80]
Ign http://us.archive.ubuntu.com saucy/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy/main Translation-en
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/main Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy-updates/universe Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/main Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/main Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/multiverse Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/restricted Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/restricted Translation-en
Ign http://us.archive.ubuntu.com saucy-backports/universe Translation-en_US
Ign http://us.archive.ubuntu.com saucy-backports/universe Translation-en
Err http://us.archive.ubuntu.com saucy/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/main i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/restricted i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/universe i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy/multiverse i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/main i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/restricted i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/universe i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-updates/multiverse i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse Sources
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/main i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/restricted i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/universe i386 Packages
404 Not Found [IP: 91.189.91.24 80]
Err http://us.archive.ubuntu.com saucy-backports/multiverse i386 Packages
404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/source/Sources 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.23 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/source/Sources 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/main/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/universe/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/saucy-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.91.24 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
【问题讨论】:
可能您的索引已过期,因此您正在尝试获取不再存在的资源。执行apt-get update
后重试
与编程无关;提名迁移到superuser.com(但它肯定是重复的)。
我试了sudo apt-get update
,但由于缺少资源而失败。请参阅EDIT
中的上述输出。谢谢!
我在Ask Ubuntu
论坛上重新提出了这个问题:askubuntu.com/questions/625484/…
Dockerfile fails to build的可能重复
【参考方案1】:
遇到了类似的问题。
这与使用称为“生命终止版本”的非 LTS 版本的 Ubuntu 相关联。因为那些已经停止支持。您可以在this link 上检查您的 Ubuntu 是否处于生命周期结束的版本。
最简单的解决方案是执行以下两个步骤:
-
备份您的来源列表
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
打开源文件/etc/apt/sources.list
并在
http://us.archive.ubuntu.com/ubuntu/
到
http://旧版本.ubuntu.com/ubuntu/
也对 http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages 执行相同的操作
完成上述操作后运行sudo apt-get update
。
这应该可以解决问题。
警告:请尽快将您的 ubuntu 更新到 LTS 版本,否则您将无法获得最新的安全补丁。这绝对不是您会在生产机器上部署的解决方案。
【讨论】:
我假设这样做存在安全问题,如果有,也许应该修改这个答案并发出一个大警告(即,“注意:生命周期结束的版本不再接收安全更新. 如果你这样做,不要以为你得到了最新的软件!!”)。谢谢! 这应该如何工作?现在我得到:W: Failed to fetch http://old-security.ubuntu
Err:10 http://old-releases.ubuntu.com/ubuntu eoan Release 404 Not Found [IP: 91.189.88.154 90]
【参考方案2】:
我尝试使用:
sudo do-release-upgrade
然后使用:
sudo apt-get update
之后,您将能够安装任何软件包。
如果这对您不起作用,请尝试更改 apt.conf
中的网络配置
【讨论】:
我收到了E: Invalid operation do-release-upgrade
@SouradeepNanda 尝试第二步sudo apt-get update
,如果问题仍然存在,请尝试搜索您遇到错误的原因。也请查看其他解决方案。【参考方案3】:
为了所有 Google 员工,如果您在构建 Docker 映像时遇到此错误,请在失败的 RUN 命令前加上
apt-get update &&
当 Docker 使用缓存图像时会发生这种情况。为什么缓存的图像不会第二次获得最新的 repo 信息,这完全超出了我的理解,但在每一个 apt-get 前添加更新确实可以解决问题。
【讨论】:
缓存的图像可能包含过时的包信息。改为使用--no-cache
运行您的 docker 构建。【参考方案4】:
我一直在和同一件事作斗争。
经过所有研究,这是最好的解决方案.....
将以下内容添加到您的 resolve.conf 文件 /etc/resolv.conf 域名服务器 8.8.8.8 域名服务器 8.8.4.4
https://serverfault.com/questions/717226/ubuntu14-04-unable-to-apt-get-update/771826#771826
【讨论】:
【参考方案5】:为了简单起见,这就是我所做的。
cd /etc/apt
mkdir test
cp sources.lst test
cd test
sed -i -- 's/us.archive/old-releases/g' *
sed -i -- 's/security/old-releases/g' *
cp sources.lst ../
sudo apt-get update
【讨论】:
【参考方案6】:在我的情况下,它无法获取 be.archives.ubuntu.com(比利时),因此我按照接受的答案的建议在 this link 上生成了一个新的 sources.plist。
为我解决的问题就是在生成 sources.plist 时将国家/地区更改为 United States。然后我可以再次运行它。
apt-get update
【讨论】:
不应该是sudo apt-get update
【参考方案7】:
在 MAC 上:在我意识到 ScreenTime 阻止更新网站之前,没有任何帮助!关闭内容过滤修复它?
【讨论】:
哇。您刚刚为我节省了几个小时的调试时间。而且我只为 reddit 开启了内容屏蔽功能!【参考方案8】:当 Virtualbox 的网络错误时,我遇到了这个问题。我已经更新到 NAT 并且能够上网并从 us.archive.ubuntu.com 下载包
【讨论】:
【参考方案9】:这也可能是由使用代理引起的。 检查 /etc/environment 文件中是否有代理定义:
cat /etc/environment
如果您有任何带有 http_proxy 或 https_proxy 大写或小写的内容,那么 unset
每个。
【讨论】:
【参考方案10】:在 Ubuntu WSL 上运行 sudo apt-get install python3-env
时遇到问题:
Err:1 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 python3.5-venv amd64 3.5.2-2ubuntu0~16.04.9
404 Not Found [IP: 2001:67c:1360:8001::23 80]
跑步
sudo apt-get 更新
修复了这些问题。
【讨论】:
【参考方案11】:在尝试了此处给出的所有建议以及this one 等其他线程之后,我仍然无法让apt_get
在我的 Vagrant Ubuntu 16.04 上工作。最后从/etc/apt
中删除文件apt.conf
为我解决了这个问题。我在那个目录中剩下的文件是:
vagrant@default:~$ ls -l /etc/apt/
total 68
drwxr-xr-x 2 root root 4096 Apr 15 12:20 apt.conf.d
drwxr-xr-x 2 root root 4096 May 21 2019 auth.conf.d
-rw-r--r-- 1 root root 53 Mar 19 19:50 preferences
drwxr-xr-x 2 root root 4096 Apr 14 2016 preferences.d
-rw-r--r-- 1 root root 3166 Sep 10 15:55 sources.list
drwxr-xr-x 2 root root 4096 Sep 10 16:04 sources.list.d
-rw-r--r-- 1 root root 17640 Mar 19 20:04 trusted.gpg
-rw-r--r-- 1 root root 17281 Mar 19 20:01 trusted.gpg~
drwxr-xr-x 2 root root 4096 Sep 10 13:45 trusted.gpg.d
【讨论】:
【参考方案12】:如果您在使用 VirtualBox 和虚拟机时遇到问题,我通过更改 设置 -> 网络 -> 附加到 来解决它从 NAT 到 桥接适配器
【讨论】:
【参考方案13】:我最近遇到了 apt-get update 卡在 0% 的问题;
0% [连接到 security.ubuntu.com (2001:67c:1360:8001::21)]
可能是 ipv6 上的某种 DNS 问题。我只是将其添加为解决方法;
-o Acquire::ForceIPv4=true
【讨论】:
【参考方案14】:正如 Tariq Khan 建议的那样,我做了同样的事情,结果成功了..
修复 UBUNTU 14.10 UNICORN APT-GET 更新
先备份repo
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
$ sudo vi /etc/apt/sources.list
将 http://us.archive.ubuntu.com/ubuntu/ 中的 us.archive 或存档重命名为 http://old-release.ubuntu.com/ubuntu/
将http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages重命名为http://old-releases.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages
$ sudo apt-get update
【讨论】:
这些说明中似乎有一个错字......应该是“将us.archive.ubuntu.com/ubuntu中的us.archive或存档重命名为old-releases.ubuntu.com/ubuntu”,具体来说,不是旧版本,而是旧版本...【参考方案15】:我今天尝试了这个非常有趣的解决方案,它在 Ubuntu 服务器上为我工作。 apt
中的某些 DNS 或其他问题使得它坚持不从自定义 PPA 安装某些软件包。我所做的是安装apt-fast 包并使用它来安装我的包而不是apt
。
apt-fast
是apt
的替代品,它在apt
之上工作,但使用aria2c
下载包。它用于提高下载速度。就我而言,它还解决了导致apt
失败的任何网络问题。
使用和apt
一模一样:
sudo apt-fast install package-name
【讨论】:
关于ubuntu安装软件的问题:apt-get和dpkg区别?
...一个底层的工具。上层的工具,如APT,被用于从远程获取软件包以及处理复杂的软件包关系。 三、功能不同1、apt-get:apt-getupgrade不仅可以从相同版本号的发布版中更新软件包,也可以从新版本号的发布版中更新软件包2、dpkg... 查看详情
Docker构建“无法解析'archive.ubuntu.com'”apt-get无法安装任何东西
】Docker构建“无法解析\\\'archive.ubuntu.com\\\'”apt-get无法安装任何东西【英文标题】:Dockerbuild"Couldnotresolve\'archive.ubuntu.com\'"apt-getfailstoinstallanythingDocker构建“无法解析\'archive.ubuntu.com\'”apt-get无法安装任何东西【发布时间... 查看详情
apt-get安装软件时,显示无法定位软件包.请问该怎么解决
...后来换163的源,update后就直接装上了 参考技术C正在分析软件包的依赖关系树正在读取状态信息...完成E:无法定位软件包KPackageKit 参考技术Dsudoapt-getinstallwine就行了也可以用新利得安装也可以用软件碃长百短知的版痊保花管理器安... 查看详情
ubuntu的apt-get/yarm/wget命令详解(代码片段)
...s.list里的软件源地址列表搜索目标软件、并通过维护本地软件包列表来安装和卸载软件。Ubuntu:apt-get命令Ubuntu中apt与apt-get命令的区别一.查看本机是否安装软件whereispackage_name或者whic 查看详情
关于ubuntu安装软件的问题:apt-get和dpkg区别?
...一个底层的工具。上层的工具,如APT,被用于从远程获取软件包以及处理复杂的软件包关系。 三、功能不同1、apt-get:apt-getupgrade不仅可以从相同版本号的发布版中更新软件包,也可以从新版本号的发布版中更新软件包2、dpkg... 查看详情
ubuntu虚拟机通过代理执行软件更新及apt-get的使用
参考技术A首先在所有系统代理配置都配置后,terminal使用apt-get命令时,还是不会使用代理,从而导致软件更新或者安装失败。此时需要用如下命令指定代理sudohttp_proxy='http://...:8080'apt-getupdateupdate成功后,使用命令sudohttp_pro... 查看详情
ubuntu查看apt-get源里面相应软件
...Asudoapt-cachesearchall它会出来一堆软件的列表如果你想要用apt-get命令来安装一个软件,但是你只知道大概有几个字母,那么,你可以用下面的命令来进行查询,看下跟这个字母有关的软件都有哪些,它会给你把列表列出来:sudoapt-cachesearchal... 查看详情
azure上ubuntu使用apt-get
...术A对于Apt-get下载源,不需要添加软件源,可以直接安装软件包。前提条件是已登录操作系统为Ubuntu的云服务器。一、复制原文件备份$sudocp/etc/apt/sources.list/etc/apt/sources.list.bak。二、编辑文件中的源列表#ubuntu的源,防止部分库下载... 查看详情
azure上ubuntu使用apt-get
...术A对于Apt-get下载源,不需要添加软件源,可以直接安装软件包。前提条件是已登录操作系统为Ubuntu的云服务器。一、复制原文件备份$sudocp/etc/apt/sources.list/etc/apt/sources.list.bak。二、编辑文件中的源列表#ubuntu的源,防止部分库下载... 查看详情
如何在ubuntu下安装apt-get?
我用的ubuntu中没有安装apt-get,请问该工具如何安装?1、更新软件数据库:sudoapt-getupdate2、查找你想要的软件:sudoapt-cachesearchsoftwareName3、从查找的结果中找到你想安装的软件,然后:sudoapt-getinstallsoftwareNameYouFound备注:斜体字为... 查看详情
ubuntu命令教程全录
...步骤及卸载方法详解Ubuntu下面到apt-get命令安装和删除deb软件包xrdp登录失败,最终卸载xrdp,重新安装解决Ubuntu14.04下apt-get安装Code::Blocksubuntu16.04安装redis的两种方式(apt和编译方式)和卸载ubuntu下安装go语言;sublime+gocode 查看详情
如何在ubuntu下使用apt-get命令安装qtdesigner
参考技术Aubuntu中由apt-get获得的文件包保存在/var/cache/apt/archives;通过apt-get命令下载的软件包,放在/var/cache/apt/archives目录下;下载文件位置可以在/etc/apt/source.list文件中指定。 查看详情
mac命令行安装软件
之前一直怀念ubuntu下的apt-get,因为实在是方便,需要安装什么,一个命令搞定,相关的依赖包统统由apt-get维护。下载,编译,安装,那叫一个痛快。什么软件用着不爽,一个命令卸载!怀念apt-get之余,发现了替代工具MacPorts,... 查看详情
在ubuntu下用apt-get安装和管理java
...法,(原文OpenJDK6→ubuntu12.04,Open’JDK6→ubuntu12.10+)更新软件包列表sudoapt-getupdate检查是否已经安装javajava-version如果没有安装,继续。(这一步安装JRE,可以跳过–译者注)sudoapt-geti 查看详情
ubuntu无法更新源
10.04更新源的时候(既输入sudoapt-getupdate后),我嫌它慢就直接把命令行窗口关了。结果接下来再更新源的时候就提示如下:E:无法获得锁/var/lib/apt/lists/lock-open(11:资源暂时不可用)E:无法对状态列表目录加锁请问这个问题怎么处理... 查看详情
我在 Ubuntu 16.04 上运行 apt-get update 时无法解决“代理”错误
】我在Ubuntu16.04上运行apt-getupdate时无法解决“代理”错误【英文标题】:Igetafailuretoresolve\'proxy\'erroronrunningapt-getupdateonUbuntu16.04【发布时间】:2017-09-2305:33:34【问题描述】:当我在设置静态ip后在Ubuntu16.04上运行apt-getupdate时,我得... 查看详情
跪求大神告诉本屌丝linux下用apt-get这个命令时软件包无法定位这个问题产生的原因。(应该不
跪求大神告诉本屌丝Linux下用apt-get这个命令时软件包无法定位这个问题产生的原因。(应该不是换源的问题,几乎都换遍了,还是这样)机子网络正常。参考技术A你是要定位什么问题啊?追问额。。。。就是当用apt-get安装命令时... 查看详情
ubuntu16.04安装玩qq后,更新或apt-get报错
apt-getinstallpython-pip正在读取软件包列表...完成正在分析软件包的依赖关系树正在读取状态信息...完成您可能需要运行“apt-get-finstall”来纠正下列错误:下列软件包有未满足的依赖关系:python-pip:依赖:python-pip-whl(=8.1.1-2)但是... 查看详情