I had virtualbox 2.0.2 installed and working fine when A message was displayed saying that 2.0.4 was ready to download. I downloaded the file from sun and package installer attempted to install it. This was not successful and I then uninstalled 2.0.4 and downloaded the old version 2.0.2 for hardy.
When this attempts to install the following message is given:
VirtualBox will not start until this problem is fixed. Please consult /var/log/vbox-install.log to find out why the kernel module does not compile. Most probably the kernel sources were not found. Install them and execute
It also suggested that DKMS should be installed , which I did. I checked that the correct kernel source was installed 2.6.24-16 generic and the ran the script as above.
The log then gave the following:
Attempting to install using DKMS
removing old DKMS module vboxdrv version
Error! Invalid number of parameters passed.
Usage: remove -m <module> -v <module-version> --all
or: remove -m <module> -v <module-version> -k <kernel-version>
Deleting module version: 2.0.2
completely from the DKMS tree.
Creating symlink /var/lib/dkms/vboxdrv/2.0.2/source ->
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.24-16-generic cannot be found at
/lib/modules/2.6.24-16-generic/build or /lib/modules/2.6.24-16-generic/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:142: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Can anyone tell me how to carry out this instruction or where I may have gone wrong please.
Last edited by Fornhamfred
on Mon Nov 03, 2008 1:35 pm, edited 1 time in total.