Sunday, 18 March 2007

Upgrade Ubuntu 6.10 (Edgy Eft) to Ubuntu 7.04 (Feisty Fawn)

Ubuntu 7.04 is the current Stable version of the Ubuntu operating system. The common name given to this release from the time of its early development was “Feisty Fawn”.


We can Use Two methods to upgrade Ubuntu Edgy to Ubuntu Feisty

1) Using GUI

2) Using apt-get

Upgrading Ubuntu Edgy to Ubuntu Feisty

Method 1 - Using GUI

If you want to upgrade using GUI use the following command

gksu “update-manager -c ”

“-c” switch tells it to look for upgrades at all.

You should see the following screen here Now you can see 7.04 is available for upgrade click on upgrade


Now you should see the release notes as follows here you need to click on upgrade


Once you click on upgrade you might get the error "Authentication failed"


You need to fix the above error for this open the terminal and type the "gpg" and press enter once you see the following message

gpg:Go ahead and type your message ...

Press Ctrl+C and then start the install process again.

Now you should see the following screen downloading upgrade tool


You need to enter root password and click ok


Preparing the upgrade in progress


You need to confirm the upgrade process by clicking "Start Upgrade"


Download in progress for all the required packages for Upgrade


Installation in progress


If you click on Terminal to see detailed installation in progress


Cleaning Up is in Progress


You need to restart the system to complete the Upgrade by clicking "Restart Now"

Method 2 - Using apt-get

Edit your /etc/apt/sources.list as root. Change every occurrence of edgy to feisty.

Use any prefered editor. If you have a CD-ROM line in your file, then remove it.

sudo vi /etc/apt/sources.list

or

use the following Simple command

sudo sed -e ’s/\edgy/ feisty/g’ -i /etc/apt/sources.list

Now you need to update the source list using the following command

sudo apt-get update

Upgrade using the following command

sudo apt-get dist-upgrade

Double check your process was finished properly using the following commd

sudo apt-get -f install

sudo dpkg --configure -a

Now you need to Reboot your machine to take your new ubuntu 7.04 installation to effect all changes.

Testing Your Upgrade

You can check the ubuntu version installed using the following command

sudo lsb_release -a

Output Looks like below

Distributor ID: Ubuntu
Description: Ubuntu feisty (development branch)
Release: 7.04
Codename: feisty

or

Just type the following command in your terminal

cat /etc/issue

Output Lokks like below

Ubuntu feisty (development branch) \n \l

25 comments:

Paul said...

Hi

thanks for posting the instructions. I'm looking forward to installing feisty on my linux laptop.

Ubuntu said...

nice one digg this article if you like here http://www.digg.com/linux_unix/Ubnuntu_Edgy_to_Feisty_upgrade_guide_with_lots_of_screenshots

lefty crupps said...

How well does this work with KDE (Kubuntu), does anyone know?

Michael said...

"lsb_release -rd" in a shell is more useful/descriptive for showing which version you have.

David said...

Please avoid using the "apt-get" mode where you just edit your sources.list and then do a sudo apt-get update && sudo apt-get dist-upgrade because it probably will break your system pretty darn well.

There are a lot of things that the GUI package manager does that the apt-get method does not take into account.

lefty crupps said...

Does this work when upgrading from 6.06 to 7.04?

Yaseen said...

will these instructions work for when the official version is released?

Toi said...

Why is there a quite long guide? I think all we need to do is replacing all "edgy" with "feisty" in /etc/apt/sources.list (I forgot how to do this task at command line, but it's really doable) and then

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

That's it.

El Cerrajero said...

# David said 'There are a lot of things that the GUI package manager does that the apt-get method does not take into account.'

What kind of things?

It is the same thing for aptitude method?

I'm more a Debian user than a Ubuntu user and --touching wood-- I haven't experienced any trouble using apt-get method by now.

sam said...

Matt Zimmerman's brief explanation of the dist-upgrade vs the GUI method.

https://lists.ubuntu.com/archives/ubuntu-devel/2006-July/019393.html

if you want more details you will have to dig through the mailing list archives.

Also note that Feisty is not even beta yet, so expect to find some bugs still (please report them at launchpad.net). There are live CDs that you can test, these don't touch your hard disk unless you ask them to. When Feisty is released there will be official upgrade instructions (though they'll look almost identical to those above)

sam said...

PS:
when feisty is released then the "new distribution release available" button should show automatically for edgy users. (dapper users are assumed to want to stay with the longterm supported version, and will not see the button until the next LTS version)

