我已经运行一个原型VM一年了。我已经好几个月没有更新了。我最近尝试使用sudo apt update
更新它。
然而,我得到以下错误:
Ign:1 http://us-east4.gce.archive.ubuntu.com/ubuntu groovy InRelease
Ign:2 http://us-east4.gce.archive.ubuntu.com/ubuntu groovy-updates InRelease
Ign:3 http://us-east4.gce.archive.ubuntu.com/ubuntu groovy-backports InRelease
Err:4 http://us-east4.gce.archive.ubuntu.com/ubuntu groovy Release
404 Not Found [IP: 35.196.128.168 80]
Err:5 http://us-east4.gce.archive.ubuntu.com/ubuntu groovy-updates Release
404 Not Found [IP: 35.196.128.168 80]
Err:6 http://us-east4.gce.archive.ubuntu.com/ubuntu groovy-backports Release
404 Not Found [IP: 35.196.128.168 80]
Ign:7 http://security.ubuntu.com/ubuntu groovy-security InRelease
Err:8 http://security.ubuntu.com/ubuntu groovy-security Release
404 Not Found [IP: 91.189.88.142 80]
Reading package lists... Done
E: The repository 'http://us-east4.gce.archive.ubuntu.com/ubuntu groovy 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-east4.gce.archive.ubuntu.com/ubuntu groovy-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://us-east4.gce.archive.ubuntu.com/ubuntu groovy-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 groovy-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.
我的vm是一个谷歌计算引擎实例。
您使用的Ubuntu发行版似乎已经过时了,当这种情况发生时,Ubuntu会更改存储库的服务器。为了能够更新您的发行版,请编辑/etc/apt/sources.list,并将archive.ubuntu.com/strong>和security.ubuntu.com/strong>更改为旧版本.ubuntui.com/strong>.
但正如@Knud-Larsen所提到的,20.10 groovy被移到了旧版本old-releases.ubuntu.com/ubuntu,而us-east4.gce.archive.ubuntu.ubuntu不适用于"旧的无支撑";。因此,您将无法将us-east4.gce.archive.ubuntu.com/ubuntu更改为old-releases.ubuntu.com。您可以尝试将VM移动到另一个区域/地区,并尝试更新版本。
升级ubuntu版本的步骤:
- 创建服务器或vm的备份
- 通过运行sudoapt-update&;sudo apt upgrade命令
- 通过绑定sudo Reboot命令重新启动Ubuntu Linux系统
- 安装Ubuntu更新工具,运行:sudo apt-Install-update-manager-core
- 启动升级过程,运行:sudo do release upgrade
- 重新启动该框,运行:sudo Reboot
- 验证升级