NVIDIA: the hard way problems

Hi guys,

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’

so then I run:

rpm -qa '*kernel*'

and this is the output:

kernel-devel-4.4.0-2.1.noarch
kernel-default-4.4.0-3.1.x86_64
patterns-openSUSE-devel_kernel-20151112-8.1.x86_64
kernel-default-4.4.1-1.1.x86_64
kernel-syms-4.4.0-2.1.x86_64
kernel-syms-4.4.0-3.1.x86_64
kernel-macros-4.4.0-3.1.noarch
kernel-source-4.4.0-3.1.noarch
kernel-default-4.4.0-2.1.x86_64
kernel-devel-4.4.0-3.1.noarch
kernel-source-4.4.0-2.1.noarch
kernel-default-devel-4.4.0-3.1.x86_64
kernel-firmware-2016112git-1.1.noarch
kernel-default-devel-4.4.0-2-1.x86_64

I’m willing to do a full re-install of Tumbleweed if necessary but i’d rather fix it myself. Can anyone offer any help with this problem?

Cheers,

D

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.hI am using Leap 42.1.Or at /usr/src/linux-obj/x86_64/default/include/generated/uapi/linuxSo 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.http://www.nfec.de/2013/02/opensuse-tumbleweed-with-kernel-3-7-or-higher-using-nvidia-geforce-driver/http://lists.opensuse.org/opensuse/2007-10/msg00883.html

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.

http://www.nfec.de/2013/02/opensuse-tumbleweed-with-kernel-3-7-or-higher-using-nvidia-geforce-driver/

https://forums.opensuse.org/showthread.php/450657-kernel-source-s-version-h

I think, this is your running Kernel:

kernel-default-4.4.1-1.1.x86_64

Can you see with uname -a

This are the devel-packages:

kernel-devel-4.4.0-2.1.noarch
kernel-syms-4.4.0-2.1.x86_64
kernel-syms-4.4.0-3.1.x86_64
kernel-devel-4.4.0-3.1.noarch
kernel-default-devel-4.4.0-3.1.x86_64
kernel-default-devel-4.4.0-2-1.x86_64

No matching kernel-default-devel-4.4.1-1.1

For information in Leap and Tumbleweed there is no longer a desktop kernel it is now called default.

But you need the headers and it is possible you need to tell the installer where they live or set a link if not in a standard location.