I am trying to install a driver for NVIDIA GTX1060
on my laptop. I used the official method. I ran NVIDIA
script, and it shows:
Unable to build the NVIDIA kernel module
I have installed Linux kernel using this command:
apt-get install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//')
I'm using Debian 9
.
Apt source file:
quidam@debian:~$ cat /etc/apt/sources.list
#
# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch main
#deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch main
deb http://ftp.fr.debian.org/debian/ stretch main
deb-src http://ftp.fr.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
# stretch-updates, previously known as 'volatile'
deb http://ftp.fr.debian.org/debian/ stretch-updates main
deb-src http://ftp.fr.debian.org/debian/ stretch-updates main
# stretch-backports
deb http://httpredir.debian.org/debian stretch-backports main contrib non-free
sources.list
. If it cannot locate the package you may need to add thenon-free
repo to yoursources.list
– kemotep Sep 14 at 12:24