# Solved: NVIDIA  driver installation fails.

**URL:** <https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797>\
**Category:** CUDA Setup and Installation\
**Created:** [March 5, 2018, 1:39pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797 "2018-03-05T13:39:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 5, 2018, 1:39pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/1 "2018-03-05T13:39:55Z")

</div>

Hi,

I’m trying to install NVIDIA driver onto my system using the runfile (NVIDIA-Linux-x86\_64-185.18.36-pkg2.run).

I did download this from the nvidia website under the download drivers option ([Download NVIDIA, GeForce, Quadro, and Tesla Drivers](http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/185.18.36/NVIDIA-Linux-x86_64-185.18.36-pkg2.run&lang=us&type=GeForce)).

[b]I have all the pre-requisites for installing the driver:

1. kernel version: kernel-3.10.0-693.11.6.el7.x86\_64
2. kernel headers: kernel-headers-3.10.0-693.11.6.el7.x86\_64.rpm
3. kernel devel: kernel-devel-3.10.0-693.11.6.el7.x86\_64
4. kernel tools: kernel-tools-3.10.0-693.11.6.el7.x86\_64; kernel-tools-libs-3.10.0-693.11.6.el7.x86\_64
5. gcc: gcc-4.8.5-16.el7\_4.1.x86\_64[/b]

The installation fails. It prompts following message:

Using: nvidia-installer ncurses user interface  
 → Tagging shared libraries with chcon -t textrel\_shlib\_t.  
 → License accepted.  
 → Installing NVIDIA driver version 185.18.36.  
 → No precompiled kernel interface was found to match your kernel; would you li  
ke the installer to attempt to download a kernel interface for your kernel f  
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)  
 → No precompiled kernel interface was found to match your kernel; this means  
that the installer will need to compile a new kernel interface.  
 → Performing CC sanity check with CC=“cc”.  
 → Performing CC version check with CC=“cc”.  
 → Using the kernel source path  
‘/lib/modules/3.10.0-693.11.6.el7.x86\_64/source/’ as specified by the  
‘–kernel-source-path’ commandline option.  
ERROR: Unable to determine the version of the kernel sources located in  
‘/lib/modules/3.10.0-693.11.6.el7.x86\_64/source/’. Please make sure you  
have installed the kernel source files for your kernel and that they are  
properly configured; on Red Hat Linux systems, for example, be sure you  
have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. If you know  
the correct kernel source files are installed, you may specify the  
kernel source path with the ‘–kernel-source-path’ command line option.

I did explicitly mention the kernel path as well using --kernel-source-path but still the installer fails.

Can someone help me to get this fixed?

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [March 5, 2018, 2:12pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/2 "2018-03-05T14:12:50Z")

</div>

why are you trying to install such an old driver?

anyway, the error is indicating that your kernel headers don’t match your kernel. If you do a clean install of the OS, without updating anything, you should be able to work around this. Otherwise you will need to track down the difference.

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 5, 2018, 2:17pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/3 "2018-03-05T14:17:55Z")

</div>

Hi,

I did try to install nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm first but it prompted me with the same error.

Moreover my end goal is to benchmark GPUs installed on my system using HPL and i’m following [http://hpl-calculator.sourceforge.net/Howto-HPL-GPU.pdf](http://hpl-calculator.sourceforge.net/Howto-HPL-GPU.pdf)

This mentioned to use the older version so i thought of trying with that but it didn’t work either.

Am I missing something?

Thanks,  
Karan

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 5, 2018, 2:21pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/4 "2018-03-05T14:21:36Z")

</div>

@txbob: I did perform a clean install of the OS without updating anything still the installer prompts me with the same error.

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 5, 2018, 3:06pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/5 "2018-03-05T15:06:49Z")

</div>

Can someone give me a link to download local run file equivalent for nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm?

I can only get an rpm file when i try to download it using the download drivers option on nvidia website.

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 5, 2018, 4:04pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/6 "2018-03-05T16:04:11Z")

</div>

