Google Plus

Upgrade your Kernel the easy way in Ubuntu | LinuxMint

Written by Mel Kham on . Posted in Linux tutorials

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.

{loadposition user9}

Related Articles by Tag :

{module Related Articles Plus}

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • cabreh

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

  • x1um1n

    [quote=cabreh]sudo apt-get update
    sudo apt-get dist-upgrade
    done
    [/quote][quote=cabreh]sudo apt-get update
    sudo apt-get dist-upgrade
    done
    [/quote]

    Don’t forget to reboot your machine, unless you’ve got ksplice set up of course ;)

  • Zinovsky

    This [quote=cabreh]sudo apt-get update
    sudo apt-get dist-upgrade
    done
    [/quote]
    This how-to give you the choice to chose the kernel you want to upgrade to :).

    • concertedrxn

      The title of your article is “Upgrade your Kernel [b]the easy way[/b] 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 accurate, and there is nothing wrong with using the GUI to install .deb files.

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

        • http://enteryoursiteURL... Rowliv

          He is right. For me it paid off. It was easy cozit was my first day away from windows and I got lost with all the patching commands and peoplewho had just left scripts which I had no idea really where to place them. This explanation was helpful for a guy like me! Thanks again [b]zinovsky[/b]!

  • Loren

    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

  • http://sourceforge.net/projects/bleedingedge/ fedelep

    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

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

      • http://sourceforge.net/projects/bleedingedge/ fedelep

        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

  • Cliff

    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??

    • Mark_in_Hollywood

      Cliff, have a look at this:

      HOWTO: Kernel Compilation for Newbies
      http://ubuntuforums.org/showthread.php?t=56835

      I quote:

      [color=red]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:0″
      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:0″
      Save and exit. Restart the computer and go to the next step. [/color]

  • 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?
    :D

  • http://www.google.com/ Marret

    Thanks a lot
    [url]http://www.google.com/[/url]

  • Mark_in_Hollywood

    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.

  • 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!

  • http://enteryoursiteURL... Randy F

    Thank you SO much! This guide worked perfectly!

    -Randy

  • todd

    Thanks. Nice easy guide.

  • The unknown

    Hey, thanks a lot!.

    I just bought a new computer and needed the last Linux kernel so it could properly detect hardware (not even the Ethernet connection was working on Ubuntu 10.04).

    You saved my faith in Linux!

  • cabreh

    The title of this how-to should have been:

    Install a [b]Custom[/b] Kernel in Ubuntu or Mint.

    It should not have been [b]Upgrade[/b].

  • Adjudicator

    Thanks, excellent information, ignore all the smart arses who have to prove how obnoxious they are, a little Linux knowledge is dangerous in the wrong hands.

  • http://www.seo-werbeagentur.com dynamind

    I get crash at the nvidia driver:

    (Lese Datenbank … 188400 Dateien und Verzeichnisse sind derzeit installiert.)
    Vorbereitung zum Ersetzen von linux-headers-3.0.0-0300rc1-generic 3.0.0-0300rc1.201105310830 (durch linux-headers-3.0.0-0300rc1-generic_3.0.0-0300rc1.201105310830_amd64.deb) …
    Ersatz für linux-headers-3.0.0-0300rc1-generic wird entpackt …
    linux-headers-3.0.0-0300rc1-generic (3.0.0-0300rc1.201105310830) wird eingerichtet …
    Examining /etc/kernel/header_postinst.d.
    run-parts: executing /etc/kernel/header_postinst.d/dkms 3.0.0-0300rc1-generic /boot/vmlinuz-3.0.0-0300rc1-generic
    * dkms: running auto installation service for kernel 3.0.0-0300rc1-generic
    * nvidia-current (270.41.06)… [fail]
    run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 3.0.0-0300rc1-generic /boot/vmlinuz-3.0.0-0300rc1-generic

  • Antonio Leonardo

    Did a upgrade to version 3.0.1 on Ubuntu 10.10 and worked perfectly. Power usage befora: 8w, now: 6w

  • http://enteryoursiteURL... aitd

    works fine

  • Luk1

    It all works, but for me in Linux Mint 10 (Linux Mint Debian Edition) the package wireless-crda.deb was not found, so it’s necessary to get & install it first (wireless-crda_1.14_i386.deb from http://pkgs.org/download/wireless-crda), and after that repeat step 3 (sudo dpkg -i linux-image-2.6.32-020632-generic_2.6.32-020632_i386.deb) so kernel is properly configured before reboot. Also it’s necessary to correct grub.cfg (with sudo vim /boot/grub/grub.cfg) to change default booting kernel version, as it was the previous one.
    After that it all works!

  • http://goodfinance-blog.com Danielle18Small

    All people deserve very good life and credit loans or term loan will make it much better. Because freedom is based on money.

  • http://goodfinance-blog.com Kristie24Mcgowan

    I propose not to hold back until you get enough money to order different goods! You should take the business loans or student loan and feel comfortable

  • Indianathan N

    Wow, it works perfectly. I upgrade my lucid kernel to  Linux-2.6.33-02063304-generic #02063304

  • Abhinav

    Hi,
               I tried to follow this guide to upgrade my kernel to 3.2. But there are 2 .deb files with  headers that end with i386.deb. Could you please tell me which one to use.

  • Pingback: Compiling and Installing new kernel to Ubuntu

  • Holiness David

    Hello relatives,
    I followed the instructions to a ‘T’ and the Linux 3.5.4 Quantal install worked. The only problems where, because of my download difficulties, that I had make sure that my file names where exactly correct and that I was in “root”
    Another website specified that it had to be done in a certain order which was the order shown on this website.
    Thank you for this website. Bless all of you who spend your time doing this stuff.
    Rev. Dave

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

jacky can

|

You can actually unzip your secret archive by leaving out the -t option, instead using:

unzip newPhoto.jpg

DragonFartOutLoud

|

it went to china.

DragonFartOutLoud

|

great review! i’ve been using it as my main OS since Beta 1 release. its been a awesome ride so far :)

jet li

|

i try the method, and i unzip the image contain zip secret, i dont find the file that i was hide, where it go? and how to open it? :s

zinovsky

|

Yes, it is possible using Steganography, we will post another quick howto do that in the next few days

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .