Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided by the Update Manager..Currently I have Linux- I update?


The latest kernel version any user is supposed to use in Ubuntu is updated automatically via the Update Manager, so no action is normally required by user regarding kernel upgrades. What the question author is referring to is mainline kernel, see: Should I upgrade to the "mainline" kernels?

share|improve this question
Related: Should I upgrade to the “mainline” kernels? – Aditya Oct 4 '13 at 18:54

The simplest set of instructions I always used for kernel upgrade / downgrade are by user by the name of lykwydchykyn (url modified by me for this post):

  1. Go here:
  2. Download 3 (maybe 4) debs to a folder somewhere:

    linux-image-extra-VERSION-NUMBER_amd64.deb   # if available
  3. Install the debs with whatever package manager front-end you use (is gdebi still around?), or use these commands:

    cd /path/to/folder/where/you/put/the/debs
    sudo dpkg -i *.deb


share|improve this answer
for example here you find two versions for each architecture: lowlatency and generic, which to take? – rubo77 Aug 7 '14 at 2:42
No luck. I was coming from the 64-bit Utopic lowlatency kernel (3.16.0-31) in the standard repo. I upgraded to v3.16.7-ckt8 ( linux-image-3.16.7-031607-lowlatency_3.16.7-031607.201503111033_amd64.deb) which is running but still no trackpad. This is for an Acer C710. – Ubuntourist Mar 22 '15 at 23:58
I had touch pad problems. My default bios was set to advanced mode. It says in the bios there may be problems using advanced mode without a driver. However basic mode works well in ubuntu. Unfortunately, basic mode works terrible in windows! I hope this helps in the easy way. – Bhikkhu Subhuti Mar 4 at 1:11
For completeness, in addition to @Bucic's steps -- (4) accept the new grub boot loader (1st option). This is probably what most people need. In case you would like to see exactly what changes, do a comparison to check, but it'll probably just rewrite your Grub conf file with the new kernel info you want. (5) reboot. Additionally, this is the much safer route, which will also upgrade your Linux version: sudo apt-get update && sudo apt-get dist-upgrade && sudo reboot. In either scenario, after rebooting, run echo $(uname -r) to confirm that you successfully booted into your new kernel. – Manuel J. Diaz Jun 1 at 4:18

You could always do the following:

apt-cache search linux-image

Pick the one you want and then do:

sudo apt-get install linux-image-your_version_choice
share|improve this answer
That would not give a mainline kernel; rather, it would give an Ubuntu build (of the specified version number). – Eliah Kagan Jan 5 '13 at 9:17
Probably better than going with a mainline one though, since it's been massaged for the target OS. – quickshiftin Oct 2 '13 at 3:43
Worked like a charm in Debian 8. Thank you! – GTodorov Feb 2 '15 at 18:54
This loads up to lightdm for me, but my laptops keyboard and USB ports don't work. – Goddard Dec 2 '15 at 21:48
don't forget to install kernel headers too: sudo apt-get install linux-headers-[version]-generic. [version] should be the same as kernel version – mauek unak Feb 23 at 20:49

My answer is, YES you can. The stable release was 3.4, but in this tutorial i use 3.3.1.

Ubuntu (32-bit) Generic PAE:

Run the following commands:

mkdir kernel\ v3.3.1-precise && cd kernel\ v3.3.1-precise
sudo dpkg -i linux-*.deb 
sudo update-grub
sudo reboot now

Ubuntu (64-bit):

Run the following commands:

mkdir kernel\ v3.3.1-precise && cd kernel\ v3.3.1-precise
sudo dpkg -i linux-*.deb 
sudo update-grub
sudo reboot now


share|improve this answer
i install the kernel 3.8.5-raring as you said on my Ubuntu 12.04. but now my OS is down and there is no cli or any grub menu. just thinking. – shgnInc Apr 2 '13 at 16:05
Good but needs to be updated. I recommend finding the version and then google how to install it. Click the pages until you find something like this. For rc6 I found this… – Bhikkhu Subhuti Mar 4 at 15:17

