在Ubuntu 17.04上sudo apt-get update失败

问题描述 投票:6回答:4

在ubuntu 17.04 Zesty Zapus上运行sudo apt-get update时,我收到以下错误。我发布了错误行。我想安装像matplotlib和tkinter这样的python库,因为上面的命令没有成功运行,因此无法安装。请建议我做什么。

Err:9 http://security.ubuntu.com/ubuntu zesty-security/main amd64 Packages
  404  Not Found [IP: 2001:67c:1560:8001::14 80]
Err:25 http://in.archive.ubuntu.com/ubuntu zesty/main i386 Packages
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:81 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Err:113 http://in.archive.ubuntu.com/ubuntu zesty-backports/main amd64 Packages
  404  Not Found [IP: 2001:67c:1360:8001::21 80]
Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty/main/binary-i386/Packages  404  Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-updates/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-backports/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:1360:8001::21 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
linux ubuntu apt-get ubuntu-17.04
4个回答
10
投票

你可以通过以下方式解决它:只需用old-releases.ubuntu.com替换/etc/apt/sources.list中的us.archive.ubuntu.com和security.ubuntu.com,然后你就可以完成更新了。

请参阅source 1ubuntu forum

它对我有用


6
投票

就我而言:

sed -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list 
sed -e 's/security.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list 

2
投票

就我而言,我可以通过执行以下操作来下载一些软件包:

我不得不在/etc/apt/sources.list中用“old-releases.ubuntu.com”替换“us.archive.ubuntu.com”和“security.ubuntu.com”然后我就能完成下载一些像Ayush Kumar这样的包裹说。

对于我的托管公司Linode列出的其他更新,我使用了以下内容:

我不得不使用--allow-unauthenticated标志与sudo apt-get update。

sudo apt-get update --allow-unauthenticated

然后我就能完成更新。


0
投票

17.04没有得到Ubuntu的进一步支持。因此,对我有用的解决方案是将其升级到17.10,因为没有其他解决方案有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.