Ubuntu – Error while validating for Ubuntu 12.10 Kernel headers

headerskernelUbuntuvmware

I have my VMware Player (v 5.0.0 build-812388) all up and running Ubuntu (12.10) from my Windows (Win 7) machine.

When I launch sudo vmware-config-tools.pl, it tries to search for kernel

Searching for a valid kernel header path...
The path "" is not a valid path to the 3.5.0-17-generic kernel headers.
Would you like to change it? [yes]

Enter the path to the kernel header files for the 3.5.0-17-generic kernel?

I entered /usr/src/linux-headers-3.5.0-17-generic.

The path "/usr/src/linux-headers-3.5.0-17-generic" is not a valid path to the 
3.5.0-17-generic kernel headers.

Due to this it doesn't compile modules. So unable to mount HGFS (shared folder) filesystems.

Any ideas how I can fix this?

Best Answer

  1. Make sure you have rebooted Ubuntu since applying any software updates. Software updates may change the kernel version.
  2. Make sure you install build-essential package.
  3. Try sudo apt-get install linux-headers-$(uname -r)