Ubuntu 22.04 LTS 升级到 Ubuntu 24.04 LTS

2025年02月16日 · 时光印记 · 85次阅读

经过开源社区多年的辛勤工作和奉献,Ubuntu 24.04 LTS 终于发布了。它包含了新功能、升级的软件版本和性能改进,大大增强了整体用户体验。
在本指南中,我们将逐步探索如何从 Ubuntu 22.04 升级到 Ubuntu 24.04。
(1)备份 Ubuntu 22.04
在升级之前,确保你备份了所有重要文件和目录。如升级失败,你仍然可以访问文件。比如你可以使用Timeshift 实用程序完成备份。
(2)升级系统
备份就绪后,将系统升级到最新的 22.04 版本。

sudo apt update

将已安装的软件包升级到最新版本

sudo apt upgrade -y

重新启动系统以完成系统升级

sudo reboot

检查系统是否运行最新的 22.04 版本

lsb_release -a

(3)安装 Update Manager Core
系统更新后,就可以开始迁移到 Ubuntu 24.04 了。请确保您已经准备好了 update-manager-core ,这是一个管理发行版升级并简化升级过程的包。

安装 update-manager-core

sudo apt install update-manager-core

(4)从 22.04 升级到 24.04

执行 do-release-upgrade 命令,升级到 Ubuntu 24.04 LTS 版本

sudo do-release-upgrade -d

升级需要相当长的时间,一址键入“ y”按 ENTER 继续,这取决于你的互联网连接和安装包的数量。

升级成功后,需要重新启动系统,键入“ y”,按 ENTER 继续

(5)验证 Ubuntu 24.04 版本

系统重启后,检查 Ubuntu 的版本

lsb_release -a

标签:none

最后编辑于:2025-02-16 13:57

评论

  1. 2025-03-09 19:50

    Greetings! I know this is kinda off topic however I'd figured
    I'd ask. Would you be interested in trading links or maybe guest
    authoring a blog post or vice-versa? My blog
    addresses a lot of the same topics as yours and I feel we
    could greatly benefit from each other. If you are interested feel free to shoot me an e-mail.
    I look forward to hearing from you! Fantastic blog
    by the way!

    回复