Hi -

I have a pretty standard dual boot of Kali (uname -r is 4.6.0-kali1-amd64) and it's dual booted with El Cap.

I want to VM Metasploitable so I downloaded and ran VirtualBox and now I have so many problems. It wouldn't run my VM so I went to terminal to check some things and I can't figure it out.

Output:
root@----:~# virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-dkms package and the appropriate
headers, most likely linux-headers-amd64.

You will not be able to start VMs until this problem is fixed.
Qt WARNING: libpng warning: iCCP: known incorrect sRGB profile

In an attempt to fix this, I ran apt-get update and I ran into the following issue:

root@kali1:~# apt-get update
Hit:1 http://download.virtualbox.org/virtualbox/debian vivid InRelease
Hit:2 http://archive-6.kali.org/kali kali-rolling InRelease
Reading package lists... Done
W: http://download.virtualbox.org/virtu...vid/InRelease: Signature by key 7B0FAB3A13B907435925D9C954422A4B98AB5139 uses weak digest algorithm (SHA1)
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2
*****Many more W's cut for clarity*******


So I tried to install the appropriate headers/things by the following:

sudo apt-get install linux-headers-amd64 virtualbox-dkms

which confusingly says everything is up to date

and then

dpkg-reconfigure virtualbox-dkms

which tells me: "Module build for kernel 4.6.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed."

and then I tried:
dpkg-reconfigure virtualbox

which tells me: vboxweb.service is a disabled or a static unit, not starting it.


I have no idea what the problem is now so please let me know if you need the output of more commands.

Thanks guys