Perryg wrote:I would purge the current install of VirtualBox and make sure all traces are gone. Then install again after a reboot to make sure that all traces are gone.
This is what I did for cleaning my system starting from that Virtualbox installaton which produced errors:
STEP 1: remove old kernel modules
Code: Select all
sudo /etc/init.d/vboxdrv setup
[sudo] password for gubi:
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS ...done.
Starting VirtualBox kernel modules ...done.
STEP 2: Remove all the virtualbox packages
Code: Select all
gubi@lino:~$ sudo apt-get remove virtualbox*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'virtualbox-3.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.2' for regex 'virtualbox*'
Note, selecting 'virtualbox' for regex 'virtualbox*'
Note, selecting 'unity-scope-virtualbox' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-dbg' for regex 'virtualbox*'
Note, selecting 'virtualbox-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-x11' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions-iso' for regex 'virtualbox*'
Note, selecting 'virtualbox-qt' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-utils' for regex 'virtualbox*'
Package 'virtualbox-2.0' is not installed, so not removed
Package 'virtualbox-2.1' is not installed, so not removed
Package 'virtualbox-2.2' is not installed, so not removed
Package 'virtualbox-3.0' is not installed, so not removed
Package 'virtualbox-4.2' is not installed, so not removed
Package 'virtualbox-3.1' is not installed, so not removed
Package 'virtualbox-3.2' is not installed, so not removed
Package 'virtualbox-4.0' is not installed, so not removed
Package 'virtualbox-4.1' is not installed, so not removed
Package 'virtualbox-guest-additions' is not installed, so not removed
Package 'virtualbox-ose' is not installed, so not removed
Package 'unity-scope-virtualbox' is not installed, so not removed
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
Package 'virtualbox' is not installed, so not removed
Package 'virtualbox-dbg' is not installed, so not removed
Package 'virtualbox-dkms' is not installed, so not removed
Package 'virtualbox-guest-dkms' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-guest-utils' is not installed, so not removed
Package 'virtualbox-guest-x11' is not installed, so not removed
Package 'virtualbox-qt' is not installed, so not removed
Package 'virtualbox-source' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
(After this step, the icon of virtualbox is still present in system tools program group and in Ubuntu software center)
Step 3: Uninstall VirtualBox from Ubuntu software center. It is listed in the removal log. The version removed is 4.3.26, which corresponds to the latest .deb package that was downloaded and installed trough Ubuntu Software Center.
Step 4: Now the software is no longer reported as installed in Ubuntu software center and it is gone also from the system tools program group.
Step 5: another purge from shell, just to be sure. There are still many "ghost" packages which produce the warning "Package XYZ is not installed, so not removed.
Code: Select all
gubi@lino:~$ sudo apt-get purge virtualbox*
[sudo] password for gubi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'virtualbox-3.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-3.2' for regex 'virtualbox*'
Note, selecting 'virtualbox' for regex 'virtualbox*'
Note, selecting 'unity-scope-virtualbox' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-2.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-dbg' for regex 'virtualbox*'
Note, selecting 'virtualbox-dkms' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-x11' for regex 'virtualbox*'
Note, selecting 'virtualbox-ose' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions-iso' for regex 'virtualbox*'
Note, selecting 'virtualbox-qt' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-additions' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.0' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.1' for regex 'virtualbox*'
Note, selecting 'virtualbox-4.2' for regex 'virtualbox*'
Note, selecting 'virtualbox-source' for regex 'virtualbox*'
Note, selecting 'virtualbox-guest-utils' for regex 'virtualbox*'
Package 'virtualbox-2.0' is not installed, so not removed
Package 'virtualbox-2.1' is not installed, so not removed
Package 'virtualbox-2.2' is not installed, so not removed
Package 'virtualbox-3.0' is not installed, so not removed
Package 'virtualbox-4.2' is not installed, so not removed
Package 'virtualbox-3.1' is not installed, so not removed
Package 'virtualbox-3.2' is not installed, so not removed
Package 'virtualbox-4.0' is not installed, so not removed
Package 'virtualbox-4.1' is not installed, so not removed
Package 'virtualbox-guest-additions' is not installed, so not removed
Package 'virtualbox-ose' is not installed, so not removed
Package 'unity-scope-virtualbox' is not installed, so not removed
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
Package 'virtualbox' is not installed, so not removed
Package 'virtualbox-dbg' is not installed, so not removed
Package 'virtualbox-dkms' is not installed, so not removed
Package 'virtualbox-guest-dkms' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-guest-utils' is not installed, so not removed
Package 'virtualbox-guest-x11' is not installed, so not removed
Package 'virtualbox-qt' is not installed, so not removed
Package 'virtualbox-source' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libcaca0:i386 libcurl3:i386 libdevmapper1.02.1:i386 libidn11:i386
libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386
libreadline6:i386 librtmp1:i386 libsdl1.2debian:i386 libxmu6:i386
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
gubi@lino:~$
Step 6: for a deep clean, I ran the command apt-get autoremove to remove packages which are no longer required.
Code: Select all
gubi@lino:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libcaca0:i386 libcurl3:i386 libdevmapper1.02.1:i386 libidn11:i386
libpython2.7:i386 libpython2.7-minimal:i386 libpython2.7-stdlib:i386
libreadline6:i386 librtmp1:i386 libsdl1.2debian:i386 libxmu6:i386
0 upgraded, 0 newly installed, 11 to remove and 11 not upgraded.
After this operation, 18.7 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 329293 files and directories currently installed.)
Removing libsdl1.2debian:i386 (1.2.15-10ubuntu1) ...
Removing libcaca0:i386 (0.99.beta19-2) ...
Removing libcurl3:i386 (7.37.1-1ubuntu3.2) ...
Removing libdevmapper1.02.1:i386 (2:1.02.77-6ubuntu2) ...
Removing libidn11:i386 (1.28-1ubuntu2) ...
Removing libpython2.7:i386 (2.7.8-10ubuntu1) ...
Removing libpython2.7-stdlib:i386 (2.7.8-10ubuntu1) ...
dpkg-query: no packages found matching pkgname
Removing libpython2.7-minimal:i386 (2.7.8-10ubuntu1) ...
dpkg-query: no packages found matching pkgname
dpkg-query: no packages found matching pkgname
Removing libreadline6:i386 (6.3-8ubuntu1) ...
Removing librtmp1:i386 (2.4+20131018.git79459a2-4) ...
Removing libxmu6:i386 (2:1.1.2-1) ...
Processing triggers for libc-bin (2.19-10ubuntu2.3) ...
gubi@lino:~$
Step 7: Reboot
Step 8:
Install the .deb package available on
http://download.virtualbox.org/virtualb ... g_i386.deb
Which corresponds to my CPU (Intel) and to my version of Ubuntu (14.10)
Step 9: Double-clicking the package will make it open in Ubuntu software center, where I click on "Install". ([By the way, I don't understand why Virtualbox is not available through the standard repositories available on Ubuntu software center and it has to be installed as a separate package)
Step 10: After the first install, Virtualbox is not listed in the "installed" log of Ubuntu Software Center, but it is present in the system tools program group.
Step 11: I click again on the "install" button in Ubuntu Software Center, and finally Virtualbox is listed among the installed applications.
Step 12: I run Virtualbox, and when I try to run a new virtual machine configured from scratch, I still get the same error:

- Screenshot6.jpg (61.52 KiB) Viewed 17454 times