Alan said...

Of course anyone considering upgrading should be reading the official documentation about this first:-

https://help.ubuntu.com/community/FeistyUpgrades

Mooreberg said...

Good guide. What is the easiest way to reinstate the third party package sources after the upgrade is complete?

ollie said...
This post has been removed by the author.
ollie said...

i'm wondering why no one mentions using a CD/DVD?

for example.. i have a 600MB dowload limit on my internet connection, however files downloaded from the ISP's "download" server doesn't count towards my usage.

as they mirror Ubuntu releases, it is easier for me to download an .iso, burn a CD and then do a clean install [i keep home on a separate partition]

Sean said...

Your ISP kinda blows

willcox said...

Lets say that I'm already use automatix2, you know, for the codecs & etc. Should I have to delete automatix2 first, to upgrade from 6.1 → 7.4?.. Or everything is going to be upgraded in auto "mode"?
I can't recall where did I read it, but they say it's very relevant.

Loye said...

Aptitude is now the Debian-recommended successor to apt-get. Everyone should start using it in place of apt-get.

Aptitude is easier to use, keeps you from breaking packages, and works both as a command line interface and as a menu-driven interface. For a thorough discussion, see http://www.garfieldtech.com/blog/your-debian-aptitude.

gopher said...

If anyone is interested:
I've just upgraded from Edgy to Feisty.
Everything went smooth until at some point while packages were installed, KDE has been stopped. My screen changed to text mode. From the working of hard disk I knew installation was in progress. I waited for a while and KDE started, but then my keyboard didn't worked anymore (I couldn't log in). Fortunately mouse worked, so I rebooted as soon as I noticed that HD didn't worked for a while. And here goes the biggest problem. Upon restart, instead of starting up, my system hung up with last line: "Waiting for root file system". That scared me to death, but I restarted, and this time I started system from live CD (with Dapper). It turned out, that my /boot/initrd.img has been renamed to /boot/initrd.img.bak and new initial ramdisk has been created during upgrade (they differed by file size; BTW I use kernel 2.6.19.2). All I did was to restore my old initrd.img, and after restart everything went smooth. As it turned out some packages were not configured yet (seems like installation was interrupted), so I had to run dselect and did [3]Install. While I am writing this, I see that my initrd.img has been replaced once more, so I have to remember to restore it before reboot....
That's my 2 cents.
Hope it will help someone to get through upgrade painlessly (or maybe rather: hope you won't need help:).

Ravindran said...

Hey.. Thats a Koool one.. I would like to add some more on Disaster and recovery :) on my experience...

>Web URL:
http://ravindrank.blogspot.com/2007/04/upgrading-ubuntu-from-edgy-eft-to.html


Upgrading Ubuntu from Edgy Eft to Feisty Fawn : How to crash and recover

I totally forgot about one major thing.

On Saturday, I somehow convinced and decided that I will upgrade my Ubuntu. So, I went thru some instructions from OnlyUbuntu.Blogspot.com and started off.

I would like to mention that Some notable changes which affect such upgrade . Example, I use apt-cacher. Read these to know more:

Nick Andrew project: apt-cacher
How To Set up a repository cache with apt-cacher | Debian/Ubuntu ...
Save Bandwidth With Multiple Machines with Apt-Cacher : Ubuntu ...

So, positively, I started off using gksu “update-manager -c ”. However, there was power failure while the downloads were going on..Then restarted the PC and started the same command again.

Again a power failure. Even impossible says I'm possible and I'm a kind of Never-Let-go guy. So, I started again and this time the GUI didnt work. Some perl files were replaced and not yet in working state.

So, started the command line mode upgrade. The downloads completed and the upgrading started. Basically, the installed packages were being extracted and replacing the older files. I went out instead of staring the monitor.

Once I came back, saw a blank screen with command outputs. No terminal. No GUI. Some errors indicated that some files in /etc/init.d/ were missing.

Hmm.. it was late in the night. Was sleepy. Tired. Tried single user mode. No luck since it involves files in /etc/init.d/.

Wanted to sleep . So rebooted into Windoze and started a download of Ubuntu Feist Fawn 7.04 ISO image.

Next day, I went to friends Engagement and came back by afternoon. Waited for the download to complete. Burnt the ISO image into a CDRW. Rebooted with CDRW. Went to command console. Did a chroot to my root device. (This is needed in Rescue mode only if you dont have any Ubuntu CD. You can also use Ubuntu 6.x CD for this. For that matter any Linux Live CD will do. )

