Kernel version does not match the current kernel (2.6.24-10-386)

Bug #196886 reported by SKAL
8
Affects Status Importance Assigned to Milestone
vbox3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

At the boot of the machine, I've noticed a message that linux source was not matching the right version. Same problem I have compiling the module for vbox.

# cat /var/log/vbox-install.log
Makefile:78: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
Makefile:86: *** Error: /usr/src/linux (version 2.6.24.2) does not match the current kernel (version 2.6.24-10-386). Stop.

# ll /usr/src/
totale 45832
lrwxrwxrwx 1 root src 21 2008-02-13 09:32 Patches -> /home/z-lmutt/Patches
-rw-r--r-- 1 root root 46921640 2008-02-22 23:08 linux-source-2.6.24.tar.bz2
drwxr-xr-x 6 root root 4096 2008-02-27 16:58 linux-headers-2.6.24-10-generic
lrwxrwxrwx 1 root src 23 2008-02-27 20:04 linux -> linux-headers-2.6.24-10
drwx--S--- 3 root root 20 2008-02-27 20:04 linux-source-2.6.24-cnxttmp4614
drwxr-xr-x 21 root root 4096 2008-02-29 07:13 linux-headers-2.6.24-10

# cat /usr/src/linux/include/linux/version.h
#define LINUX_VERSION_CODE 132632
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

# dpkg --print-architecture
i386

# uname -a
Linux Volantino 2.6.24-10-386 #1 Fri Feb 22 18:27:28 UTC 2008 i686 GNU/Linux

# ls -l /boot/.
totale 36424
-rw-r--r-- 1 root root 455454 2008-02-22 23:20 abi-2.6.24-10-386
-rw-r--r-- 1 root root 458722 2008-02-22 23:25 abi-2.6.24-10-generic
-rw-r--r-- 1 root root 84108 2008-02-22 23:20 config-2.6.24-10-386
-rw-r--r-- 1 root root 84087 2008-02-22 23:25 config-2.6.24-10-generic
drwxr-xr-x 2 root root 4096 2008-02-27 19:28 grub
-rw-r--r-- 1 root root 7438792 2008-02-28 10:54 initrd.img-2.6.24-10-386
-rw-r--r-- 1 root root 7438793 2008-02-27 19:25 initrd.img-2.6.24-10-386.bak
-rw-r--r-- 1 root root 7788731 2008-02-27 16:59 initrd.img-2.6.24-10-generic
-rw-r--r-- 1 root root 7788587 2008-02-27 16:58 initrd.img-2.6.24-10-generic.bak
-rw-r--r-- 1 root root 103204 2007-09-28 12:06 memtest86+.bin
-rw-r--r-- 1 root root 883598 2008-02-22 23:20 System.map-2.6.24-10-386
-rw-r--r-- 1 root root 903331 2008-02-22 23:25 System.map-2.6.24-10-generic
-rw-r--r-- 1 root root 1842168 2008-02-22 23:20 vmlinuz-2.6.24-10-386
-rw-r--r-- 1 root root 1908952 2008-02-22 23:25 vmlinuz-2.6.24-10-generic

# dpkg -l | grep linux
ii language-selector-common 0.2.10 Language selector for ubuntu linux
ii language-selector-qt 0.2.10 Language selector for kubuntu linux
ii libselinux1 2.0.55-0ubuntu3 SELinux policy enforcement, run-time librari
ii linux-headers-2.6.24-10 2.6.24-10.16 Header files related to Linux kernel version
ii linux-headers-2.6.24-10-generic 2.6.24-10.16 Linux kernel headers for version 2.6.24 on x
ii linux-headers-generic 2.6.24.10.8 Generic Linux kernel headers
ii linux-image-2.6.24-10-386 2.6.24-10.16 Linux kernel image for version 2.6.24 on i38
ii linux-image-2.6.24-10-generic 2.6.24-10.16 Linux kernel image for version 2.6.24 on x86
rc linux-image-2.6.24-5-generic 2.6.24-5.8 Linux kernel image for version 2.6.24 on x86
rc linux-image-2.6.24-7-custom 2.6.24-7-custom-10.00.Custom Linux kernel binary image for version 2.6.24
rc linux-image-2.6.24-7-generic 2.6.24-7.12 Linux kernel image for version 2.6.24 on x86
rc linux-image-2.6.24-8-generic 2.6.24-8.14 Linux kernel image for version 2.6.24 on x86
rc linux-image-2.6.24-custom 2.6.24-custom-10.00.Custom Linux kernel binary image for version 2.6.24
ii linux-image-generic 2.6.24.10.8 Generic Linux kernel image
ii linux-libc-dev 2.6.24-10.16 Linux Kernel Headers for development
ii linux-restricted-modules-2.6.24-10-386 2.6.24.9-10.28 Non-free Linux 2.6.24 modules on 386
ii linux-restricted-modules-2.6.24-10-generic 2.6.24.9-10.28 Non-free Linux 2.6.24 modules on x86/x86_64
rc linux-restricted-modules-2.6.24-5-generic 2.6.24.6-5.16 Non-free Linux 2.6.24 modules on x86/x86_64
rc linux-restricted-modules-2.6.24-7-generic 2.6.24.9-8.21 Non-free Linux 2.6.24 modules on x86/x86_64
rc linux-restricted-modules-2.6.24-8-generic 2.6.24.9-8.25 Non-free Linux 2.6.24 modules on x86/x86_64
ii linux-restricted-modules-386 2.6.24.10.8 Restricted Linux modules on 386.
ii linux-restricted-modules-common 2.6.24.9-10.28 Non-free Linux 2.6.24 modules helper script
ii linux-restricted-modules-generic 2.6.24.10.8 Restricted Linux modules for generic kernels
ii linux-sound-base 1.0.16-0ubuntu3 base package for ALSA and OSS sound systems
ii linux-source 2.6.24.10.8 Linux kernel source with Ubuntu patches
ii linux-source-2.6.24 2.6.24-10.16 Linux kernel source for version 2.6.24 with
ii linux-ubuntu-modules-2.6.24-10-generic 2.6.24-10.14 Ubuntu supplied Linux modules for version 2.
rc linux-ubuntu-modules-2.6.24-5-generic 2.6.24-5.9 Ubuntu supplied Linux modules for version 2.
rc linux-ubuntu-modules-2.6.24-7-generic 2.6.24-7.12 Ubuntu supplied Linux modules for version 2.
rc linux-ubuntu-modules-2.6.24-8-generic 2.6.24-8.13 Ubuntu supplied Linux modules for version 2.
ii util-linux 2.13.1-1ubuntu1 Miscellaneous system utilities
ii util-linux-locales 2.13.1-1ubuntu1 Locales files for util-linux

Revision history for this message
InsClusoe (insclusoe) wrote :

This is most likely not a bug. The vbox install error is because you are running a different kernel and you have sources of a different kernel under /usr/src. Copy the latest sources to /usr/src under linux directory and give it a try. Let us know the results.

Revision history for this message
SKAL (sir-kalot) wrote :

as you can see in the previous post

$ ls -l /usr/src/linux
lrwxrwxrwx 1 root src 23 2008-02-27 20:04 /usr/src/linux -> linux-headers-2.6.24-10

what elese should I do?

leo

Revision history for this message
Dereck Wonnacott (dereck) wrote :

I'm not a pro, or anyone at all for that matter, but there appears to be a problem with how the makefile is discovering the version number. Diving into that makefile is where I would go next.

You are obviously running version 2.6.24-10-386 by all accounts, but vbox seems to disagree [version 2.6.24.2] with that idea.

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed.

Changed in vbox3 (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.