跨版本升级Linux系统的方法


使用 update-manager 进行跨版本升级。确保已经安装 update-manager。

1.首先,修改源


sudo gedit /etc/apt/sources.list

替换为以下内容:

(本文以升级到ubuntu 13.04 为例。每一个版本都有对应的标识)


#deb http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ quantal-backports main restricted universe multiverse


2. 检查更新

     sudo apt-get update


3.下载更新

    sudo apt-get -d dist-upgrade   //-d 表示只下载


4. 跨版本升级

   sudo update-manager  -d   // 按照提示,选择‘部分更新’

   完成之后,先不要重启,在重新试一下

sudo apt-get update
sudo apt-get upgrade

  确保全部升级完成。


5.重启完成跨版本升级

6. 清除旧文件

sudo apt-get autoremove
sudo apt-get autoclean





你可能感兴趣的:(跨版本升级Linux系统的方法)