mkdir /mnt/sysroot
mount /dev/hdc1 /mnt/sysroot
chroot /mnt/sysroot

Then, i ran the apt-get update. I got a message that it was connecting to localhost. No wonder as I used apt-cacher. Next step is simple:

apt-cacher &

Now, try again:

apt-get update
apt-get upgrade
apt-get dist-upgrade

You will get some warnings and error mentioning some service cannot be started or proc not mounted. You can ignore those.

After everything says up-to-date. Just reboot and your Ubuntu 7.04 is up and running fine!!

Ryan Lewis said...

I am trying to upgrade and I keep getting errors like this, what is going on?!


Setting up python2.5-minimal (2.5.1~rc1-0ubuntu3) ...
Linking and byte-compiling packages for runtime python2.5...
python or pycentral not found in pycentral.rtinstall hook.
dpkg: error processing python2.5-minimal (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
python2.5-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up python2.5-minimal (2.5.1~rc1-0ubuntu3) ...
Linking and byte-compiling packages for runtime python2.5...
python or pycentral not found in pycentral.rtinstall hook.
dpkg: error processing python2.5-minimal (--configure):
subprocess post-installation script returned error exit status 1
Setting up python-support (0.5.6ubuntu1) ...
/var/lib/dpkg/info/python-support.postinst: 8: update-python-modules: not found
dpkg: error processing python-support (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python2.5:
python2.5 depends on python2.5-minimal (= 2.5.1~rc1-0ubuntu3); however:
Package python2.5-minimal is not configured yet.
dpkg: error processing python2.5 (--configure):
dependency problems - leaving unconfigured
Setting up python-xml (0.8.4-6ubuntu4) ...
/var/lib/dpkg/info/python-xml.postinst: 6: pycentral: not found
dpkg: error processing python-xml (--configure):
subprocess post-installation script returned error exit status 127
Setting up python-numeric (24.2-7ubuntu1) ...
/var/lib/dpkg/info/python-numeric.postinst: 6: pycentral: not found
dpkg: error processing python-numeric (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of onboard:
onboard depends on python-xml; however:
Package python-xml is not configured yet.
dpkg: error processing onboard (--configure):
dependency problems - leaving unconfigured
Setting up update-manager (0.45) ...
***
* Updating MIME database in /usr/share/mime...
Wrote 508 strings at 20 - 2a98
Wrote aliases at 2a98 - 2c4c
Wrote parents at 2c4c - 36e0
Wrote literal globs at 36e0 - 3744
Wrote suffix globs at 3744 - 6f4c
Wrote full globs at 6f4c - 6f70
Wrote magic at 6f70 - c784
Wrote namespace list at c784 - c7ac
***
/var/lib/dpkg/info/update-manager.postinst: 31: gconf-schemas: not found
dpkg: error processing update-manager (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of python-numeric-tutorial:
python-numeric-tutorial depends on python-numeric (= 24.2-7ubuntu1); however:
Package python-numeric is not configured yet.
dpkg: error processing python-numeric-tutorial (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-cairo:
python-cairo depends on python-numeric (>= 24.2-3); however:
Package python-numeric is not configured yet.
dpkg: error processing python-cairo (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-numeric-ext:
python-numeric-ext depends on python-numeric (= 24.2-7ubuntu1); however:
Package python-numeric is not configured yet.
dpkg: error processing python-numeric-ext (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python2.5-minimal
python-support
python2.5
python-xml
python-numeric
onboard
update-manager
python-numeric-tutorial
python-cairo
python-numeric-ext

Jephrey said...

After battling with all manner of terminal based attempts to Upgrade Edgy to Feisty from the CD-Rom, i finally tried using Synaptic!

Simply Add a CD-Rom & point it to the Alternative Feisty CD (this version has the files as DEB's - it is an optional checkbox on the Ubuntu download page)

Tell it to Update All and Apply. 45 minutes later you'll be smiling.

Shahryar Ghazi said...

thanks for this

good job!

kly said...

Haha I'm upgrading from 6.06.

The new distribution only shows as 6.10.

Before I begin upgrading, I think it is possible to upgrade to 6.10 then 7.04.

Haha but thanks so much for this.

Neo said...

hi guys i have edgy and i am trying to update to feisty but every time i do so i keep getting this error:


Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/edgy/main/binary-i386/Packages.gz Sub-process gzip returned an error code (1)

can anyone help please