Virtualbox with LMDE, dependency hell! (SOLVED)

Archived topics about LMDE 1 and LMDE 2
Locked
Whitefort
Level 2
Level 2
Posts: 60
Joined: Mon Oct 17, 2011 2:53 pm

Virtualbox with LMDE, dependency hell! (SOLVED)

Post by Whitefort »

Hi. I've been tearing my hair out for a couple of weeks now, trying to get Virtual box to work in LMDE.

If anyone has actually succeeded in doing this, I'd be really grateful if you could help me out. I've read various posts here and elsewhere, but none of the 'fixes' listed are helping me.

Uninstalling my previous efforts and starting from scratch, here's what I get:

Code: Select all

john@snark ~ $ sudo apt-get install virtualbox
[sudo] password for john: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  virtualbox-dkms virtualbox-qt
Suggested packages:
  virtualbox-guest-additions-iso vde2
The following NEW packages will be installed:
  virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/17.6 MB of archives.
After this operation, 69.4 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package virtualbox.
(Reading database ... 194915 files and directories currently installed.)
Unpacking virtualbox (from .../virtualbox_4.1.18-dfsg-1.1_i386.deb) ...
Selecting previously unselected package virtualbox-dkms.
Unpacking virtualbox-dkms (from .../virtualbox-dkms_4.1.18-dfsg-1.1_all.deb) ...
Selecting previously unselected package virtualbox-qt.
Unpacking virtualbox-qt (from .../virtualbox-qt_4.1.18-dfsg-1.1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Setting up virtualbox (4.1.18-dfsg-1.1) ...
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.18-dfsg-1.1); 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.18-dfsg-1.1); 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
E: Sub-process /usr/bin/dpkg returned an error code (1)
john@snark ~ $ 

At the end of this, I DO have an apparent installation of Virtualbox, in which I can even create a new virtual drive. However when I try to open the drive
a window pops up saying

Code: Select all

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}
.
Followed by a second window which says

Code: Select all

Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
DKMS is already installed, and typing /etc/init.d/vboxdrv setup doesn't do anything.

I'd be really grateful for any advice - this is driving me nuts! I have a virtual machine on my main PC that I really need to be able to transfer to my laptop. ( On my other Mint (15 and earlier) installations Virtualbox 'just works'. it's just LMDE that giving me troubles.)
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.
theblackpig

Re: Virtualbox with LMDE, dependency hell!

Post by theblackpig »

I have been away from LM for a considerable time , having discovered there is now a LMDE version I installed today , now running both Virualbox and VMWorkstation with no trouble.
Can only suggest you download latest iso and re-install
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Re: Virtualbox with LMDE, dependency hell!

Post by Transitman »

Whitefort wrote:Hi. I've been tearing my hair out for a couple of weeks now, trying to get Virtual box to work in LMDE.
If anyone has actually succeeded in doing this, I'd be really grateful if you could help me out. I've read various posts here and elsewhere, but none of the 'fixes' listed are helping me.
Uninstall Virtualbox from the system via synaptic.

Go to this web site - https://www.virtualbox.org/
Then to this page - https://www.virtualbox.org/wiki/Downloads
Then to this page -https://www.virtualbox.org/wiki/Linux_Downloads
Depending on what version you are using (32-bit or 64-bit) select Debian 7 (32-bit or 64-bit) and download.
Then go back to this page - https://www.virtualbox.org/wiki/Downloads and click on VirtualBox 4.2.18 Oracle VM VirtualBox Extension Pack - http://download.virtualbox.org/virtualbox/4.2.18/Oracle_VM_VirtualBox_Extension_Pack-4.2.18-88780.vbox-extpack

Now close the browser and find where you saved Virtualbox, click on it and install with gdebi.
When you are done installing, find Oracle_VM_VirtualBox_Extension_Pack-4.2.18-88780.vbox-extpack, right click on it and Open With Oracle VM Virtual Box. This will install the ability to use your USB attached equipment.

When done, open VirtualBox and enjoy.
Whitefort
Level 2
Level 2
Posts: 60
Joined: Mon Oct 17, 2011 2:53 pm

Re: Virtualbox with LMDE, dependency hell!

Post by Whitefort »

Transitman,

I read your post with a feeling of frustration, thinking, 'but I've already DONE all that''!
But I hadn't, as it turned out. I'd followed similar instructions, but telling me to download a different version of virtualbox than the one you suggested.

Anyway, I followed your instructions step by step, documenting each step carefully (so I could come back and tell you exactly where they didn't work :D ).

Long story short, they DID work. Perfectly! I've now got VirtualBox on my LMDE laptop - something I'd just about given up on.

MANY MANY thanks for your very helpful post. I really appreciate it.

I'll mark this thread solved.

Thanks again - you've no idea how useful this is to me.
Transitman
Level 2
Level 2
Posts: 95
Joined: Sun Dec 02, 2007 1:48 am

Re: Virtualbox with LMDE, dependency hell!

Post by Transitman »

Whitefort wrote:Transitman,

I read your post with a feeling of frustration, thinking, 'but I've already DONE all that''!
But I hadn't, as it turned out. I'd followed similar instructions, but telling me to download a different version of virtualbox than the one you suggested.

Anyway, I followed your instructions step by step, documenting each step carefully (so I could come back and tell you exactly where they didn't work :D ).

Long story short, they DID work. Perfectly! I've now got VirtualBox on my LMDE laptop - something I'd just about given up on.

MANY MANY thanks for your very helpful post. I really appreciate it.

I'll mark this thread solved.

Thanks again - you've no idea how useful this is to me.
You are welcome my friend.
I have learned to be the try one and if it don't work look for alternative to make it work.
Having been a Linux user since 2005, I learn something new every day, and when I can I help someone who might of had the same problem I had.

Enjoy your new found VirtualBox and best of luck to you.
rubengas

Re: Virtualbox with LMDE, dependency hell! (SOLVED)

Post by rubengas »

Hi,

I only want to say thanks to Transitman! I've the same problem that Whitefort and I've solved it with your instructions.

Thanks!!
triwave
Level 1
Level 1
Posts: 42
Joined: Thu May 29, 2008 12:32 pm

Re: Virtualbox with LMDE, dependency hell! (SOLVED)

Post by triwave »

I also wanted to say thanks, work like a charm for me.

I wanted to report that I followed the instructions with a newer version of Vbox than referenced in this help - Version 4.3.12 - and followed the instructions exactly the same and had perfect results first time.
User avatar
filozofio
Level 2
Level 2
Posts: 55
Joined: Thu Apr 14, 2011 2:31 am

Re: Virtualbox with LMDE, dependency hell! (SOLVED)

Post by filozofio »

With LMDE 201403 it works "out of the box", or "out of the synaptics", installing the default version in the repositories.
Locked

Return to “LMDE Archive”