I am experiencing errors while trying to install Virtualbox Guest Additions on a fresh install of Kali Linux 64-bit. Windows 10 64-bit is the host OS.apt-get updateapt-get upgrade -yapt-get dist-upgrade -yapt-get install linux-headers-$(uname -r)After running step 4, the following error appearsE: Unable to locate package 'linux-headers-4.9.0-kali3-amd64'E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64'E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'Copied VBoxGuestAdditions.run from the mounted VBOXADDITIONS_5.1.22_1115126 disc to /root/Desktopchmod 755 ./VBoxLinuxAdditions.run./VBoxAdditions.runRunning step 7 gave the error:vboxadd.sh: Starting the VirtualBox Guest Additions.Failed to set up service vboxadd, please check the log file/var/log/VBoxGuestAdditions.log for detailsInside /var/log/VBoxGuestAdditions.log:Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service ->  /lib/systemd/system/vboxadd.service.vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.vboxadd.sh: failed: modprobe vboxguest failed.Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-service.service -> /lib/systemd/system/vboxadd-service.serviceCreated symlink /etc/systemd/system/multi-user.target.wants/vboxadd-x11.service -> /lib/systemd/system/vboxadd-x11.serviceAnd inside /var/log/vboxadd-install.log:/tmp/vbox.0/Makefile.include.header:112: *** ERror: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.Creating user for the Guest Additions.Creating udev rule for the Guest Additions kernel module.Before Restart uname -a : Linux k 4.9.0-kali3-amd64 #1 SMP Debian 4.9.18-1kali1 (2017-04-04) X86_64 GNU/LinuxAfter Restart uname -a :Linux k 4.9.0 -kali4-amd64 #1 SMP Debian 4.9.25-1kali1 (2017-05-04) x86_64 GNU/LinuxAny ideas what went wrong?Output of apt-cache search linux-headers
Unable to Install VirtualBox Guest Additions in Kali
kali linux;virtualbox
To install the appropriate linux-headers to your kernel image , get the available linux-headers through :apt-cache search linux-headersThen install it:apt-get install linux-headers-4.9.0-kali4-amd64