I got this error while I was using dkms commands sudo dkms install anbox-ashmem/1 && sudo dkms install anbox-binder/1
Error! Your kernel headers for kernel 5.10.16.3-microsoft-standard-WSL2 cannot be found.
Please install the linux-headers-5.10.16.3-microsoft-standard-WSL2 package,
or use the --kernelsourcedir option to tell DKMS where it's located
I got this error while I was using dkms commands
sudo dkms install anbox-ashmem/1 && sudo dkms install anbox-binder/1