It's been 2 days since I can't solve my problem.
I had a working copy of VirtualBox but something went wrong so I decided to start fresh.
Does this remove all the configuration as well?
And this is how I get new version of virtualbox
sudo apt-get purge virtualbox-\*
And now the log that follows. I am really not sure what's wrong.
Whenever I run
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/62.9 MB of archives.
After this operation, 137 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package virtualbox-4.2.
(Reading database ... 126340 files and directories currently installed.)
Unpacking virtualbox-4.2 (from .../virtualbox-4.2_4.2.8-83876~Ubuntu~precise_amd64.deb) ...
Processing triggers for ureadahead ...
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'
Processing triggers for hicolor-icon-theme ...
Setting up virtualbox-4.2 (4.2.8-83876~Ubuntu~precise) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
* Stopping VirtualBox kernel modules [ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS [ OK ]
* Starting VirtualBox kernel modules [ OK ]
* Starting VirtualBox web service
invoke-rc.d: initscript vboxweb-service, action "start" failed.
dpkg: error processing virtualbox-4.2 (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for python-central ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Virtualbox Web Service always fails to start.
sudo /etc/init.d/vboxweb-service start