Ubuntu: Updated to VBox 5.0.20, now cant install guest additions [closed]


I cloned a fresh copy of kali2, did apt-get update. apt-get dist-upgrade(installed fine). Tried with and without installing dkms. (dkms is installed on host(ubuntu) before virtualbox upgrade). Then I try theese two commands which fail because of missing headers.


I was able to install guest additions fine before upgrade to new version of vbox.


Try this commands

deb http://httpredir.debian.org/debian/ jessie main contrib non-free  apt-get update  apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms  

Mount VBoxGuesAdditions CD and an icon is going to show up on your desktop, right click on it and click on 'Open in terminal'...then run this command

sudo ./VBoxLinuxAdditions.run  

and reboot


I've successfully installed guest additions on Ubuntu 16.04 over VirtualBox 5.0.20 by simply inserting the guest additions cd from the device menu of Virtual machine.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »