ubuntu does not have a Release file 404 Not Found解决方案

操作:

apt update

错误代码:

Ign:1 http://security.ubuntu.com/ubuntu kinetic-security InRelease
Err:2 http://security.ubuntu.com/ubuntu kinetic-security Release
404 Not Found [IP: 91.189.91.81 80]
Ign:3 http://archive.ubuntu.com/ubuntu kinetic InRelease
Ign:4 http://archive.ubuntu.com/ubuntu kinetic-updates InRelease
Ign:5 http://archive.ubuntu.com/ubuntu kinetic-backports InRelease
Err:6 http://archive.ubuntu.com/ubuntu kinetic Release
404 Not Found [IP: 185.125.190.36 80]
Err:7 http://archive.ubuntu.com/ubuntu kinetic-updates Release
404 Not Found [IP: 185.125.190.36 80]
Err:8 http://archive.ubuntu.com/ubuntu kinetic-backports Release
404 Not Found [IP: 185.125.190.36 80]
Reading package lists… Done
E: The repository 'http://security.ubuntu.com/ubuntu kinetic-security 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.
E: The repository 'http://archive.ubuntu.com/ubuntu kinetic 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.
E: The repository 'http://archive.ubuntu.com/ubuntu kinetic-updates 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.
E: The repository 'http://archive.ubuntu.com/ubuntu kinetic-backports 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.

这个是我在docker build的时候报的错误,其实dockerfile都没变过,只是换了一台机器执行。在网上找问题找了半天,看到一年前很多人报issue,最终的结论是,Ubuntu团队推送的镜像存在问题。

原本写的是22.04

FROM ubuntu:22.04

改个tag就好了

FROM ubuntu:jammy

22.04这个版本上一次推送都是16天之前了,不可思议,居然还没修复。