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
/etc/init.d/vboxdrv setup
as root
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.
------------------------------
Done.
Creating symlink /var/lib/dkms/vboxdrv/2.0.2/source ->
/usr/src/vboxdrv-2.0.2
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.
Virtualbox upgrade problem (SOLVED)
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
- Fornhamfred
- Level 6
- Posts: 1243
- Joined: Wed Oct 31, 2007 3:38 pm
- Location: Suffolk UK
Virtualbox upgrade problem (SOLVED)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- Fornhamfred
- Level 6
- Posts: 1243
- Joined: Wed Oct 31, 2007 3:38 pm
- Location: Suffolk UK
Re: Virtualbox upgrade problem
Thanks for your reply.
I have tried your suggestion but no joy.
The terminal output is as follows:
wilf@Mint-Elyssa ~ $ sudo /etc/init.d/vboxdrv setup
[sudo] password for wilf:
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
wilf@Mint-Elyssa ~ $ sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
wilf@Mint-Elyssa ~ $
The log file has no new entries just those listed in the previous post.
I have checked the /lib/modules/2.6.24-16-generic file and there is no build or source file in the directory. This appears to be the problem but I do not know how to solve it.
If I try to run virtualbox it boots OK but trying to start on of the distros results in a spawning session but this locks the application at 0%.
I have tried your suggestion but no joy.
The terminal output is as follows:
wilf@Mint-Elyssa ~ $ sudo /etc/init.d/vboxdrv setup
[sudo] password for wilf:
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
wilf@Mint-Elyssa ~ $ sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module * done.
* Recompiling VirtualBox kernel module
* Look at /var/log/vbox-install.log to find out what went wrong
wilf@Mint-Elyssa ~ $
The log file has no new entries just those listed in the previous post.
I have checked the /lib/modules/2.6.24-16-generic file and there is no build or source file in the directory. This appears to be the problem but I do not know how to solve it.
If I try to run virtualbox it boots OK but trying to start on of the distros results in a spawning session but this locks the application at 0%.
- Fornhamfred
- Level 6
- Posts: 1243
- Joined: Wed Oct 31, 2007 3:38 pm
- Location: Suffolk UK
Re: Virtualbox upgrade problem
Thanks.
I have searched the Ubuntu forums and found what seems to be the problem, but the solutions suggested have had no effect. All I can think of is a complete removal of virtualbox and re-installing but having tried this without success I am lost. Does anyone know if there any other files which should be removed after complete removal through synaptic?
I have searched the Ubuntu forums and found what seems to be the problem, but the solutions suggested have had no effect. All I can think of is a complete removal of virtualbox and re-installing but having tried this without success I am lost. Does anyone know if there any other files which should be removed after complete removal through synaptic?
- Fornhamfred
- Level 6
- Posts: 1243
- Joined: Wed Oct 31, 2007 3:38 pm
- Location: Suffolk UK
Re: Virtualbox upgrade problem (SOLVED)
Update.
After full removal with synaptic and removing all files I could identify following these instructions:
Take note of the files installed (depending on installation method).
Remove using the removal tool (depending on installation method).
Check for leftovers and, in particular the files in /etc/init.d, in /etc/rc[0123456s].d and (most importantly!) in /etc/network/if-post-down.d/, /etc/network/if-pre-up.d/ and /etc/udev/rules.d/.
Reboot.
Re-install
After installation I had to install the linux headers for my kernel from the repros and then recompile the kernel module with
sudo /etc/init.d/vboxdrv setup
After full removal with synaptic and removing all files I could identify following these instructions:
Take note of the files installed (depending on installation method).
Remove using the removal tool (depending on installation method).
Check for leftovers and, in particular the files in /etc/init.d, in /etc/rc[0123456s].d and (most importantly!) in /etc/network/if-post-down.d/, /etc/network/if-pre-up.d/ and /etc/udev/rules.d/.
Reboot.
Re-install
After installation I had to install the linux headers for my kernel from the repros and then recompile the kernel module with
sudo /etc/init.d/vboxdrv setup