1.更新资源
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt dist-upgrade
2.安装update-manager-core
$ sudo apt-get install update-manager-core
3.更新16.04到18.04
$ sudo do-release-upgrade
执行上一步命令后,会自动升级系统。
4.清理无用的安装包
$ sudo apt-get remove
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
sudo apt-get install update-manager-core
sudo do-release-upgrade -d