[Solved] Installing Virtualbox on xubuntu
Posted: 31. Aug 2009, 22:05
G'day,
I am trying to install Virtualbox with great difficulty. The kernel fails to compile, and the log looks like this:
** Compiling vboxdrv
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxdrv/3.0.4/source ->
/usr/src/vboxdrv-3.0.4
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.30-02063003-generic cannot be found at
/lib/modules/2.6.30-02063003-generic/build or /lib/modules/2.6.30-02063003-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:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
so I did a search on my machine and found what appears to be the kernel source code in /usr/src/linux-headers-2.6.30-02063003-generic. So I did the following:
dkms --kernelsourcedir /usr/src/linux-headers-2.6.30-02063003-generic
Tried the install again and same verdict. Typing:
echo $KERNEL_DIR returns nothing.
Can anyone help? Thanks in advance.
I am trying to install Virtualbox with great difficulty. The kernel fails to compile, and the log looks like this:
** Compiling vboxdrv
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxdrv/3.0.4/source ->
/usr/src/vboxdrv-3.0.4
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.30-02063003-generic cannot be found at
/lib/modules/2.6.30-02063003-generic/build or /lib/modules/2.6.30-02063003-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:147: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
so I did a search on my machine and found what appears to be the kernel source code in /usr/src/linux-headers-2.6.30-02063003-generic. So I did the following:
dkms --kernelsourcedir /usr/src/linux-headers-2.6.30-02063003-generic
Tried the install again and same verdict. Typing:
echo $KERNEL_DIR returns nothing.
Can anyone help? Thanks in advance.