Run the following Terminal commands to install a new Ubuntu mainline kernel.

sudo apt-get update
sudo apt-get install python-bs4
cd /tmp
rm -rf medigeek-kmp*
wget --no-check-certificate -O kmpd.tar.gz
tar xzf kmpd.tar.gz
cd medigeek-*
python -d

The script is hosted at Github. Just press Enter instead of a number if you get stuck on a certain question in the Python script.

share|improve this answer
I'm the author of that script. I've just fixed it. Please file bug reports, most of the time programmers don't know bugs exist until someone files a report. :) – medigeek Jul 19 '13 at 19:29
What is the advantage of your script from just doing the install of the deb package like described by the best answer here? – rubo77 Aug 7 '14 at 2:27
I was just thinking of this type of tool since I crashed because apt did not install dependencies for me. You would think that apt was all about dependencies. Wrong. A script can be updated for the latest release or search for one and let the user choose. All that said, if I get my system up again, I will go direct since I found the terminal commands for rc6 – Bhikkhu Subhuti Mar 4 at 15:21

There is a much simpler way of doing this, and it's the way I use. Simply download the Ubuntu Mainline Kernel Updater script and run it from a terminal. It will download the .deb's for you, install the new kernel, and optionally remove the old one (not recommended) then optionally reboot.

Example output (copied from my terminal):

evilsupahfly@the-black-beast:~$ sudo KernelUpdateChecker -no-rc -r utopic
Run this command to install the new kernel
root@the-black-beast:~# /tmp/kernel-update
Config Notes:
Rejecting Release Candidates
Accepting Latest Kernel
Accepting kernels compiled for utopic
Accepting kernels with a version higher than 3.15.0-031500-lowlatency

Kernel Version:
Release Date:
    2014/06/16 @ 18:41 (YYYY/MM/DD @ HH:MM)

Care to look at the change log? (y=Yes, n=No) (n)

(download output skipped)    

Greetings root
    I (the-black-beast) am now self aware and a sentient being, have a nice day.
    Oh and by the way SKYNET is now active.

Installing Linux 3.15.1-031501:

(installer output skipped)

The New Kernel looks to have been installed

WARNING: If the new kernel does not boot you may regret saying yes here.
Would you like to remove the current one? (y=Yes, n=No) (n): n

Are you ready to Reboot? (y=Yes, n=No) (n): n

Almost entirely automated, and completely problem free.

share|improve this answer

Another option is to try customized and optimized builds, such as this i3/i5/i7 optimized 3.2.1 kernel for Ubuntu:

DuoPetalFlower, My Experiments with Linux - 3.2.1 kernel

He also has Intel atom optimized builds which can work quite well if you're trying to squeeze every last ounce of performance out of a netbook.

There are other kernels like Liquorix that claim to be better optimized for desktop performance.

Though not recommended by some, you can often run official kernels from later versions of Ubuntu without issues. I'm currently running the 3.3.3 precise kernel on oneiric and my machine works better than ever. Performance & battery life increased, while temperatures dropped a few degrees. My issue of a black screen when resuming from standby has also disappeared. Though I personally haven't had issues from using newer kernels, you will find some people who are strongly opposed to doing this.

share|improve this answer

I wrote a script and always will be up to date.

ukupgrade: Ubuntu Kernel Upgrade

  • Open your favorite terminal and run the follwing commands
  • Give executable permission to file

    chmod +x ./ukupgrade

  • Call the script


share|improve this answer

As you've seen, Ubuntu does provide versions of the Linux kernel, but not always as fast as they are released upstream, you can always compile the 3.3.1 kernel yourself, but that may be more effort than you were looking for. If not, search around and I'm sure you'll find a tutorial you can follow such as this one. (note that I haven't checked that one thoroughly so be wary as kernels are dangerous beasts)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.