Installing the NVIDIA: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

========================================================================================

gtx1080+i7+ubuntu-14.04.5-desktop-amd64

sudo vi /etc/modprobe.d/blacklist-nouveau.conf

write content
blacklist nouveau
options nouveau modeset=0

reboot system
sudo service lightdm stop
sudo service lightdm stop sudo update-initramfs -u sudo ./cuda_8.0.61_375.26_linux.run

anyone helps?

install the kernel source/headers ?

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel#Obtaining_the_source_for_an_Ubuntu_release

oh no!Still not!

Hi
did you find a solution for the problem please
i really need a help cause i have the same problem and i spent a long time trying to find one

the problem exactly like yours

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