How to fix missing Linux header error for VMware Workstation

  • Post last modified:February 6, 2022
  • Reading time:5 mins read
  • Post author:
  • Post comments:0 Comments

I tried to run VMware Workstation to install a secondary operating system to test functionality, but it flagged me an error: “VMware Kernel Module Updater: Kernel header X.X.X-X-amd64 were not found.” 

Intentionally I ignored the message and clicked on “Install” to proceed with the installation. As a result, I got another error which stated, “C header files matching your running kernel were not found”.

Let’s look at how the error looks in my Debian machine.

So today, you will see how to resolve this issue with a simple and elegant solution.

Find Linux header path to check availablity

However, there may be multiple possibilities for this error, but the most common error is the missing linux-header. To confirm this, you will use the find command to check linux-headers availability in your system.

20+ Find command which you can use daily

A default location of linux-headers is /usr/src for Ubuntu/Debian based operating system and /usr/src/kernels for RHEL derivatives.

Pass the following command into your terminal:

$ find /usr/src -name linux-headers-$(uname -r)   // Ubuntu/Debian
$ find /usr/src/kernels -name $(uname -r)         // AlmaLinux/Fedora

The command output didn’t show anything, which means you need to install linux-headers.

Install Linux headers to fix missing linux headers

The one-stop solution to fix this error is to install linux headers for the current kernel. Do you know which Linux kernel version is installed in your System? No problem if you are not sure. 

Type the following command as per the respective Linux flavours.

$ sudo apt install linux-headers-$(uname -r)         // Ubuntu/Debian
$ sudo dnf install "kernel-devel-$(uname -r)"        // AlmaLinux/Fedora

Once the installation is done, we need to relaunch the VMware workstation to configure.

Configure VMware after installing Linux headers

The first screen will ask you to click on Install to move ahead. After that, it will prompt you to authenticate yourself. And wait for the process to get complete.

Wrap up

That’s all, to fix “VMware Kernel Module Updater: Kernel header X.X.X-X-amd64 were not found.”  or “C header files matching your running kernel were not found”.

Hope your issue is resolved.

Leave a Reply