Frank
Frank
Published on 2023-06-03 / 294 Visits
0
0

Ubuntu版本升级命令

今天想把所有的服务器都升级为Ubuntu22.04,但是在升级过程中出现了 “please install all available updates for your release before upgrading”错误。经过排查,是新依赖没有得到升级而造成的。下面把升级命令依次罗列如下,以方便日后维护。

sudo apt-get update
sudo apt-get upgrade
sudo apt dist-upgrade
sudo do-release-upgrade
apt clean
apt autoclean
apt-get autoremove

至此重启系统,完成所有升级步骤。


Comment