Hi
I tried this guide and hit these flaws:
If trying to install before doing any updates, the 4.6 doesn't seem to be available when running: apt-get install -y linux-headers-$(uname-r)
I then ran the updates and the NVidia installer couldn't build DKMS.
Another post I found somewhere suggested: apt-get install -y nvidia-support. It didn't for me though.
The version I have from Nvidia is 367, tried with 370 and 375 but they had exactly the same errors.
Any suggestions?
Thanks
NVidia Log:
/usr/src/linux-headers-4.7.0-kali1-common/scripts/Makefile.build:294: recipe for target '/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel/nvidia-drm/nvidia-drm-modeset.o' failed
make[3]: *** [/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel/nvidia-drm/nvidia-drm-modeset.o] Error 1
/usr/src/linux-headers-4.7.0-kali1-common/scripts/Makefile.build:294: recipe for target '/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel/nvidia-drm/nvidia-drm-linux.o' failed
make[3]: *** [/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel/nvidia-drm/nvidia-drm-linux.o] Error 1
/usr/src/linux-headers-4.7.0-kali1-common/scripts/Makefile.build:294: recipe for target '/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel/nvidia-drm/nv-pci-table.o' failed
make[3]: *** [/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel/nvidia-drm/nv-pci-table.o] Error 1
make[3]: Target '__build' not remade because of errors.
/usr/src/linux-headers-4.7.0-kali1-common/Makefile:1475: recipe for target '_module_/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel' failed
make[2]: *** [_module_/tmp/selfgz3429/NVIDIA-Linux-x86_64-367.57/kernel] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-4.7.0-kali1-amd64'
Makefile:150: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-4.7.0-kali1-common'
Makefile:81: recipe for target 'modules' failed
make: *** [modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.