在Ubuntu 17.04上sudo apt-get update失败

时间:2018-01-22 09:04:53

标签: linux ubuntu apt-get ubuntu-17.04

在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.

4 个答案:

答案 0 :(得分:10)

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

请参阅source 1ubuntu forum

它对我有用

答案 1 :(得分:5)

就我而言:

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 :(得分:2)

就我而言,我可以通过以下方式下载一些软件包:

我必须更换" us.archive.ubuntu.com"和" security.ubuntu.com"在/etc/apt/sources.list WITH" old-releases.ubuntu.com"然后我就能完成下载一些软件包,比如Ayush Kumar说。

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

我必须在sudo apt-get update中使用sudo apt-get update --allow-unauthenticated标志。

server { listen 8080; listen 8081; }

然后我就能完成更新。

答案 3 :(得分:0)

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