Solved: NVIDIA driver installation fails.

you may need to remove what you have installed so far before installing anything
reference steps can be found here: [url]Installation Guide Linux :: CUDA Toolkit Documentation
more reference: [url]https://devtalk.nvidia.com/default/topic/1000340/cuda-setup-and-installation/-quot-nvidia-smi-has-failed-because-it-couldn-t-communicate-with-the-nvidia-driver-quot-ubuntu-16-04/post/5110945/#5110945[/url]

i have just installed the rpm package nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86_64.rpm and yet to execute the following commands yum clean all; yum install cuda-drivers; reboot.

well yum install cuda-drivers gives me an error about dkms. It says package xorg-x11-drv-nvidia-libs-390.30-1.el7.x86_64 requires libvdpau(x86-64 >=0.5

→ Finished Dependency Resolution
Error: Package: 1:nvidia-kmod-390.30-2.el7.x86_64 (nvidia-diag-driver-local-390.30)
Requires: dkms
Error: Package: 1:xorg-x11-drv-nvidia-libs-390.30-1.el7.x86_64 (nvidia-diag-driver-local-390.30)
Requires: libvdpau(x86-64) >= 0.5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

does someone knows a fix for this?

dkms error explained at the link I provided previously

EDITED
download the package somehow RPM CentOS 7 dkms 2.2.0.3 noarch rpm

sudo rpm -vih dkms-2.2.0.3-31.1.noarch.rpm

Does that resolve the issue?

unable to access the download rpm link. can you provide me a downloaded rpm for this or is there any other way to resolve this?

i’m not allowed to do wget in my environment (restricted)

ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/Kenzy:/modified:/C7/CentOS_7/noarch/dkms-2.2.0.3-31.1.noarch.rpm

is there no authentic way to fix this issue? I mean is there no nvidia source where i can get this particular package.

NVIDIA doesn’t provide dkms

I think you may download the package from RPM CentOS 7 dkms 2.2.0.3 noarch rpm
You may also approach DKMS on CentOS 7 · shawfdong/hyades Wiki · GitHub

I think you may download the package from RPM CentOS 7 dkms 2.2.0.3 noarch rpm
Then execute

sudo rpm -vih dkms-2.2.0.3-31.1.noarch.rpm

Thanks Andrey1984 and nvidia.

Got it fixed and the driver is successfully installed and running :)

dkms and libvdpau x86_64 were required to fix it.
got,

  1. dkms from [http://mirror.de.leaseweb.net/epel/7/x86_64/Packages/d/dkms-2.4.0-1.20170926git959bd74.el7.noarch.rpm]
  2. libvdpau from [RPM resource libvdpau(x86-64)]

**Note: libvdpau package available in the EPEL repo doesn’t work! [http://mirror.de.leaseweb.net/epel/7/x86_64/Packages/l/libvdpau-va-gl-0.4.2-6.el7.x86_64.rpm]