Friday, November 21, 2008

Lock The Software or Kernel Versions

There are times you want to lock in your software or kernel version so that it won't upgrade to the next available version.
This article will show you how to do it and provide examples why you might want to do this.

You just got your Ubuntu system all tweaked out and running sweet. The Nvidia driver problems are all fixed and you are happy. BLINK! The updater has informed you about new updates.
So you click on the updater and start the download and install process. One of the updates is a new kernel. Cool! Might have some new features in it.
You finish the updates and restart your computer to enable the new kernel.

The video is screwed again. The new kernel hosed your old settings. After a few minutes of making changes you toss up your hands and scream at the top of your lungs.
Lucky for you, you can reboot and select the old kernel for your boot up.
Then you can use one of the tips from my previous blog entry to remove that new kernel.
However, every time you start your computer, the updater informs you that you have a new update. That update is the kernel you just got rid of. How can we tell the updater to ignore it?
Here's how;

Open up the Synaptic Package Manager and do a search for linux-headers.
Find the version you are now using and highlight it.
Now go to the Package button and click on the Lock Version button.
Go back to the search field and do a search for linux-image.
Find the version you are now using and lock that version also.

Now the update manager won't bug you about an update for the new kernel.
You can also use this for software you have installed.
Use this technique to prevent update problems when your system takes a dive with a new kernel or software version.



1 comment:

rokytnji said...

d your instructions on my Ubuntu 8.04 installed 2.6.24-21-generic kernel. I also locked the 2.5.24-19 version also. My Desktop runs fine with these 2 versions of Ubuntu's Kernel. Worked Like a charm. Thanks TaZ.