Kernel Update Question

Asked by Daniel Jones

I regularly install the updates from the System up to date tool, and have noticed two Kernel updates come through and not change.

My current kernel version shows 3.2.0-29-generic-pae, but I have noticed updates up to the .31 kernel.

How can I make the .31 my version, and why is it not applied automatically when the update takes place?

OS 12.04 LTS 32bit

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Jones
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You need to reboot to change to the new kernel.

Revision history for this message
Daniel Jones (djone104) said :
#2

Yes, I have rebooted several times since the update. Twice since the kernal update that came down today.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

If you hold SHIFT at boot, can you select the newer kernel?

Revision history for this message
Daniel Jones (djone104) said :
#4

No the grub menu comes up with the .29 kernel version as the highest version listed.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Strange, can you give the output of:

sudo update-grub; lsb_release -a; uname -a; dpkg -l | grep linux-image

Thanks

Revision history for this message
Daniel Jones (djone104) said :
#6

Here is the output of that command:

Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.2.0-31-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-30-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-29-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-27-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-26-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-23-generic-pae
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Linux ubuntu 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
ii linux-image-3.2.0-23-generic-pae 3.2.0-23.36 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-26-generic-pae 3.2.0-26.41 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-27-generic-pae 3.2.0-27.43 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-29-generic-pae 3.2.0-29.46 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-30-generic-pae 3.2.0-30.48 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-31-generic-pae 3.2.0-31.50 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-generic-pae 3.2.0.31.34 Generic Linux kernel image

Revision history for this message
Daniel Jones (djone104) said :
#7

If I do a uname -r this is what is returned:

daniel@ubuntu:~$ uname -r
3.2.0-29-generic-pae

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

Try:

sudo apt-get --purge remove linux-image-3.2.0-23-generic-pae
sudo apt-get --purge remove linux-image-3.2.0-26-generic-pae
sudo apt-get --purge remove linux-image-3.2.0-27-generic-pae
sudo apt-get --purge remove linux-image-3.2.0-29-generic-pae
sudo apt-get --purge remove linux-image-3.2.0-30-generic-pae

Revision history for this message
Daniel Jones (djone104) said :
#9

Bigger problem now. Grub still only list .29 as the only kernel and upon selecting it the OS stops booting and presents an error message that says no kernel loaded, load a kernel first.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#10

If you hold shift at boot, select a kernel that way

Revision history for this message
Daniel Jones (djone104) said :
#11

The .29 kernel is still the most current version listed when the shift key is held. Will a live boot CD correct the problem and will I loose all of my current Ubuntu files if I use it?

Revision history for this message
Daniel Jones (djone104) said :
#12

Update:

I used the edit command in GRUB on the ghost kernel that was listed and changed all occurrences of .29 to .31 and booted. That successfully loaded Ubuntu and I was able to uninstall and re-install GRUB where it linked the good kernel image. Problem solved.