Fedora 30/29/28/27/26 nVidia FAQ

How to fix NVIDIA installation libglvnd error

nVidia libglvnd error

Try following commands:


ls -la /usr/lib64/libGL.so.1*
lrwxrwxrwx. 1 root root     14 Jul  6 11:12 /usr/lib64/libGL.so.1 -> libGL.so.1.0.0
-rwxr-xr-x. 1 root root 581840 Jul  6 11:12 /usr/lib64/libGL.so.1.0.0

rm -rf /usr/lib64/libGL.so.1.0.0

dnf reinstall libglvnd-glx

## Should be installed already on step 2.5 Install needed dependencies ##
dnf install libglvnd-opengl libglvnd-devel pkgconfig

Then run installer again. Thanks to Phil K.

Download nVidia Patched Installer

2. Download nVidia 340.107 installer with Kernel 5.1, 5.0, 4.20, 4.18, 4.17, 4.16, 4.15, 4.14, 4.13 and 4.12 patch

## x86_64 / 64-bit ##
wget https://nvidia.if-not-true-then-false.com/NVIDIA-Linux-x86_64-340.107-kernel-5.1-patched.run

3. Download nVidia 304.137 installer with Kernel 4.15, 4.14 patch

wget https://nvidia.if-not-true-then-false.com/NVIDIA-Linux-x86_64-304.137-patched-kernel-4.14.run

How to Patch nVidia Installer

This is example how to patch nVidia 304.134 drivers with latest kernels, like 4.12/4.11/4.10/4.9/4.8/4.7/4.6/4.5/4.4/4.3. You can create any directory and run following commands under it.

1. Extract nVidia Driver Package


## 64-bit ##
./NVIDIA-Linux-x86_64-304.135.run --extract-only

## 32-bit ##
./NVIDIA-Linux-x86-304.135.run --extract-only

2. Download Patch


wget https://media.if-not-true-then-false.com/files/nvidia_mtrr_k4_3.patch

This patch is originally from here.

3. Apply Patch to nVidia Installer


## 64-bit ##
patch NVIDIA-Linux-x86_64-304.135/kernel/nv-linux.h < nvidia_mtrr_k4_3.patch

## 32-bit ##
patch NVIDIA-Linux-x86-304.135/kernel/nv-linux.h < nvidia_mtrr_k4_3.patch

Note: you need patch “dnf install patch”

4. Create nVidia Installer with Patch


## 64-bit ##
./NVIDIA-Linux-x86_64-304.135/makeself.sh --target-os Linux --target-arch x86_64 NVIDIA-Linux-x86_64-304.135 NVIDIA-Linux-x86_64-304.135-patched.run "NVIDIA driver 304.135 patched for kernel 4.3+" ./nvidia-installer

## 32-bit ##
./NVIDIA-Linux-x86-304.135/makeself.sh --target-os Linux --target-arch x86 NVIDIA-Linux-x86-304.135 NVIDIA-Linux-x86-304.135-patched.run "NVIDIA driver 304.135 patched for kernel 4.3+" ./nvidia-installer

5. nVidia Patched Installer

Now you should have NVIDIA-Linux-x86_64-304.134-patched.run or NVIDIA-Linux-x86-304.134-patched.run. Then install nVidia drivers using your patched installer.

2,437 comments on “Fedora 30/29/28/27/26 nVidia FAQ

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close