infra_red_dude
Wire muncher!
Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn
source: ubuntu geek
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).
Before attempting this backup your grub menu list:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.bak
First you need to add the Gutsy repository (this is only temporary to pull the new kernel)
echo ‘deb *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 *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
#Add Windows entries (if any) after this line and then the Ubuntu kernel line
title Ubuntu, kernel 2.6.22-9-generic
root (hd0,0) #or whatever was the previous value
kernel /boot/vmlinuz-2.6.22-9-generic root=<whatever value was there previously> 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) #or whatever was the previous value
kernel /boot/vmlinuz-2.6.22-9-generic root=root=<whatever value was there previously> ro single
initrd /boot/initrd.img-2.6.22-9-generic
Those previous values can be obtained from /boot/grub/menu.lst.bak which was backup up earlier.
Now reboot your system.
source: ubuntu geek
Last edited: