文章轉自:http://rongjih.blog.163.com/blog/static/33574461201551802140680/
升級成功很有效果
-----------------------
以下为Ubuntu 11.04的升级记录 (2015-06-18)。
由于11.04早就过了维护期,无法使用常规的升级方法!
》更新前:
...
$ uname -a
Linux bcserver4utest 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11 03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
》升级步骤记录:(参考:EOLUpgrades)2015-06-18
1)更改更新源
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.20150617.bak
$ sudo vi /etc/apt/sources.list
将内容改为如下:
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse
执行一下如下更新:
$ sudo apt-get update
$ sudo apt-get dist-upgrade
2)Update-manager
$ sudo aptitude install update-manager-core update-manager
3)更新内核
$ sudo aptitude install linux-image-server linux-headers-server
完成后重启一下 $ sudo reboot,内核更新后版本如下:
$ uname -a
Linux bcserver4utest 2.6.38-16-server #67-Ubuntu SMP Thu Sep 6 18:15:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
4)开始系统升级
$ sudo do-release-upgrade
...
..
升级后版本为:Ubuntu 11.10 (GNU/Linux 3.0.0-32-server x86_64)
费了很长时间终于升级成功了,可惜只是从11.04(natty kernel2.6)升到11.10(oneiric kernel3.0)。
ok!继续升级:
$ sudo do-release-upgrade
...
...
经过漫长的等待,升级后版本为: Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-86-generic x86_64)
提示我可以升级到12.10,好悲哀,难道就不能直接从 12.04 LTS 直接升到 14.04 LTS吗?
ok!继续升级:
$ sudo do-release-upgrade
还好, 从控制台信息可以看得出是直接升级到14.04! 继续漫长的等待后终于升级到14.04.0 LTS: