Ubuntu 升级到版本 24.04.2 LTS

发行版本升级的命令为:

do-release-upgrade

升级提示

最近在检查 Ubuntu 版本的时候有提示:

Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.167.4-microsoft-standard-WSL2 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Mon Feb 24 10:24:47 EST 2025

  System load:  0.16                Processes:             68
  Usage of /:   0.8% of 1006.85GB   Users logged in:       2
  Memory usage: 4%                  IPv4 address for eth0: 172.20.9.222
  Swap usage:   0%

 * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
   just raised the bar for easy, resilient and secure K8s cluster deployment.

   https://ubuntu.com/engage/secure-kubernetes-at-the-edge
New release '24.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

运行命令

运行上面的操作系统升级命令后,会提示下面的信息,随后输入 y 继续。

操作系统升级进程。

随后,操作系统将会从远程下载程序包后进行升级。

升级提示:

选择 Yes 继续。

随后就是回车一路进行升级即可。

检查升级后版本

使用 lsb_release -a 命令可以检查升级后的版本。

2025-02-24_10-42-43