Step 1.升级前准备
1.Back Up Your System
2.确定已正确联网
Step 2.配置升级源
将软件源完全指向 16.04(xenial):
将 /etc/apt/sources.list.d/中的全部文件重命名,文件名末尾加上 .backup
将 /etc/apt/sources.list 内容全部清空 更换为以下内容
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
Step 3.执行命令
sudo apt-get update(升级系统软件包)
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean(清理已经没有用的deb软件包)
sudo do-release-upgrade(检测新版Ubuntu)
lsb_release -a(重启后查看Ubuntu版本)