如何将乌邦图 20.04 升级到 22.04 呢?
Ubuntu 20.04升级22.04有图形界面和命令行两种方式,升级前记得备份重要数据,下面是详细步骤:
图形界面(新手友好)
1. 打开终端,先更新当前系统软件包:
plaintext
sudo apt update && sudo apt upgrade -y
sudo apt autoremove --purge
2. 打开 Software & Updates ,切换到 Updates 标签,在 Notify me of a new Ubuntu version 中选 For any new version 。
3. 关闭窗口后,打开 Software Updater ,系统会检测到22.04版本,点击 Upgrade ,输入管理员密码,后续跟着弹窗指引操作即可,最后重启系统。
命令行(适配桌面/服务器)
1. 同样先更新并清理系统:
plaintext
sudo apt update && sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo apt autoremove -y
2. 确保安装升级核心工具:
plaintext
sudo apt install update-manager-core -y
3. 执行发行版升级命令,过程中提示确认时输入 y ,遇到配置文件选择时建议保留本地版本:
plaintext
sudo do-release-upgrade
4. 升级完成后重启系统,输入 lsb_release -a ,若显示22.04相关信息则升级成功。