ERROR: Installing VirtualBox Debian64 Testing

lxskllr

No Lifer
Nov 30, 2004
59,146
9,585
126
I've been fooling with this for a couple days now, and DuckDuckGo is failing me. I can get VirtualBox installed, but it isn't running right. When I try to start a VM I created, I get this error...

E8PNM.png


Code:
Failed to open a session for the virtual machine test.

The virtual machine 'test' has terminated unexpectedly during startup with exit code 1.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

Trying the suggested fix, nothing happens. No error or anything. I have the dkms package installed, as well as the kernel headers, and just to be sure, the kernel source.


After screwing around with it, and attempting to install the non-free version and also getting errors, I now get this when attempting to install via Synaptic...


Code:
E: virtualbox: subprocess installed post-installation script returned error exit status 1
E: virtualbox-dkms: dependency problems - leaving unconfigured
E: virtualbox-qt: dependency problems - leaving unconfigured

With this in the details...

Code:
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up virtualbox (4.1.12-dfsg-2) ...
insserv: script virtualbox: service vboxdrv already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing virtualbox (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of virtualbox-dkms:
 virtualbox-dkms depends on virtualbox (>= 4.1.12-dfsg-2); however:
  Package virtualbox is not configured yet.
dpkg: error processing virtualbox-dkms (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-qt:
 virtualbox-qt depends on virtualbox (= 4.1.12-dfsg-2); however:
  Package virtualbox is not configured yet.
dpkg: error processing virtualbox-qt (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 virtualbox
 virtualbox-dkms
 virtualbox-qt


Any ideas? I'm finding similar problems on the web, but no fixes, at least none that work for me.
 

weovpac

Golden Member
Apr 12, 2000
1,381
0
76
All is working fine here, I have the following installed:

Code:
$ dpkg -l "virtualbox*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                         Version                      Description
+++-============================-============================-========================================================================
ii  virtualbox                   4.1.12-dfsg-2                x86 virtualization solution - base binaries
ii  virtualbox-dkms              4.1.12-dfsg-2                x86 virtualization solution - kernel module sources for dkms
ii  virtualbox-guest-additions-i 4.1.12-1                     guest additions iso image for VirtualBox
ii  virtualbox-qt                4.1.12-dfsg-2                x86 virtualization solution - Qt based user interface
ii  virtualbox-source            4.1.12-dfsg-2                x86 virtualization solution - kernel module source

Today I installed:
Code:
ii  linux-image-3.3.0-trunk-amd6 3.3.2-1~experimental.1       Linux 3.3 for 64-bit PCs

To try and see if nouveau would work on my video card, it did. :)

dkms did it's thing an built the needed kernel module:
Code:
$ /sbin/modinfo vboxdrv 
filename:       /lib/modules/3.3.0-trunk-amd64/updates/dkms/vboxdrv.ko
version:        4.1.12_Debian (0x00190000)
license:        GPL
description:    Oracle VM VirtualBox Support Driver
author:         Oracle Corporation
srcversion:     94DD38378BA181324CCEA52
depends:        
vermagic:       3.3.0-trunk-amd64 SMP mod_unload modversions 
parm:           force_async_tsc:force the asynchronous TSC mode (int)

After screwing around with it, and attempting to install the non-free version and also getting errors, I now get this when attempting to install via Synaptic...

insserv: script virtualbox: service vboxdrv already provided!
insserv: exiting now!

It seems you still have Oracle's Vbox installed and it is causing the install of the free Vbox to fail.
 

lxskllr

No Lifer
Nov 30, 2004
59,146
9,585
126
It seems you still have Oracle's Vbox installed and it is causing the install of the free Vbox to fail.

I deleted vboxdrv thinking it would be recreated if necessary, but that didn't happen, it's just AWOL.

I'm thinking about removing everything, and trying to compile it from source, to see if that makes a difference. I haven't fooled with it much today. I've been busy and tired.
 

lxskllr

No Lifer
Nov 30, 2004
59,146
9,585
126
Just an update...

I looked at it with fresh eyes, and tried reconfiguring virtualbox-dkms. I got an error again, and after studying it closely, I realized I had a mismatch with the kernel headers, and my installed kernel. When I installed the headers, I had picked the highest version(only one listed?) assuming that's what I was running, but I was actually a minor version back. My headers were 3.2.0-2, but my kernel was 3.2.0-1. I'd have thought that would have been a suggested update when running Synaptic, but I guess not. I installed the correct kernel, rebooted, and everything is working grand :^)

If anyone else runs across this, and has a similar problem, make sure your kernels/sources match. I spent way more time on this than I should have :^/
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
That's what 'm-a prepare' is for, it always pulls in the kernel-headers package for the version that you're currently running.
 

weovpac

Golden Member
Apr 12, 2000
1,381
0
76
Just an update...

To avoid issues like these. Install the meta package for the kernel and headers:

Code:
linux-image-amd64
linux-headers-amd64

Which would track the latest kernel package and headers package.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
To avoid issues like these. Install the meta package for the kernel and headers:

Code:
linux-image-amd64
linux-headers-amd64

Which would track the latest kernel package and headers package.

Which doesn't work if you don't always run the latest kernel available, which I can't because they tend to break the VMware modules periodically.