When I run vmware in Kali Linux, this keeps showing up:

Image of the VMware Kernel Module Updater

I have kernel headers for version 6.3.0-kali1-amd64. What path do I use? When I choose a folder, this shows up:

Error window

I looked up the answers online and ran this script: sudo apt-get install linux-headers-$(uname -r) but it returns E: Unable to locate package linux-headers-6.1.0-kali9-amd64 so that command won't work. I have updated and upgraded my Kali Linux operating, too.
Also I searched for linux header packages with the command aptitude search linux-headers and the only version was 6.3.0-kali1-amd64.

1 Answer 1


You have updated the system, but have not yet rebooted, so the system is still running on the old (pre-update) kernel. The package management system refuses to install an older linux-headers package because after just one boot you will be running a newer kernel and any modules built for the old one will be useless.

You probably already have installed the linux-image-6.3.0-kali1-amd64_6.3.7-1kali1_amd64.deb package that contains the kernel that matches your linux-headers package version, but it's not running yet.

Reboot, then verify that uname -r now outputs 6.3.0-kali1-amd64, then try installing the VMware kernel module again.

  • You are right. uname -r outputs the outdated version so I will reboot my system.
    – horsey_guy
    Jul 14, 2023 at 17:14
  • It works after I rebooted.
    – horsey_guy
    Jul 14, 2023 at 17:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .