NVIDIA Drivers installation fails due to dkms?

Had a similar problem, which was fixed by creating the /var/lib/dkms folder (if I do remember well, it doesn’t exist on a new install)
So, in a terminal, sudo mkdir /var/lib/dkms, then reinstall Nvidia.

Also, I couldn’t run any clearlinux version >35470 with the Nvidia drivers. Even tried reinstalling the whole system without success. The NVIDIA driver tutorial wasn’t useful either. Finally fixed it with the following install command:

sudo sh ./NVIDIA-Linux-x86_64-495.46.run --utility-prefix=/opt/nvidia --opengl-prefix=/opt/nvidia --compat32-prefix=/opt/nvidia --compat32-libdir=lib32 --x-prefix=/opt/nvidia --x-module-path=/opt/nvidia/lib64/xorg/modules --x-library-path=/opt/nvidia/lib64 --x-sysconfig-path=/etc/X11/xorg.conf.d --documentation-prefix=/opt/nvidia --application-profile-path=/etc/nvidia/nvidia-application-profiles-rc.d --no-precompiled-interface --no-distro-scripts --force-libglx-indirect --glvnd-egl-config-path=/etc/glvnd/egl_vendor.d --egl-external-platform-config-path=/etc/egl/egl_external_platform.d --dkms --no-cc-version-check --expert

And either change the options or keep the defaults when prompted

4 Likes