problems upgrading virtualbox

Discussions related to using VirtualBox on Linux hosts.
Post Reply
miatawnt2b
Posts: 5
Joined: 1. Apr 2009, 17:08
Primary OS: Ubuntu 8.10
VBox Version: OSE other
Guest OSses: xp

problems upgrading virtualbox

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: problems upgrading virtualbox

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply