linux - 易诺德 | ubuntu | sudo apt-get 更新 |镜像404错误

标签 linux ubuntu apt-get linode ubuntu-16.10

在 Linode (Ubuntu 16.10) 上,通过启用 UFW 防火墙后

sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw allow in "Apache Full"

(虽然我不完全确定防火墙设置是我的问题的根源...)

sudo apt-get update 给我以下消息:

Ign:1 http://mirrors.linode.com/ubuntu yakkety InRelease
Ign:2 http://mirrors.linode.com/ubuntu yakkety-updates InRelease
Ign:3 http://mirrors.linode.com/ubuntu yakkety-backports InRelease
Err:4 http://mirrors.linode.com/ubuntu yakkety Release
  404  Not Found [IP: ****:****:*::****:**** 80]
Err:5 http://mirrors.linode.com/ubuntu yakkety-updates Release
  404  Not Found [IP: ****:****:*::****:**** 80]
Err:6 http://mirrors.linode.com/ubuntu yakkety-backports Release
  404  Not Found [IP: ****:****:*::****:**** 80]
Ign:7 http://security.ubuntu.com/ubuntu yakkety-security InRelease
Err:8 http://security.ubuntu.com/ubuntu yakkety-security Release
  404  Not Found [IP: ****:***:****::** 80]
Reading package lists... Done
E: The repository 'http://mirrors.linode.com/ubuntu yakkety Release' does no longer 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.
E: The repository 'http://mirrors.linode.com/ubuntu yakkety-updates Release' does no longer 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.
E: The repository 'http://mirrors.linode.com/ubuntu yakkety-backports Release' does no longer 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.
E: The repository 'http://security.ubuntu.com/ubuntu yakkety-security Release' does no longer 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.


源文件/etc/apt/source.list:

# deb http://mirrors.linode.com/ubuntu/ yakkety main restricted

# deb http://mirrors.linode.com/ubuntu/ yakkety-updates main restricted
# deb http://security.ubuntu.com/ubuntu yakkety-security main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.linode.com/ubuntu/ yakkety main restricted
# deb-src http://mirrors.linode.com/ubuntu/ yakkety main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.linode.com/ubuntu/ yakkety-updates main restricted
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ yakkety universe
# deb-src http://mirrors.linode.com/ubuntu/ yakkety universe
deb http://mirrors.linode.com/ubuntu/ yakkety-updates universe
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirrors.linode.com/ubuntu/ yakkety multiverse
# deb-src http://mirrors.linode.com/ubuntu/ yakkety multiverse
deb http://mirrors.linode.com/ubuntu/ yakkety-updates multiverse
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirrors.linode.com/ubuntu/ yakkety-backports main restricted universe multiverse
# deb-src http://mirrors.linode.com/ubuntu/ yakkety-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu yakkety partner
# deb-src http://archive.canonical.com/ubuntu yakkety partner

deb http://security.ubuntu.com/ubuntu yakkety-security main restricted
# deb-src http://security.ubuntu.com/ubuntu yakkety-security main restricted
deb http://security.ubuntu.com/ubuntu yakkety-security universe
# deb-src http://security.ubuntu.com/ubuntu yakkety-security universe
deb http://security.ubuntu.com/ubuntu yakkety-security multiverse
# deb-src http://security.ubuntu.com/ubuntu yakkety-security multiverse

我尝试过 sudo apt-get dist-update 但无济于事(还给出了 404 错误)。

我还完成了取消设置http_proxy取消设置https_proxy

apt-get -o Acquire::ForceIPv4=true update - 使用 IPv4 时仍然失败

我可以很好地 ping 8.8.8.8

...还没有任何效果。有人知道如何解决这个问题吗?

最佳答案

Linode 支持的回复:

您使用的 Ubuntu 版本似乎已达到其生命周期结束状态。

https://wiki.ubuntu.com/Releases

您可以引用以下链接,看看是否可以通过其他方式更新。另一个选项是为您的服务器部署更新的 Ubuntu 镜像并将数据复制到新磁盘。

https://help.ubuntu.com/community/EOLUpgrade

关于linux - 易诺德 | ubuntu | sudo apt-get 更新 |镜像404错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48452501/

相关文章:

ubuntu - GitHub Action 生成的 Cargo 构建工件不在本地执行

linux - 是否有适用于 Linux 的 MongoDB GUI 桌面应用程序?

python - Bash 脚本不处理传递的输入参数

apache - 在 Ubuntu 12.04 上的 Apache2 中配置 VirtualHost 的问题

macos - Mac OS X 无法通过 brew 或 apt-get 安装 build-essential

linux - 在 linux 上安装多个包(比如 pip install -r requirements.txt)

linux - 通过 bash 将参数传递给安装程序

linux - lighttpd 和 php 403 - 禁止访问

php - 如何设置文档根目录以使用 Nginx 加载 Laravel 应用程序?

linux - 计算条件跳转