ubuntu15.04在线升级到ubuntu16.04 LTS

  • 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版本)    
anzhihe安志合个人博客,版权所有丨 如未注明,均为原创 丨转载请注明转自:https://chegva.com/1609.html | ☆★★每天进步一点点,加油!★★☆

您可能还感兴趣的文章!

发表评论

电子邮件地址不会被公开。 必填项已用*标注