390.30 version seems fine to install;  
You may find drivers either here  
[url][Official Drivers | NVIDIA](http://www.nvidia.com/Download/index.aspx?lang=en-us%5B/url%5D)  
[url][https://developer.nvidia.com/cuda-toolkit[/url]](https://developer.nvidia.com/cuda-toolkit%5B/url%5D)  
or use ubuntu repo :  
[url][How can I install CUDA 9 on Ubuntu 17.10 - Ask Ubuntu](https://askubuntu.com/questions/967332/how-can-i-install-cuda-9-on-ubuntu-17-10%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 5, 2018, 4:22pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/7 "2018-03-05T16:22:39Z")

</div>

I did try the install on a freshly build system and installed all the required kernel-header and kernel-devel packages (matching my kernel version) but still the logs say:

ERROR: Unable to determine the version of the kernel sources located in  
‘/lib/modules/3.10.0-693.11.6.el7.x86\_64/source/’. Please make sure you  
have installed the kernel source files for your kernel and that they are  
properly configured; on Red Hat Linux systems, for example, be sure you  
have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. If you know  
the correct kernel source files are installed, you may specify the  
kernel source path with the ‘–kernel-source-path’ command line option.

I have a UEFI system. Do i need to disable it first?

could that be a reason of failure?

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 5, 2018, 4:26pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/8 "2018-03-05T16:26:28Z")

</div>

what is the software you tried to install that returned that errors?

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 5, 2018, 4:27pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/9 "2018-03-05T16:27:33Z")

</div>

what is output of

```auto
uname -a

```

?  
Yuo may somehow explicitly declare the path like:

```auto
sh Nvidia-version_you_are_using-.run --kernel-source-path=/lib/modules/2.6.24-16-server/build/include/

```

Hence you are to adjust path as per your environment.  
source of the example: [https://www.linuxquestions.org/questions/linux-software-2/nvidia-driver-install-script-unable-to-determine-the-version-of-the-kernel-sources-690731/](https://www.linuxquestions.org/questions/linux-software-2/nvidia-driver-install-script-unable-to-determine-the-version-of-the-kernel-sources-690731/)

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 5, 2018, 4:30pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/10 "2018-03-05T16:30:53Z")

</div>

two of them;

firstly tried with the latest:

1. 390.30 [[Tesla Driver for Linux RHEL 7 | 390.30 | Linux 64-bit RHEL 7 | NVIDIA](http://www.nvidia.co.uk/download/driverResults.aspx/131230/en-uk)]

secondly with the one which is there in how-to hpl-gpu guide.

1. 185.18.36; the older run file version [[Download NVIDIA, GeForce, Quadro, and Tesla Drivers](http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/185.18.36/NVIDIA-Linux-x86_64-185.18.36-pkg2.run&lang=us&type=GeForce)]-------\> why i’m using this is because i am trying to benchmark gpus in my systems using HPL and i’m following how-to-hpl-gpu guide [[http://hpl-calculator.sourceforge.net/Howto-HPL-GPU.pdf](http://hpl-calculator.sourceforge.net/Howto-HPL-GPU.pdf)]

Thanks.

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 5, 2018, 4:36pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/11 "2018-03-05T16:36:12Z")

</div>

Since you are using CentOS you may use for reference the method from:  
[https://www.centos.org/forums/viewtopic.php?t=61162#p258109](https://www.centos.org/forums/viewtopic.php?t=61162#p258109)

```auto
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum install nvidia-detect.x86_64
yum install $(nvidia-detect)

```

either line 3 or 4 should autodetect and suggest driver installation

However, if you have installed something already you need to uninstall /remove the nvidia installation:  
[http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#handle-uninstallation](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#handle-uninstallation)  
For HPL GPU I found updated reference at [HPL - A Portable Implementation of the High-Performance Linpack Benchmark for Distributed-Memory Computers](http://www.netlib.org/benchmark/hpl/). It has entry for 2016 year. Though I didn’t work with that method.

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 6, 2018, 2:50pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/12 "2018-03-06T14:50:56Z")

</div>

yum install fails, asks for a public key for nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm [Says it’s not installed]

yum install nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm  
Examining nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm: nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64  
Marking nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm to be installed  
Resolving Dependencies  
 → Running transaction check  
—\> Package nvidia-diag-driver-local-repo-rhel7-390.30.x86\_64 0:1.0-1 will be installed  
 → Finished Dependency Resolution

Dependencies Resolved

# ================================================================================ Package Arch Version Repository Size

Installing:  
nvidia-diag-driver-local-repo-rhel7-390.30  
x86\_64 1.0-1 /nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64 89 M

# Transaction Summary

Install 1 Package

Total size: 89 M  
Installed size: 89 M  
Is this ok [y/d/N]: y  
Downloading packages:  
warning: /root/nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm: Header V3 RSA/SHA512 Signature, key ID 7fa2af80: NOKEY

Public key for nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm is not installed

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 6, 2018, 2:54pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/13 "2018-03-06T14:54:37Z")

</div>

try

```auto
wget http://us.download.nvidia.com/tesla/390.30/nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86_64.rpm

```

and install from rpm

```auto
i) `rpm -i nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86_64.rpm' 
ii) `yum clean all`
iii) `yum install cuda-drivers` 
iv) `reboot`

```

[source](http://blog.csdn.net/jiangpeng59/article/details/78215642)

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 6, 2018, 2:57pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/14 "2018-03-06T14:57:01Z")

</div>

i can’t do a direct install. i’ve to download it and then run it.

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 6, 2018, 2:57pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/15 "2018-03-06T14:57:48Z")

</div>

wget does download

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 6, 2018, 2:59pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/16 "2018-03-06T14:59:13Z")

</div>

i know but i’m restricted to use wget. i have only one option i.e. to download it explicitly and then install :(

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 6, 2018, 3:03pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/17 "2018-03-06T15:03:09Z")

</div>

what does happen if you execute in the terminal?

```auto
wget http://us.download.nvidia.com/tesla/390.30/nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86_64.rpm

```

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 6, 2018, 3:06pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/18 "2018-03-06T15:06:23Z")

</div>

ok so --nogpgcheck worked!

yum install --nogpgcheck nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm  
Examining nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm: nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64  
Marking nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64.rpm to be installed  
Resolving Dependencies  
 → Running transaction check  
—\> Package nvidia-diag-driver-local-repo-rhel7-390.30.x86\_64 0:1.0-1 will be installed  
 → Finished Dependency Resolution

Dependencies Resolved

# ================================================================================ Package Arch Version Repository Size

Installing:  
nvidia-diag-driver-local-repo-rhel7-390.30  
x86\_64 1.0-1 /nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64 89 M

# Transaction Summary

Install 1 Package

Total size: 89 M  
Installed size: 89 M  
Is this ok [y/d/N]: y  
Downloading packages:  
Running transaction check  
Running transaction test  
Transaction test succeeded  
Running transaction  
Installing : nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64 1/1  
Verifying : nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86\_64 1/1

Installed:  
nvidia-diag-driver-local-repo-rhel7-390.30.x86\_64 0:1.0-1

Complete!

Can you guide me about what am i supposed to do next after:

i) `rpm -i nvidia-diag-driver-local-repo-rhel7-390.30-1.0-1.x86_64.rpm' ii) `yum clean all`iii)`yum install cuda-drivers` iv)`reboot`

\*\* important thing is i need to install cuda 9.1 toolkit after this as i need cuBLAS libraries to compile HPL and when i see the installation guide for cuda in here ([CUDA Installation Guide for Linux — Installation Guide for Linux 13.1 documentation](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-nouveau)) Will the yum install cuda-drivers not conflict with when i install cuda toolkit?

---

<div class="post-metadata">

**Author:** ![Andrey1984](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/andrey1984/32/14130_2.png) [@Andrey1984](https://forums.developer.nvidia.com/u/Andrey1984)\
**Post date:** [March 6, 2018, 3:11pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/19 "2018-03-06T15:11:49Z")

</div>

basically, you could have used the method from  
[https://developer.nvidia.com/cuda-downloads?target\_os=Linux&target\_arch=x86\_64&target\_distro=RHEL&target\_version=7&target\_type=rpmnetwork](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=RHEL&target_version=7&target_type=rpmnetwork)

---

<div class="post-metadata">

**Author:** ![karanchhabra2013](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@karanchhabra2013](https://forums.developer.nvidia.com/u/karanchhabra2013)\
**Post date:** [March 6, 2018, 3:14pm UTC](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797/20 "2018-03-06T15:14:32Z")

</div>

but this is for installing cuda on network but for me it’s cuda local (rpm).

So do i need to install the base installer and both patches from here ([https://developer.nvidia.com/cuda-downloads?target\_os=Linux&target\_arch=x86\_64&target\_distro=RHEL&target\_version=7&target\_type=rpmlocal](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=RHEL&target_version=7&target_type=rpmlocal))

[Next page](https://forums.developer.nvidia.com/t/solved-nvidia-driver-installation-fails/58797.md?page=2)
