4.10 to 5.04 (Warty to Hoary)
Before you start
Please make sure you've read and understood the main page. Contact details are available on that 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.
## EOL upgrade sources.list # Required deb http://eol-releases.ubuntu.com/ubuntu/ warty main restricted universe multiverse deb http://eol-releases.ubuntu.com/ubuntu/ warty-updates main restricted universe multiverse deb http://eol-releases.ubuntu.com/ubuntu warty-security main restricted universe multiverse # Optional #deb http://eol-releases.ubuntu.com/ubuntu/ warty-backports main restricted universe multiverse
You can make use of -backports if you want, or -proposed. For more information about repositories https://help.ubuntu.com/community/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.410 -e 's/warty/hoary/' /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.
- Get a GUI
This step is optional, you only need to do this when you have xfree86 packages installed. You can find out by running
dpkg -l | grep xfree
If you get output, then you can assume you will need to execute this step.
In order to get a GUI on 5.04 I will install the x-window-system-core package. This will remove the xfree86 packages and install the xorg packages for you. The x-window-system-core package is a meta package which will make sure all correct packages are installed. It is a dependency for ubuntu-desktop, kubuntu-desktop, xubuntu-desktop. If you want a different GUI, make sure you have a terminal emulator installed (eg xterm) and a windowmanager (eg WindowMaker or FVWM).
I also had to (re)install gdm because it was not properly installed.
sudo aptitude install x-window-system-core gdm
- Check your new version
Reboot your machine and you can now run `lsb_release -a' to check the new version of Ubuntu.