ubunt ,the kernel headers for the target kernel...

Ubuntu安装内核模块时报错 

Bad luck, the kernel headers for the target kernel version could not be found and you did not specify other valid kernel headers to use...

It because the kernel generic headers is missing the version.h file.

A workaround is to link as follows:

ln -s /usr/src/linux-headers-`uname -r`/include/generated/uapi/linux/version.h /lib/modules/`uname -r`/build/include/linux/

你可能感兴趣的:(ubunt ,the kernel headers for the target kernel...)