背景信息

在Ubuntu 23.04操作系统上执行apt-get update命令更新操作系统时,得到以下错误

# apt-get update
Ign:1 http://mirrors.aliyun.com/ubuntu lunar InRelease
Ign:2 http://mirrors.aliyun.com/ubuntu lunar-updates InRelease
Ign:3 http://mirrors.aliyun.com/ubuntu lunar-backports InRelease
Err:4 http://mirrors.aliyun.com/ubuntu lunar Release
  404  Not Found [IP: 47.105.29.118 80]
Err:5 http://mirrors.aliyun.com/ubuntu lunar-updates Release
  404  Not Found [IP: 47.105.29.118 80]
Err:6 http://mirrors.aliyun.com/ubuntu lunar-backports Release
  404  Not Found [IP: 47.105.29.118 80]
Ign:7 http://security.ubuntu.com/ubuntu lunar-security InRelease
Err:8 http://security.ubuntu.com/ubuntu lunar-security Release
  404  Not Found [IP: 185.125.190.83 80]
Reading package lists... Done
E: The repository 'http://mirrors.aliyun.com/ubuntu lunar 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://mirrors.aliyun.com/ubuntu lunar-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://mirrors.aliyun.com/ubuntu lunar-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://security.ubuntu.com/ubuntu lunar-security 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.
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.