Sunday, 20 May 2012

The kernel source for this kernel does not seem to be installed


Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

I regularly reinstall my graphics drivers, but can never seem to remember where the link to the kernel source/headers should be for DKMS to find it automatically. Here it is for reference, assuming your kernel source/headers are placed at /usr/src/linux-<kernelversion>:

# unlink /lib/modules/$(uname -r)/build
# ln -s /usr/src/linux-$(uname -r) /lib/modules/$(uname -r)/build