If you are new to Unixmen, you may want to subscribe : ![]()
![]()
![]()
![]()
|
11 February 2010
Few days ago Ubuntu announced that there is a serious security issue in the kernel from version 6.06, 8.04, 8.10, 9.04 and 9.10 . 7.xx versions are not affected.
Canonical has been recommended as a solution to update the kernel of its various versions since the problem seriously affects them in addition to possible escalation of privilege of a stranger, a high consumption of network traffic and failure in the filesystem, FUSE does not handle While certain requests.
Today i show you how to upgrade the kernel the safe way in Ubuntu and LinuxMint. I tested this tutorial on Ubuntu 9.10 karmic koala and LinuxMint 8 helena .
Step By Step to upgrade the Kernel
This is my kernel version before the upgrade

Now Go to this website http://kernel.ubuntu.com/ , you'll see a directory tree of kernels. Now chose the directory for the kernel you want to upgrade to. In my case i chosed v2.6.32 :

You can chose a newer kernel if you want. Now after choosing the kernel directory, we have to download the necessary files for the upgrade. between the files inside the kernel directory we need just 3 of them (Example : Screenshot bellow). First get the linux-headers file that ends with "all.deb". Second get the linux-headers file that ends with "i386.deb" or "amd64.deb" depending upon what architecture you need. Finally get the linux-image file that ends with "i386.deb" or "amd64.deb" again depending upon what architecture you need. In my case i chosed( See screenshot bellow) :

Now after Downloading the 3 files we will install them by Order (Make absolutely sure that you install them in this order) :
1- Install linux-headers-2.6.32-020632_2.6.32-020632_all.deb (ending by all.deb)
sudo dpkg -i linux-headers-2.6.32-020632_2.6.32-020632_all.deb
2- linux-headers-2.6.32-020632-generic_2.6.32-020632_i386.deb (headers ending by i386.deb or amd64.deb depending of your architecture)
sudo dpkg -i linux-headers-2.6.32-020632-generic_2.6.32-020632_i386.deb
3- linux-image-2.6.32-020632-generic_2.6.32-020632_i386.deb
sudo dpkg -i linux-image-2.6.32-020632-generic_2.6.32-020632_i386.deb
4 - Reboot your computer.

