这两天,ubu1210停止支持了,正好利用这个机会进行一次大版本升级测试
我下载的iso为x86版本,然后服务还带有邮件系统,测试学习用的。
参考文档
-
sudo apt-get install update-manager-core
-
do-release-upgrade -d
利用工具进行升级,但是很快就出现如下错误
点击(此处)折叠或打开
-
shell@promote:~$ do-release-upgrade
-
Checking for a new Ubuntu release
-
Traceback (most recent call last):
-
File "/usr/bin/do-release-upgrade", line 145, in
-
fetcher.run_options += ["--mode=%s" % options.mode,
-
AttributeError: type object 'DistUpgradeFetcherCore' has no attribute 'run_options'
-
shell@promote:~$
参考资料
解决办法
-
apt-get update
-
apt-get upgrade
-
do-release-upgrade
结论。ubuntu1210 iso这方面做都不好,需要给系统打下补丁后再升级。我也没有花心思找到关于升级任务的关键性package,(就不当小白鼠了),因为这个错误貌似只有1210才有。用户可以尝试 仅更新下apt等工具后再试。
也不清楚官方是否提供release update2 lts,如果一级一级的升级太浪费时间了。不做探讨研究,一切照文档老实的来。
do release工具会修改apt source到saucy/1310,然后apt下载慢慢来。
-
Do you want to start the upgrade?
-
-
-
1 installed package is no longer supported by Canonical. You can
-
still get support from the community.
-
-
80 new packages are going to be installed. 346 packages are going to
-
be upgraded.
-
-
You have to download a total of 200 M. This download will take about
-
7 minutes with your connection.
-
-
Installing the upgrade can take several hours. Once the download has
-
finished, the process cannot be canceled.
-
-
Continue [yN] Details [d]
当前背景,1210支持18个月,刚过完。而1304支持9个月早就失去支持,所以就升级到了1310(也是9个月)。
有点意外,不过官方邮件谈了这个支持的问题。
-
The supported upgrade path from Ubuntu 12.10 is via Ubuntu 13.10, though
-
we highly recommend that once you've upgraded to 13.10, you continue to
-
upgrade through to 14.04, as 13.10's support will end in July.
升级过程需要一定的时间,当前有个信息或许需要补充一下
-
shell@mh3:~$ nmap 192.168.1.102
-
-
Starting Nmap 5.21 ( http://nmap.org ) at 2014-05-18 14:30 CST
-
Nmap scan report for promote.cache-dns.local (192.168.1.102)
-
Host is up (0.0080s latency).
-
Not shown: 993 closed ports
-
PORT STATE SERVICE
-
22/tcp open ssh
-
25/tcp open smtp
-
110/tcp open pop3
-
143/tcp open imap
-
993/tcp open imaps
-
995/tcp open pop3s
-
1022/tcp open unknown
-
-
Nmap done: 1 IP address (1 host up) scanned in 0.28 seconds
-
shell@mh3:~$
顺利完了后直接重启系统就好了。
大部分工作都由机器在负责,没别的特点,就是费时间。我这边虚拟机跑server+mail空业务大概超过两小时。
纯体力活,如果没业务必要选择升级,还是重装新的来的快,大概就1个小时吧,个人用户数据再复制一下。看具体情况。
-
System upgrade is complete.
-
-
Restart required
-
-
To finish the upgrade, a restart is required.
-
If you select 'y' the system will be restarted.
-
-
Continue [yN] y
-
-
Broadcast message from root@promote
-
(/dev/pts/2) at 3:26 ...
-
-
The system is going down for reboot
-
=== Command detached from window (Sun May 18 03:26:36 2014) ===
-
=== Command terminated normally (Sun May 18 03:26:36 2014) ===Connection to 192.168.1.102 closed by remote host.
-
Connection to 192.168.1.102 closed.
-
shell@mh3:~$
-
shell@mh3:~$
差不多两个小时不到点。
-
shell@mh3:~$ ssh shell@192.168.1.102
-
shell@192.168.1.102's password:
-
Last login: Sun May 18 02:19:47 2014
-
shell@promote:~$
-
shell@promote:~$ lsb_release -a
-
No LSB modules are available.
-
Distributor ID: Ubuntu
-
Description: Ubuntu 13.10
-
Release: 13.10
-
Codename: saucy
-
shell@promote:~$
-
shell@promote:~$
这时候旧版本的内核还在,当然其他包已经处于更新最新的状态。
可以移除无用包了。
阅读(2952) | 评论(0) | 转发(0) |