Upgrading to Feisty

Until the new OS images are available you may think you only have a single choice with Ubuntu and that's Ubuntu LTS (supported until 2011).

However, you are able to upgrade to Feisty (supported until 2008).

This should only be undertaken on a new, or reinstalled, Slice with a starting base of Ubuntu LTS. If you have a working LTS server then I strongly suggest leaving it as an upgrade of this magnitude will almost undoubtedly break things.

First thing is to delete old entries for the Slice IP address in your known_hosts file as a reinstalled Slice will have a new (different) RSA key:

nano ~/.ssh/known_hosts

If you are not using Linux on your LOCAL computer, the location of the known_hosts file will differ. Please refer to your own OS for details of where this file is kept.

Log in

Log into your minimal Ubuntu LTS Slice:

ssh root@

Accept the RSA key and enter the root password supplied on the Slice reinstall.

Once logged in, change the root password to one of your choosing as we'll need it later on the reboot.


Let's see what we're using:

cat /etc/issue
#Ubuntu 6.06 LTS \n \l

First upgrade

Although it's possible to upgrade straight from LTS to Feisty it is not recommended. The Ubuntu documentation strongly suggests the slightly longer route I will show here.

So we need to upgrade LTS to Edgy and then Edgy to Feisty. The whole process takes around 5-10 minutes so it's not an arduous task.

First thing is to update the sources.list:

nano /etc/apt/sources.list

Delete the default entries and add this list:

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

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

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

Once done, we need to enter a series of update/upgrade commands. All are required so don't think I've repeated myself unnecessarily:

aptitude update
aptitude dist-upgrade <-- follow on-screen instructions
aptitude dist-upgrade <-- follow on-screen instructions

Then a few more:

aptitude update
aptitude dist-upgrade
aptitude -f install
dpkg --configure -a


Once done, reboot the machine:

shutdown -r now

Log back in and have a look at what the slice is running:

cat /etc/issue
#Ubuntu 6.10 \n \l

Second upgrade

Thankfully, the upgrade from Edgy to Feisty is much easier as they provide a simple tool that does the hard work for us:

aptitude install update-manager-core

As a side note, you may see articles suggesting you simply change the sources.list in the way we just did but for edgy to feisty. I do not recommend doing it that way and it is strongly recommended by Ubuntu support not to upgrade that way.

Now we've got the official upgrade tool installed, run it like so:


There are a few question to answer such as whether to accept the SSH connection (it defaults to 'no').

Then follow the on-screen instructions such as removing obsolete packages (Y), to fully ugprade, please restart (Y) and so on.

Final log in

The last reboot was automatic so log into the slice and have a look at what it's running:

cat /etc/issue
#Ubuntu 7.04 \n \l

And a final update/upgrade:

aptitude update
aptitude upgrade
aptitude dist-upgrade


That's it. As said, this should only be performed on a new, or reinstalled, slice. Now you have a minimal Ubuntu Feisty install to work with.


Article Comments:

Daniel Lucraft commented Fri Sep 07 08:20:39 UTC 2007:

Just working through this, and I had one question which was when you say delete "the default entries" in the apt sources list, did you mean the entire file or just the corresponding lines to the ones you then listed?

I went ahead and deleted the entire lot, which I hope was the right choice.

PickledOnion commented Fri Sep 07 08:44:54 UTC 2007:


I did indeed mean delete all the entries, just as you did.


Daniel Lucraft commented Fri Sep 07 09:28:24 UTC 2007:

Just finished the walkthrough, with no problems. Thanks for the useful article!

Reinier commented Mon Sep 24 18:44:23 UTC 2007:

What's the advantage of Feisty over the default installation on a slice? I run several websites on my slice, having no probs so far, but I'm always interested in doing things 'better'.

David Brewer commented Mon Sep 24 23:12:42 UTC 2007:

In my view, the main advantage is that you get newer versions of many packages. For example, in Dapper you are stuck with PHP 5.1.2 if you want to be able to easily install security updates via apt. In Feisty, I believe the PHP version is 5.2.1.

Steve Schwartz commented Wed Sep 26 01:41:44 UTC 2007:

In response to Reiner's question, the reason I'm upgrading is so that my production environment can be the same as my development. I figure there will be less complications this way.

vince commented Wed Oct 31 20:13:13 UTC 2007:

is there any reason aptitude dist-upgrade is repeated twice? or is it a type

PickledOnion commented Wed Oct 31 20:19:34 UTC 2007:


As explained in the article, all the commands are needed to ensure the upgrade is completed correctly.



vince commented Wed Oct 31 20:47:00 UTC 2007:

thanks :) i'd done it twice anyway to be safe, but wanted to double check. also, after following the steps, i get this warning "Perl warning: Setting locale failed ...", which after googling around can be fixed by typing this: "apt-get install --reinstall language-pack-en"

PickledOnion commented Wed Oct 31 20:50:24 UTC 2007:


If you follow the rest of the tutorials, locales, preferences and everything else is taken care of.

This simply upgrades the base slice from Ubuntu LTS to Ubuntu Feisty. Once done, it is then ready for your configuration settings (see the two basic Feisty setup articles for more information.)


David commented Sat Apr 12 18:18:49 UTC 2008:

Just in case anyone's interested, I upgraded a non-clean slice from Feisty to Gutsy with no problems whatsoever.

Simply: sudo apt-get install update-manager-core Followed by: sudo do-release-upgrade

Want to comment?

(not made public)


(use plain text or Markdown syntax)