Page 1 of 1

problems upgrading virtualbox

Posted: 19. May 2010, 00:26
by miatawnt2b
I am trying to upgrade/install the new virtualbox and am getting the following error during installation.

Code: Select all

Attempting to install using DKMS
  removing old DKMS module vboxdrv version  3.1.8

------------------------------
Deleting module version: 3.1.8
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.1.8/source ->
                 /usr/src/vboxdrv-3.1.8

DKMS: add Completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
su nobody -c "make KERNELRELEASE=2.6.32-020632-generic -C /lib/modules/2.6.32-02
0632-generic/build M=/var/lib/dkms/vboxdrv/3.1.8/build"....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.32-020632-generic (x86_
64)
Consult the make.log in the build directory
/var/lib/dkms/vboxdrv/3.1.8/build/ for more information.
0
0
Failed to install using DKMS, attempting to install without
Makefile:163: *** Error: /usr/src/linux (version 2.6.32) does not match the curr
ent kernel (version 2.6.32-020632-generic).  Stop.
millerjw@millerjw-MacBook:~$ uname -r
2.6.32-020632-generic
millerjw@millerjw-MacBook:~$ more /var/log/vbox-install.log
Attempting to install using DKMS
  removing old DKMS module vboxdrv version  3.1.8

------------------------------
Deleting module version: 3.1.8
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.1.8/source ->
                 /usr/src/vboxdrv-3.1.8

DKMS: add Completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
su nobody -c "make KERNELRELEASE=2.6.32-020632-generic -C /lib/modules/2.6.32-02
0632-generic/build M=/var/lib/dkms/vboxdrv/3.1.8/build"....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.32-020632-generic (x86_
64)
Consult the make.log in the build directory
/var/lib/dkms/vboxdrv/3.1.8/build/ for more information.
0
0
Failed to install using DKMS, attempting to install without
Makefile:163: *** Error: /usr/src/linux (version 2.6.32) does not match the curr
ent kernel (version 2.6.32-020632-generic).  Stop.
Any ideas how to fix this?
-J

Re: problems upgrading virtualbox

Posted: 19. May 2010, 00:39
by Sasquatch
Install the proper kernel headers/sources for your kernel. Other than that, stick to your stock kernel shipped with the distro, not from some external source. I'm guessing you're running Ubuntu, which means you got the kernel from kernel.ubuntu.com/~kernel-ppa/mainline. Even though it should work with those kernels, you still need the headers.