
We’re only a week or 2 away from the final release of Dapper Drake 6.06, the 4th stable version of Ubuntu.
Many current (K)Ubuntu users will be wondering what is the easiest path to upgrade from Breezy Badger. I would suggest a method based on that posted at got triggered.
Before upgrading, I HIGHLY recommend making a seperate “home” partition for your install. This keeps private data off by itself and untouched by the upgrade. If anything bad happens like unresolved dependencies that can’t be solved by a dist-upgrade, you can always do a clean install and easily relocate your private files in the seperate home directory. This can be done using the partition tool built into the (K)Ubuntu install (if doing a fresh install). Otherwise, you may have to go through a more detailed partition using QTParted and Partimage (both available on Ubuntu repositories). This is not a foolproof method of upgrade without risk. I can’t stress enough how important it is to either back up your personal data, or move it to a protected partition.
Getting back to the upgrade– This method allows for upgrade based on just the downloaded ISO image (that’s right– you don’t even have to burn it to cd) and upgraded repositories. In order to do this, you’ll have to download the image (I like Kubuntu, so when it’s released, I will find it here). At this point, give the image a permanent home. You can leave it in a download directory if you like, but I would suggest something more permanent sounding in your home directory like /home/user/dapper/kubuntu-6.06-install-i386.iso
Next you’ll need to make a mount directory and mount the ISO like so:
user@kubuntu:$ sudo mkdir /media/dapperiso
user@kubuntu:$ sudo mount -o loop /home/user/dapper/kubuntu-6.06-install-i386.iso /media/dapperiso
There is a way to do this next bit in the apt GUI frontends, Adept and Synaptic, but I find the command line to be easier, quicker, and less susceptible to bugs that may prevent changes from being permanent.
Apt-get relies on a sources list (true of Debian and all it’s branches). That list for Ubuntu and Kubuntu is located at /etc/apt/sources.list I prefer kate or nano for editing.
user@kubuntu:$ sudo nano /etc/apt/sources.list
My current file looks thus:
deb cdrom:[Kubuntu 6.04 _Dapper Drake_ - Alpha i386 (20060217.2)]/ dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the ‘universe’
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse
## Uncomment the following two lines to add software from the ‘backports’
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse
All I will have to change is the first line of this file from this:
deb cdrom:[Kubuntu 6.06 _Dapper Drake_ - Release i386 (20060531)]/ dapper main restricted
To this:
deb file:///media/dapperiso dapper main restricted
If you’re on Breezy, you’ll need to change every instance of “breezy” in the file to “dapper”
That should be about it.
Now you can upgrade like so:
user@kubuntu:$ sudo apt-get update
user@kubuntu:$ sudo apt-get upgrade
You will probably get a message after a long upgrade telling you that “some packages could not be upgraded because of unresolved dependency issues.” You can address this by following up with a dist-upgrade like so:
user@kubuntu:$ sudo apt-get dist-upgrade
You should now be successfully upgraded to the latest version of Kubuntu. I cite again got triggered, whose well-written tutorial is the basis for this updated how-to.