![sudo apt-get update 出现 404 错误“E: 存储库‘http://ir.archive.ubuntu.com/ubuntu artful Release’不再具有 Release 文件。”](https://linux22.com/image/1006632/sudo%20apt-get%20update%20%E5%87%BA%E7%8E%B0%20404%20%E9%94%99%E8%AF%AF%E2%80%9CE%3A%20%E5%AD%98%E5%82%A8%E5%BA%93%E2%80%98http%3A%2F%2Fir.archive.ubuntu.com%2Fubuntu%20artful%20Release%E2%80%99%E4%B8%8D%E5%86%8D%E5%85%B7%E6%9C%89%20Release%20%E6%96%87%E4%BB%B6%E3%80%82%E2%80%9D.png)
当我尝试使用 sudo apt-get update 时,它给出了以下错误:
E: The repository 'http://ir.archive.ubuntu.com/ubuntu artful Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ir.archive.ubuntu.com/ubuntu artful-updates Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ir.archive.ubuntu.com/ubuntu artful-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://us.archive.ubuntu.com/ubuntu yakkety Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
这是什么问题?我该如何解决?
答案1
看来你使用的镜子(http://ir.archive.ubuntu.com/) 不管用。
通常每个国家都有一个镜像,由其标识ISO 双字母国家代码,就你的情况而言伊尔。
解决问题的最简单方法是编辑/etc/apt/sources.list
并替换http://ir.archive.ubuntu.com/
为http://SOME_OTHER_COUNTRY_CODE_HERE.archive.ubuntu.com/
还列出了其他 ubuntu 镜像这里与他们的地位。