Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn

Sponsored Link
Currently Feisty Fawn users (7.04) using the generic kernel (which is 2.6.20-16-generic). This tutorial will explain howto upgrade you to kernel version 2.6.22-9-generic(as of 07AUG07).

If you want to know what are the chnages in kernel version 2.6.22 check here

First you need to add the Gutsy repository (this is only temporary to pull the new kernel)

echo ‘deb http://archive.ubuntu.com/ubuntu/ gutsy main restricted' | sudo tee -a /etc/apt/sources.list

Update the source list using the following command

sudo apt-get update

you need to install the new kernel using the following command

sudo apt-get install linux-backports-modules-2.6.22-9-generic linux-headers-2.6.22-9 linux-headers-2.6.22-9-generic linux-image-2.6.22-9-generic linux-restricted-modules-2.6.22-9-generic linux-ubuntu-modules-2.6.22-9-generic

Now you should remove the Gutsy repository from your sources.list

sudo vi gedit /etc/apt/sources.list

Now you can remove the line or simply comment it out

#deb http://archive.ubuntu.com/ubuntu/ gutsy main restricted

Now save the file and exit.

Update the source list using the following command

sudo apt-get update

If you've done all of the above without errors, you've successfully installed 2.6.22-9-generic. Now you need to reboot into the new kernel

sudo reboot

Troubleshooting

After rebooting if you have any problem you need to follow this procedure to revert back your changes.

Reboot your computer and at Grub press esc to boot into your last kernel. (probably 2.6.20-16-*)

Remove the installed kernel packages

sudo apt-get remove linux-backports-modules-2.6.22-9-generic linux-headers-2.6.22-9 linux-headers-2.6.22-9-generic linux-image-2.6.22-9-generic linux-restricted-modules-2.6.22-9-generic linux-ubuntu-modules-2.6.22-9-generic

Removing the packages will remove the kernel from your Grub menu. But for some reason it doesn't follow these steps to remove it

sudo vi gedit /boot/grub/menu.lst

Now remove the following and save the file

title Ubuntu, kernel 2.6.22-9-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-9-generic root=UUID=34f3806f-36b8-494d-be17-78325684a0a5 ro quiet splash
initrd /boot/initrd.img-2.6.22-9-generic
quiet
savedefault

title Ubuntu, kernel 2.6.22-9-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-9-generic root=UUID=34f3806f-36b8-494d-be17-78325684a0a5 ro single
initrd /boot/initrd.img-2.6.22-9-generic

Now rebbot your system.

Sponsored Link

You may also like...

15 Responses

  1. Adam says:

    When I did the first step (adding the Gutsy repo to sources.list), it retained the apostrophe when it was added. In other words, my sources.list read:

    deb http://somerepo.com
    deb http://somerepo.com
    ‘deb http://archive.ubuntu.com/ubuntu/ gutsy main restricted’

    I had to manually edit out the apostrophe with gedit.

  2. Jason says:

    Thanks for the guide, Worked well for me Thank you!

  3. Mark W. Tomlinson says:

    Is there some imperative reason to update Feisty to the 2.6.22-9-generic kernel? I seem to be trundling along okay with 2.6.20-16-generic “stock” kernel…

  4. Harlem says:

    Yes, I agree with the previous comment. Does this upgrade fix a lot of the issues that Feisty Fawn has?

  5. LuisC-SM says:

    This is not working anymore since there is a kernel update (2.6.33-10).
    It would be nice to get updated.

    Thanks in advance

  6. Dan Shaya says:

    I’m a bit of a novice so excuse me if this is obvious – just tried the above substituting 33-10.

    Got the following error

    E: Couldn’t find package linux-backports-modules-2.6.33-10-generic

    Help appreciated.

    Need to move up because my Lenovo sound is not working.

  7. LuisC-SM says:

    Oops, I made a typo… I meant to say 2.6.22-xx

    Sorry and Kind Regards

    Luis

  8. Dan Shaya says:

    Another novice question I’m afraid.

    Can you please explain how to find out which is the latest version. Where are these files?

    Regards
    Dan

  9. hc says:

    I was able to update to 2.6.22-10, but now my wireless card (eth1) has disapeared. how do i get it back? thanks

  10. William says:

    Update: now the latest version of kernel should be 2.6.22-11

  11. Dexter Filmore says:

    This so totally gets you into trouble the moment you want to compile something kernel related like vmnet or such. This approach is just plain bull. You need a fresher kernel look at the kernel build howto in the wiki.
    Not easy but won’t fsck up your entire system.

  12. jaroslavius says:

    Yeah, today I had similar problem with linuz-2.6.22-14-generic. 🙂 … after unsafe reboot with turned on fsck 🙂

    Seems what everything is right but system can’t find /lib/modules/2.6.22-14-generic/…

    I crash my mind, check all letters but something was wrong…
    So, i just found ubuntu 7.04 (2.6.20-15) distribution, get from them all boot components (withour libraries), create something like that:

    title Ubuntu, kernel 2.6.20-15-generic (failsafe)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.20-5-generic root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro
    initrd /boot/initrd.img-2.6.20-15-generic

    then copy proc/cmdline and proc/modules from 7.10 distribution to local proc/ directory
    reconfigure cmdline:
    root=UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ro

    Then I tried to boot… to many errors, warnings, failure reports – but system works (!)
    Tried to check my filesystem – here I see what fsck remove many components.
    So next steps is:

    apt-get update && apt-get upgrade
    apt-get install libpam-runtime libpam-runtime-generic linux-backports-moduiles-generic linux-headers-2.6.22-15 linux-headers-2.6.22-15-generic linux-image-2.6.22-15-generic linux-restricted-modules-2.6.22-15-generic linux-ubuntu-modules-2.6.22-15-generic
    (please check it, I don’t remember at all).

    Hola! System is works…

  13. ramesh babu says:

    my lap when booting shows
    errror:unknown file system
    entering rescue mode…..
    grub resceu>

    what to do next

Leave a Reply

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