无法将 Ubuntu 13.04 升级到 13.10(W:无法获取 http://.../ubuntu/dists/natty-backports/...)

无法将 Ubuntu 13.04 升级到 13.10(W:无法获取 http://.../ubuntu/dists/natty-backports/...)

我无法将我的 Ubuntu 从 13.04 升级到 13.10

这是我尝试升级时出现的错误:

W: GPG error: http://download.opensuse.org  Release: The following signatures were invalid: KEYEXPIRED 1386276565
W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/main/source/Sources  404  Not Found

W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/restricted/source/Sources  404  Not Found

W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/universe/source/Sources  404  Not Found

W: Failed to fetch http://th.archive.ubuntu.com/ubuntu/dists/natty-backports/multiverse/source/Sources  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

我已经尝试过什么了?

  1. 在 Ubuntu 软件中心 > 软件源上取消选中类似 ..来自 CD-ROM.. 的内容。
  2. 尝试使用此命令“sudo rm -rf /var/lib/apt/lists/*”
  3. 尝试更换下载服务器

我怎么解决这个问题?

答案1

在某些时候,您为错误中提到的那个存储库添加了一个 apt 源natty-backports。由于某种原因,此存储库不再可用。

找到这个;它将是中的一行/etc/apt/sources.list或中的文件/etc/apt/sources.list.d。然后删除该行或文件,保存并重试。

相关内容