Your problem is that that you installed VirtualBox from Slackbuilds most likely using either sourcey, slapt-src or spi. The slackbuild does not install the vboxdrv script in /etc/rc.d and you therefore cannot build a new kernel modulo for the new kernel. In addition this VirtualBox installation is blocking the install of the binary version that you are trying to install using the installation script from VirtualBox. This is why you get this output when you try running the script.
Code: Select all
rich[Downloads]$ sudo sh VirtualBox-5.0.14-105127-Linux_x86.run
Password:
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.............
VirtualBox Version 5.0.14 r105127 (2016-01-19T16:55:41Z) installer
Removing previous installation of VirtualBox from /usr/lib/virtualbox
rich[Downloads]$
It just kind of crashes trying to remove the previous version. So you need to completely remove the previous version manually. Here's how:
First, find out what you have installed by using spkg -l. It should look something like this:
Code: Select all
rich[Downloads]$ spkg -l | grep virtual
virtualbox-4.3.24-i486-1_SBo
virtualbox-kernel-4.3.24_3.10.17_smp-i486-1_SBo
In this example there are two packages that need to be removed. You may have more since you also mention something about a slacky version that you tried. To remove the packages use spkg -d
Code: Select all
rich[Downloads]$ sudo spkg -d virtualbox virtualbox-kernel
Password:
Removing package virtualbox-4.3.24-i486-1_SBo...
WARNING: File was already removed. (etc/default/virtualbox.new)
WARNING: File was already removed. (etc/rc.d/rc.vboxautostart-service.new)
WARNING: File was already removed. (etc/rc.d/rc.vboxballoonctrl-service.new)
WARNING: File was already removed. (etc/rc.d/rc.vboxdrv.new)
WARNING: File was already removed. (etc/vbox/vbox.cfg.new)
WARNING: Can't remove directory etc/vbox. (Directory not empty)
Removing package virtualbox-kernel-4.3.24_3.10.17_smp-i486-1_SBo...
Remove the /etc/vbox directory
Code: Select all
rich[Downloads]$ sudo rm -r /etc/vbox
Remove ther vbox user and group
Code: Select all
rich[Downloads]$ sudo userdel vboxadd
rich[Downloads]$ sudo groupdel vboxusers
Now it should be cleaned up and you are ready to install VirtualBox using the bianry installer. Of course, make sure that you have the kernel-source package installed.
Code: Select all
rich[Downloads]$ sudo sh VirtualBox-5.0.14-105127-Linux_x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.............
VirtualBox Version 5.0.14 r105127 (2016-01-19T16:55:41Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules
VirtualBox has been installed successfully.
You will find useful information about using VirtualBox in the user manual
/opt/VirtualBox/UserManual.pdf
and in the user FAQ
http://www.virtualbox.org/wiki/User_FAQ
We hope that you enjoy using VirtualBox.
Now typing virtualbox on the command line should start VirtualBox.