I don't think Kali has linux-headers-generic. I can"t see it anyway. You will need to work out which kernel you are runningand then install the headers for that kernel.Code:uname -r
Hopefully this will work.Code:sudo apt-get install linux-headers-4.12.0-kali1-686 [FOR EXAMPLE]
I could be wrong here. Can you check whether you have kernel headers installed? Do let me know if I'm on the wrong track.