Upgrading Ubuntu Server 6.06 to 6.10 (Edgy)

On October 26, the Ubuntu team released a new version of Ubuntu, 6.10 (aka Edgy). I waited a couple of days for them to work out any last minute bugs, and decided to proceed with the upgrade today.

In the Ubuntu 6.10 / Edgy release notes, Ubuntu recommends the following procedure to upgrade from Dapper to Edgy:

# apt-get dist-upgrade && apt-get dist-upgrade

That will not work. Why? Because sources.list needs to be updated first (and apt-get update needs to be run beforehand).

Prepare to update sources.list by issuing the following command:

# sudo vi /etc/apt/sources.list

Replace all instances of dapper with edgy. My updated sources.list looked as follows:

deb http://us.archive.ubuntu.com/ubuntu/ edgy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy main restricted

deb http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ edgy-updates main restricted

deb http://security.ubuntu.com/ubuntu edgy-security main restricted
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted

Once you save the file, run the following string of commands:

# sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get dist-upgrade

Go for coffee. Run around the block. Play a game. You get the picture. It will take awhile to download all of the required packages (255 in my case).

Now, run the following commands to ensure everything was installed correctly.? The last line deletes the downloaded files from apt’s cache, freeing up disk space.

# sudo apt-get -f install
# sudo dpkg –configure -a
# sudo apt-get clean

Finally, cross your fingers and run the following command:

# sudo reboot

Hopefully, everything worked and your Ubuntu server is running the latest release!

If asked to overwrite a modified configuration file, reply ‘N’. Otherwise, you might end up with a broken system. In my case, I also had to recompile eAccelerator 0.9.5-rc1 as it was compiled for the version of PHP 5 (5.1.2) included with Ubuntu Server 6.06.

Leave a Reply

Your email address will not be published. Required fields are marked *