Ubuntu查看当前版本:22.04.5 LTS

bash
执行命令:
sudo apt update && sudo apt upgrade -y
bash
然后执行这个命令,这个命令运行的时间非常久,下载安装内容很多
sudo apt dist-upgrade -y
bash
然后执行
sudo apt autoremove -y
bash
更新没安装完整?
sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
该如何选?
keep the local version currently installed(当前选中项,最稳妥常规选择)

是否自动重启 Docker 守护进程?
绝大多数常规场景 → 选<Yes>(推荐默认选项)

当前正在运行内核:5.15.0-130-generic 系统已安装好的新版内核:5.15.0-181-generic




升级成功
