Linux – Header files not found when installing VMWare tools in Kubuntu. You know why?

Header files not found when installing VMWare tools in Kubuntu. You know why?… here is a solution to the problem.

Header files not found when installing VMWare tools in Kubuntu. You know why?

I’m using a Kubuntu image via VMWare.

To share files between the host and guest operating systems. I need to install the VMWare tool as described here

./vmware-install.pl

It triggers the following question

What is the location of the directory of C header files that match your running kernel?

Any idea why this is the case?

Solution

In Kubuntu, you need to install Linux kernel headers using:

sudo apt-get install linux-headers-generic

If you haven’t upgraded your package, use the following command to install header::for the currently loaded kernel

sudo apt-get install linux-headers-$(uname -r)

Related Problems and Solutions