Updating linux kernel headers
For this task the actual implementation of the function is not necessary.
You could do the same with the complete kernel sources but you will install a lot of unnecessary files.
There is an alternate solution - one can attempt to manually install the older packages without upgrading the kernel.
These days, having the entire source on disk (unnecessarily) would not be a major disk space consideration. In other words, a description of the function, its parameters, and what kind of data it returns.
If you are building a complete kernel, then, obviously, you need the complete source files, not just the headers.
However, if you are compiling a device driver or other loadable module which links into the kernel then you only need the header files, so can save space by not installing the full sources.
deb kali-rolling main contrib non-free deb kali main contrib non-free deb sana main contrib non-free deb kali/updates main contrib non-free deb sana/updates main contrib non-free sudo apt-get update # this pulls the latest packages list from the kali sources repo sudo apt-get -y dist-upgrade # when installing this, you would see the latest kernel # image in the list of packages to be installed,something # like" linux-image-4.5.0-kali1-amd64" reboot # MOST IMPORTANT STEP!
make sure you reboot the machine via this cmd OR # shutdown, restart forcefully after completing prev cmds uname -r # check that the kernel release has updated I think you probably meet this problem that lack of linux headers when you install the VMware Tools.Just installed Kali Linux 2.0 or upgraded to Kali Linux 2.0 and you need to install Kernel headers? On our previous article we talked about how to upgrade to Kali Linux 2.0 (Kali Sana) from 1.x version of Kali Linux.