Chinaunix首页 | 论坛 | 博客
  • 博客访问: 154265
  • 博文数量: 29
  • 博客积分: 1662
  • 博客等级: 上尉
  • 技术积分: 327
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-13 18:53
个人简介

thanks

文章分类
文章存档

2022年(1)

2017年(1)

2016年(1)

2015年(3)

2014年(9)

2011年(1)

2009年(1)

2008年(12)

我的朋友

分类: LINUX

2014-05-18 14:23:37

这两天,ubu1210停止支持了,正好利用这个机会进行一次大版本升级测试
我下载的iso为x86版本,然后服务还带有邮件系统,测试学习用的。

参考文档

点击(此处)折叠或打开

  1. sudo apt-get install update-manager-core
  2. do-release-upgrade -d
利用工具进行升级,但是很快就出现如下错误

点击(此处)折叠或打开

  1. shell@promote:~$ do-release-upgrade
  2. Checking for a new Ubuntu release
  3. Traceback (most recent call last):
  4. File "/usr/bin/do-release-upgrade", line 145, in
  5. fetcher.run_options += ["--mode=%s" % options.mode,
  6. AttributeError: type object 'DistUpgradeFetcherCore' has no attribute 'run_options'
  7. shell@promote:~$
参考资料


解决办法

点击(此处)折叠或打开

  1. apt-get update
  2. apt-get upgrade
  3. do-release-upgrade

结论。ubuntu1210 iso这方面做都不好,需要给系统打下补丁后再升级。我也没有花心思找到关于升级任务的关键性package,(就不当小白鼠了),因为这个错误貌似只有1210才有。用户可以尝试 仅更新下apt等工具后再试。


也不清楚官方是否提供release update2 lts,如果一级一级的升级太浪费时间了。不做探讨研究,一切照文档老实的来。
do release工具会修改apt source到saucy/1310,然后apt下载慢慢来。

点击(此处)折叠或打开

  1. Do you want to start the upgrade?


  2. 1 installed package is no longer supported by Canonical. You can
  3. still get support from the community.

  4. 80 new packages are going to be installed. 346 packages are going to
  5. be upgraded.

  6. You have to download a total of 200 M. This download will take about
  7. 7 minutes with your connection.

  8. Installing the upgrade can take several hours. Once the download has
  9. finished, the process cannot be canceled.

  10. Continue [yN] Details [d]
当前背景,1210支持18个月,刚过完。而1304支持9个月早就失去支持,所以就升级到了1310(也是9个月)。
有点意外,不过官方邮件谈了这个支持的问题。

点击(此处)折叠或打开

  1. The supported upgrade path from Ubuntu 12.10 is via Ubuntu 13.10, though
  2. we highly recommend that once you've upgraded to 13.10, you continue to
  3. upgrade through to 14.04, as 13.10's support will end in July.

升级过程需要一定的时间,当前有个信息或许需要补充一下

点击(此处)折叠或打开

  1. shell@mh3:~$ nmap 192.168.1.102

  2. Starting Nmap 5.21 ( http://nmap.org ) at 2014-05-18 14:30 CST
  3. Nmap scan report for promote.cache-dns.local (192.168.1.102)
  4. Host is up (0.0080s latency).
  5. Not shown: 993 closed ports
  6. PORT STATE SERVICE
  7. 22/tcp open ssh
  8. 25/tcp open smtp
  9. 110/tcp open pop3
  10. 143/tcp open imap
  11. 993/tcp open imaps
  12. 995/tcp open pop3s
  13. 1022/tcp open unknown

  14. Nmap done: 1 IP address (1 host up) scanned in 0.28 seconds
  15. shell@mh3:~$

顺利完了后直接重启系统就好了。
大部分工作都由机器在负责,没别的特点,就是费时间。我这边虚拟机跑server+mail空业务大概超过两小时。
纯体力活,如果没业务必要选择升级,还是重装新的来的快,大概就1个小时吧,个人用户数据再复制一下。看具体情况。



点击(此处)折叠或打开

  1. System upgrade is complete.

  2. Restart required

  3. To finish the upgrade, a restart is required.
  4. If you select 'y' the system will be restarted.

  5. Continue [yN] y

  6. Broadcast message from root@promote
  7.         (/dev/pts/2) at 3:26 ...

  8. The system is going down for reboot
  9. === Command detached from window (Sun May 18 03:26:36 2014) ===
  10. === Command terminated normally (Sun May 18 03:26:36 2014) ===Connection to 192.168.1.102 closed by remote host.
  11. Connection to 192.168.1.102 closed.
  12. shell@mh3:~$
  13. shell@mh3:~$
差不多两个小时不到点。

点击(此处)折叠或打开

  1. shell@mh3:~$ ssh shell@192.168.1.102
  2. shell@192.168.1.102's password:
  3. Last login: Sun May 18 02:19:47 2014
  4. shell@promote:~$
  5. shell@promote:~$ lsb_release -a
  6. No LSB modules are available.
  7. Distributor ID: Ubuntu
  8. Description: Ubuntu 13.10
  9. Release: 13.10
  10. Codename: saucy
  11. shell@promote:~$
  12. shell@promote:~$
这时候旧版本的内核还在,当然其他包已经处于更新最新的状态。
可以移除无用包了。

阅读(2947) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~