I had VirtualBox 4.3 installed and uninstalled it to have VirtualBox 5.1... big mistake, ever since I keep getting errors, or being unable to install any other version. Already used Synaptic, and
sudo apt-get purge virtualbox
following a suggestion, used the command
sudo apt-get remove virtualbox
apt-get autoremove
which seemed to get rid of some VB dependencies and allowed me to install VB again, but I get this error when I try to start it:
Failed to acquire the VirtualBox COM object.
The application will now terminate.
Failed to acquire the VirtualBox COM object.
The application will now terminate.
Document is empty.
Location: '/home/user/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.
/home/vbox/vbox-5.1.22/src/VBox/Main/src-server/VirtualBoxImpl.cpp[550]
(nsresult VirtualBox::init()).
Result Code: NS_ERROR_FAILURE (0x80004005)
Component: VirtualBoxWrap
Interface: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945} Callee:
IVirtualBoxClient {d2937a8e-cb8d-4382-90ba-b7da78a74573}
What should I do?