If this worked to me as (described on the screenshots), doesen`t mean that will work for you.
If you have a Tip, tutorial, Idea or anything you want to share with unixmen readers, you can send it to : tips[a]unixmen.com or use our contact form Thanks.
|
Related Articles by Tag : |
Related Articles By Tags:
-
2010-02-12 09:20:13 | x1um1n - re: Are you kidding?
cabreh wrote:sudo apt-get update
sudo apt-get dist-upgrade
donecabreh wrote:sudo apt-get update
sudo apt-get dist-upgrade
doneDon't forget to reboot your machine, unless you've got ksplice set up of course ;)
-
2010-02-12 09:29:37 | Zinovsky - re: Are you kidding?

This
cabreh wrote:sudo apt-get update
sudo apt-get dist-upgrade
done
This how-to give you the choice to chose the kernel you want to upgrade to
.
-
2010-02-12 15:00:49 | concertedrxn - You have to admit he has a point.

The title of your article is "Upgrade your Kernel the easy way in Ubuntu | LinuxMint" [emphasis mine, obviously]. The easy way? More like a hybrid of the Windows way (downloading files from a website) followed by the so-called Linux-is-not-ready-for-the-desktop way (using the command line). At least stick with a theme. (You could have just instructed people to double-click each downloaded file in the appropriate order, or you could have gone all-out command line style using wget, but I digress.)
Even cabreh's method isn't the easiest way. The truly easy way is click "Install Updates" when the Update Manager automatically prompts you to install the new kernel.
While I understand your motivation for writing this article--it is nice to know about kernel.ubuntu.com after all--I don't really understand why there have been so many articles about this particular kernel update. We've had them before and even newbies seem to get it right. They just click "Install Updates". That's truly the easy way. All these articles do is sow confusion. When I saw the first of these kernel update articles I thought, "There's an update they can't push out through the Update Manager?! We're going to have to jump through hoops?!"
Really, though, the only problems I have with your article is the title and the mixing of styles. If it had been titled "How to Install Alternative Kernels in Ubuntu and Linux Mint" then it would have been more a...
-
2010-02-12 09:58:55 |SAdministrator| zinovsky

I could do it that way, just use the last 4 line of the article click --> download and install by order, but i wanted to make it more detailed article for newbies. If you read the questions of newbies at Unixmen you will understand why i made it more detailed and with Screenshots.
-
2010-02-12 15:30:22 | Loren - updating afterwards might be a problem

updating kernel this way will work and unlike dist-upgrade wont update/upgrade any other packages.....BUT....wondering later on when ubuntu does do updates how this will affect your system......I always found lingering problems when installing anything outside a distributions repositories. Being a kernel it *shouldnt* but Im weary
-

I created a script for noobs which will not only update the kernel, but remove old ones (amongst its many features). It's called BleedingEdge and is located here:
http://sourceforge.net/projects/bleedingedge/
Enjoy,
fedelep
-
2010-02-13 18:18:32 | Cliff

But if the Kernel update doesn't work your script would remove the old kernel and the user would not be able to recover the system.
-

Actually it doesn't remove the newest kernel:
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL)grep -v $CURKERNEL takes care of it. Thanks for pointing out a potential scary consequence though. It made me double check the code, which is always a good thing.
Sincerely,
fedelep
-
2010-02-13 18:23:56 | Cliff - Problem

Unfortunately This update did not work on my machine.
It looks like that new Kernel 2.6.32 corrects my sound problem.
However after the second re-boot my system hangs and I have to boot back into the old kernel and uninstall 2.3.32 via Synaptic Package Manager.
This is the error I get when the system hangs.
Target filesystem doesn't have /sbin/init
Try parsing init=bootarg.Any ideas is it because I have a Nvidia Proprietary driver??
-
2010-05-23 00:26:30 | Mark_in_Hollywood - Cliff - Problem

Cliff, have a look at this:
HOWTO: Kernel Compilation for Newbies
http://ubuntuforums.org/showthread.php?t=56835I quote:
Open Terminal or Konsole and type these commands:
(if you are using GNOME, the graphic interface that comes with Ubuntu)
Code:
sudo gedit /etc/X11/xorg.conf
Otherwise(if you are using KDE, the graphic interface that comes with Kubuntu)
Code:
sudo kate /etc/X11/xorg.conf
Scroll down the text until you find this section (this is my configuration):Code:
Section "Device"
Identifier "ATI Technologies, Inc. Radeon 330M/340M/350M (RS200 IGP)"
Driver "ati"
BusID "PCI:1:5
"
Substitute the word in red with “vesa”, make it look like this:
Code:
Section "Device"
Identifier "ATI Technologies, Inc. Radeon 330M/340M/350M (RS200 IGP)"
Driver "vesa"
BusID "PCI:1:5
"
Save and exit. Restart the computer and go to the next step.
-
2010-02-13 20:30:45 | Cliff

Awesome its working now!! After I updated the Kernel.
My machine would freeze on boot up. With No init found try passing init=bootarg.
I booted with from my Ubuntu CD and ran Gparted then ran a check disk on my boot disk and now it works!!
I don't know why I had to do this and some people don't maybe it has to do with my solid state hard drive?
-

Thanks a lot
http://www.google.com/
-
2010-05-22 23:48:57 | Mark_in_Hollywood - Great Post, Unixman

Thanks Unixmen for this post. I want a driver not yet built into my linux distro. This is the perfect How-To. I know that the kernel I need is one whole number after the one I can get through my distro's repos. That's 33 instead of 32.
Your post is inane. Unixman has give the world (for free) an easy how-to for people such as myself who can use the terminal and cut and paste.
Dear cabreh:
You aren't understanding the reason for this how-to.
Same for Zinovsky.
Dear ConcertedRXN:
You want a GUI for kernel maintenance, hey: switch to Apple or better Microsoft. You belong there with your childish complaint.
-
2010-06-24 00:07:58 | Anonymous

Thanks for this info. It was suggested that I upgrade the kernel in my mint installation to fix a suspend issue, and I was referred to the Ubuntu kernel website, but no guidance on how to install the deb packages or which ones I needed. Your tutorial answered those questions.
The good news is that was able to install the new kernel without a hitch. The bad news is that it did not fix my problem. Regardless, great job on the tutorial!


sudo apt-get update
sudo apt-get dist-upgrade
done