个人工具

UbuntuHelp:EOLUpgrades/Hoary

来自Ubuntu中文

Wikibot讨论 | 贡献2009年11月17日 (二) 19:04的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/EOLUpgrades/Hoary}} {{Languages|UbuntuHelp:EOLUpgrades/Hoary}} #title Upgrading Hoary to Breezy << [[UbuntuH...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索
  1. title Upgrading Hoary to Breezy

<< < Warty Breezy >>

5.04 to 5.10 (Hoary to Breezy)

Before you start

Please make sure you've read and understood the main EOLUpgrade page. I would recommend using clonezilla for backing up your current installation. It is very easy to backup and restore your partitions with clonezilla. It takes less then 30 minutes to backup/restore a 20Gb root filesystem which has 4-5 Gb used space.

Requirements

  • /etc/apt/sources.list

Please make sure you have the following sources.list.

# Required
deb http://old-releases.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hoary-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hoary-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ hoary-backports main restricted universe multiverse

You can make use of -backports, -proposed repositories if you want. For more information about repositories see Repositories/Ubuntu.

The upgrade

  • Make sure your sources.list is correct (see requirements)
  • Update the package list and get fully upgrade all packages
sudo aptitude update && sudo aptitude upgrade
  • If you run a -desktop version of ubuntu, please reinstall this package:
sudo aptitude reinstall ubuntu-desktop # or kubuntu, xubuntu, edubuntu, etc

NOTE: It could be that you just upgraded your kernel, if this is the case, please reboot!

  • Change your repositories
$ sudo perl -p -i.504 -e 's/hoary/breezy/g' /etc/apt/sources.list
  • Update the package list and perform a dist-upgrade
sudo aptitude update && sudo aptitude dist-upgrade
  • Remove obsolete packages
sudo aptitude

Now you will enter aptitude in interactive mode, select Obsolete and locally installed packages menu and press '_', then press 'g'. It could be that you will get messages that aptitude wants to remove your current kernel, do NOT remove it, leave it, we can remove it later on.

  • Check your new version

Reboot your machine and you can now run `lsb_release -a` to check the new version of Ubuntu. << < Warty Breezy >>