Kernel version does not match the current kernel (2.6.24-10-386)
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/
Makefile:78: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=
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-
-rw-r--r-- 1 root root 46921640 2008-02-22 23:08 linux-source-
drwxr-xr-x 6 root root 4096 2008-02-27 16:58 linux-headers-
lrwxrwxrwx 1 root src 23 2008-02-27 20:04 linux -> linux-headers-
drwx--S--- 3 root root 20 2008-02-27 20:04 linux-source-
drwxr-xr-x 21 root root 4096 2008-02-29 07:13 linux-headers-
# cat /usr/src/
#define LINUX_VERSION_CODE 132632
#define KERNEL_
# dpkg --print-
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.
-rw-r--r-- 1 root root 84108 2008-02-22 23:20 config-
-rw-r--r-- 1 root root 84087 2008-02-22 23:25 config-
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.
-rw-r--r-- 1 root root 7438793 2008-02-27 19:25 initrd.
-rw-r--r-- 1 root root 7788731 2008-02-27 16:59 initrd.
-rw-r--r-- 1 root root 7788587 2008-02-27 16:58 initrd.
-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.
-rw-r--r-- 1 root root 903331 2008-02-22 23:25 System.
-rw-r--r-- 1 root root 1842168 2008-02-22 23:20 vmlinuz-
-rw-r--r-- 1 root root 1908952 2008-02-22 23:25 vmlinuz-
# dpkg -l | grep linux
ii language-
ii language-
ii libselinux1 2.0.55-0ubuntu3 SELinux policy enforcement, run-time librari
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-image-
ii linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
rc linux-image-
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-restricte
ii linux-restricte
rc linux-restricte
rc linux-restricte
rc linux-restricte
ii linux-restricte
ii linux-restricte
ii linux-restricte
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-
rc linux-ubuntu-
rc linux-ubuntu-
rc linux-ubuntu-
ii util-linux 2.13.1-1ubuntu1 Miscellaneous system utilities
ii util-linux-locales 2.13.1-1ubuntu1 Locales files for util-linux
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.