首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将GCP更新为最新版本?

问如何将GCP更新为最新版本?
EN

Stack Overflow用户
提问于 2022-01-07 21:57:06
回答 1查看 798关注 0票数 -1

我已经运行了一年的VM原型。我好几个月没更新过了。我最近尝试使用sudo apt update更新它。

但是,我得到了以下错误:

代码语言:javascript
复制
    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是Google引擎实例。

EN

回答 1

Stack Overflow用户

发布于 2022-01-18 05:46:35

您使用的Ubuntu发行版似乎已经过时,当这种情况发生时,Ubuntu会更改存储库的服务器。为了能够更新您的发行版,编辑/etc/apt/ change .列表并将archive.ubuntu.com和security.ubuntu.com,更改为old-releases.ubuntu.com.

但是,正如@ Knud所提到的,20.10Groovy被移到了旧版本旧版本/ubuntu.com,而美国-ubuntu 4.gce.Archive.ubuntu.com/ubuntu不适用于“旧的不受支持的”。因此,您将无法将我们- will 4.gce.Archive.ubuntu.com/ubuntu更改为旧版本版本的ubuntu.com。您可以尝试将VM移动到另一个区域/区域并尝试更新版本。

升级ubuntu版本的步骤:

  1. 创建服务器或vm的备份。
  2. 通过运行sudo apt更新& sudo apt升级命令来升级Ubuntu版本的所有安装包。
  3. 通过绑定sudo Reboot命令重新启动Ubuntu系统。
  4. 安装update工具,运行:sudo apt安装更新管理器核心.
  5. 启动升级过程,运行:sudo发布升级.
  6. 重新启动框,运行:sudo重新启动。
  7. 确认升级。
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70627597

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档