写在前面:Ubuntu不推荐用SSH进行升级,因为『升级失败时较难恢复』,且在升级之前会创建一个SSH守护进程(1022端口)。因此建议在通过SSH升级之前先在防火墙上打开对应端口。
升级步骤:
1)先升级系统软件:
sudo apt-get update&&sudo apt-get upgrade
2)重启电脑后安装update-manager-core:
sudo apt-get install update-manager-core
3)然后编辑/etc/update-manager/release-upgrades
将Prompt=lts改成Prompt=normal
然后保存关闭
4)最后执行升级:
sudo do-release-upgrade -d
即可完成对Ubuntu的升级。