A while ago I installed the NVIDIA drivers onto my PC via The Hard Way method 'cause I wanted to run Steam. Went through with it without any trouble. I think yesterday there must have been a kernel update because today the PC boots straight into tty1 and there is a blank screen on tty7.
So, I attempt to run the NVIDIA driver install again as root and run through the install. Everything works fine until the end of the installation where I get the error message “the kernel header file ‘/usr/src/linux/include/linux/version.h’ does not exist”. Back the guide I go. I then blacklist the nouveau driver to make sure that isn’t the problem, run mkinitrd and reboot, but still no joy.
I’ve read in similar threads that it could be a kernel problem, so I tried:
sudo update kernel-desktop
but I get ‘There is no update candidate for kernel-desktop-3.9.0-6.1.x86_64’
Sorry, with Firefox and Add-Ons the formatting of my post was ignored, so here again:
The version.h file is not at the place /usr/src/linux/include/linux/version.h, where the nvidia installation script is expecting it to find.
Mine is found at /lib/modules/4.1.15-8-default/build/include/generated/uapi/linux/version.h
Or at /usr/src/linux-obj/x86_64/default/include/generated/uapi/linux/version.h
I am using Leap 42.1.
So you could create a symbolic link to the place where you find your version.h file.
This link will only work until your next kernel update.