Urgent Install cuda ubuntu : The driver installation is unable to locate the kernel source

Installing the NVIDIA display driver…
The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly.
If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the ‘–kernel-source-path’ flag.

===========
= Summary =

Driver: Installation Failed
Toolkit: Installation skipped
Samples: Not Selected

i’m used to install cuda without problem but this time i can not do it i tried all solution i see in the net i tried diffrent cuda version and diffrent ubuntu system but the problem is always the same
i tried ubuntu 16.04 and 18.04
i tried cuda 9.2 and cuda 10

i have quadro 2000 gpu

please help me to find a solution i’al really tired from this error

best regards

quadro 2000 is only supported by CUDA 8 or earlier.

It may help to do a fresh load of the operating system.

The exact commands to install the kernel source (or headers) will vary by OS.

Be sure that the headers/source you install match the version of the loaded kernel exactly.

Normally on a fresh load of ubuntu 16.04 this is not an issue (ubuntu 18.04 is not supported by CUDA 8 installer).

Always the same problem even with CUDA 8 and new installed ubuntu 16.04

any other idea please??

install the kernel headers:

https://www.tecmint.com/install-kernel-headers-in-ubuntu-and-debian/

then if necessary, point the installer at the kernel headers you just installed:

“pass the location of the kernel source with the ‘–kernel-source-path’ flag”

i already did all that nothing work
my kernel version is: 4.15.0-29-generic i already installed it and i also passed the path of the kernel header as parameter but always th e same error

i also tried to instal the driver alone after that cuda but when i tested the deviceQuery program it didn’t work

any other idea please