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

I'm trying to upgrade the linux kernel from 2.6.32-34 to the latest update of that series, which appears to be 2.6.32-34.

I ran:

   sudo apt-get update
   sudo apt-get upgrade

At this point i was told that some packages were kept back:

   The following packages have been kept back:
     landscape-common linux-headers-server linux-image-server linux-server

I proceeded to install those and then to autoremove the kernel (that's what apt-get recommended):

sudo apt-get install linux-headers-server linux-image-server linux-server
sudo apt-get autoremove

My problem is that after booting, and running uname -a i still get the kernel.

How can I guarantee that the latest kernel will be loaded?

thank you in advance.

share|improve this question
One thing I did was to remove the linux-image for the 2.6.32-34 version. After that, the server booted but failed to load, among other things, iptables because it could'nt find load the file /lib/modules/2.6.32-34-server/modules.dep, I would have thought that with no kernel 2.6.32-34 installed and after booting, it would not be searching for modules in the 32-34 directory. To me it looks like this whole issue is a missing symlink or something like that. But I don't know where else to look. – lal00 Jun 9 '12 at 17:31

The correct way to do this is dist-upgrade as already stated:

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

It sounds like you've already installed it manually however, so your system probably didn't have the grub updated automatically - it's one of triggers that get done if you do it correctly with apt-get. You can update grub at any time though with:

sudo update-grub

There's no need to remove previous kernels, and in fact you should leave some known working ones there in case the current one breaks - it gives you more options for recovering the system than you would have otherwise. They will appear in the grub menu, though the latest should appear first on the list and the one that is booted automatically after the 10 second timeout.

share|improve this answer

If you're looking for the official backported 2.6.35 and 2.6.38, you'll find them in Synaptic (search for 'linux'). I found that they caused some problems with my system though, YMMV.

share|improve this answer
Actually, I'm looking for the latest patch release(?) of 2.6.32, since the current kernel that I have seems to have a bug that in certain conditions causes a kernel panic after 220 days of uptime (or something like that). – lal00 Jun 9 '12 at 17:42
What happens when you select the linux-generic, and linux-image-generic in Synaptic and select "upgrade"? – NoBugs Jun 9 '12 at 17:46
Sorry, I'm using the console, I don't have access to Synaptic. – lal00 Jun 9 '12 at 17:48

To know if you have the latest image, you can search for other package availability :

apt-cache search linux-image

That will list you all available package for kernel image. Then you can use apt-get install to install the one you want.

share|improve this answer

i personaly do it like that i go to ubuntu kernel ppa and try latest stable version of kernel for linux ( now its 3.6.2) .There are .deb packages to download: all.deb , headers,deb and image.deb (depending on ur pc its 64 bit or 32) install them with gdebi manager or with dpkg -i /path to package/.deb but be sure to remove proprietary grafic driver first or you will get black screen on login.

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.