I ran this command:
apt-cache search linux-headers-$(uname -r)
and it returns the output
linux-headers-5.0.0-13-generic - Linux kernel headers for version 5.0.0 on 64 bit x86 SMP
Then I ran the following command to update the linux headers:
sudo apt-get install linux-headers-$(uname -r)
Still, it gets stuck (VMware Kernel Module Updater) at the Compiling/Virtual Machine Monitor.
Does anyone know how to solve this?