Upgrading to Dapper on Ubuntu

This is the method that I've found to be the most reliable for upgrading from Breezy to Dapper. For other methods, you can try this page

Step 1: Make sure you have the appropriate metapackages installed.

For example, if you're using KDE, you would copy and paste into a terminal

sudo aptitude update
sudo aptitude install kubuntu-desktop
.

If you have XFCE, you would copy and paste

sudo aptitude update
sudo aptitude install xubuntu-desktop

You can install multiple metapackages if you're using multiple desktop environments. For example, if you use Gnome, KDE, and XFCE, you would copy and paste

sudo aptitude update
sudo aptitude install xubuntu-desktop ubuntu-desktop kubuntu-desktop

Step 2: Change your sources.list

First, back them up.

sudo cp /etc/apt/sources.list /etc/apt/sources_breezy.list

Then, if you're using Gnome

gksudo gedit /etc/apt/sources.list

If you're using KDE
kdesu kwrite /etc/apt/sources.list

If you're using XFCE
gksudo mousepad /etc/apt/sources.list

Internet Upgrade: Once the sources.list file is open, do a find/replace--finding the word breezy and replacing it with the word dapper. Comment out (put a # sign in front of) any CD-ROM line.

CD-ROM Upgrade: If you're upgrading from the Alternate CD (instead of over the internet), change

deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted
to
deb cdrom:[Ubuntu 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
and comment out (put a # sign in front of) all the other lines in your sources.list file.

Save the file.

Step 3: Exit whatever desktop environment you're using. Go back to the log in screen. Then press Control-Alt-F1. This will take you to a text-based login. Log in and then type

sudo aptitude update
sudo aptitude dist-upgrade

Step 4 You don't need to reboot (

sudo reboot
), but it may be a good idea. If you prefer not to reboot once the upgrade to Dapper is done, press Control-Alt-F1, then Control-Alt-Backspace. Then log in.