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

Incoming search terms:

Related posts

14 thoughts on “Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn

  1. 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…

    [Reply]

  2. 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

    [Reply]

  3. 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.

    [Reply]

  4. 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

    [Reply]

  5. 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.

    [Reply]

  6. 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…

    [Reply]

Leave a comment

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