vim /etc/update-manager/release-upgrades1
将prompt属性的值改为normal
[DEFAULT] # Default prompting and upgrade behavior, valid options: # # never - Never check for, or allow upgrading to, a new release. # normal - Check to see if a new release is available. If more than one new # release is found, the release upgrader will attempt to upgrade to # the supported release that immediately succeeds the # currently-running release. # lts - Check to see if a new LTS release is available. The upgrader # will attempt to upgrade to the first LTS release available after # the currently-running one. Note that if this option is used and # the currently-running release is not itself an LTS release the # upgrader will assume prompt was meant to be normal. Prompt=normal
apt-get update apt-get upgrade apt-get dist-upgrade
有时候卸载了软件,某些资源没卸载干净,执行上述命令时也会更新对应资源(但不会更新成功),在后续升级时会提示该资源不是最新的,无法升级。此时只需要手动删除提示的文件夹即可
do-release-upgrade -c
do-release-upgrade
第一次执行该命令,可能会卡在更新snap store那一步此时只需要ctrl + c停止当前更新,再次执行更新命令即可。或着直接关闭snap store相关进程,再执行更新命令:
killall snap-store // 关闭进程 snap refresh snap-store// 更新snap store do-release-upgrade