[355.XX / 370.23] Ubuntu 16.04 all kernel version stucks while building dkms module

Hi, I was trying to install Nvidia 364.19 driver from https://launchpad.net/~graphics-driv...ive/ubuntu/ppa on Ubuntu 16.04 on my laptop msi-ge60 2pe with a gtx 860m, but installation will stuck at:

Loading new nvidia-364-364.19 DKMS files...First Installation: checking all kernels...
Building only for 4.6.0-040600rc7-generic
Building for architecture x86_64
Building initial module for 4.6.0-040600rc7-generic

Instead of write again all details i will link my previous post over Ubuntu Forum:
http://ubuntuforums.org/showthread.php?t=2324360

Following some suggestions i did many try, even a Ubuntu team guy (ricotz) told me to do some test but no solution was found.

I’m going to guess this has something to do with the 860m identifier string being missing from some internal list of GPUs since it was one of those weird between-generations GPUs.

So? What I have to do? Do you mean that i can’t use Nvidia official driver anymore on my PC? Some months ago nvidia driver was working on my pc, eg I had it perfectly working in Genuary on Ubuntu 15.10…

With 340.96 (patched to support kernel 4.6.0 too) this was the result:

Loading new nvidia-340-340.96 DKMS files...First Installation: checking all kernels...
Building only for 4.6.0-040600-generic
Building for architecture x86_64
Building initial module for 4.6.0-040600-generic
Done.

nvidia_340:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.6.0-040600-generic/updates/dkms/

nvidia_340_uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.6.0-040600-generic/updates/dkms/

depmod....

DKMS: install completed.
dpkg: errore nell'elaborare il pacchetto nvidia-340 (--configure):
 il sottoprocesso installato script di post-installation ha restituito lo stato di errore 10

this time the dkms do not stuck!!! but, at the end, there is some error again…

Maybe 340.96 are too old driver for my gtx 860m??

anyway @axfelix maybe he is rirght!!!

I think here you can find my HW identification strings:

01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 860M] [10de:1392] (rev a2)
	Subsystem: Micro-Star International Co., Ltd. [MSI] GM107M [GeForce GTX 860M] [1462:1107]
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at f6000000 (32-bit, non-prefetchable) 
	Memory at e0000000 (64-bit, prefetchable) 
	Memory at f0000000 (64-bit, prefetchable) 
	I/O ports at e000 
	Expansion ROM at f7000000 [disabled] 
	Capabilities: <access denied>
	Kernel modules: nvidiafb, nouveau

https://devtalk.nvidia.com/default/topic/524338/how-precisely-is-nvidia-driver-checking-if-a-given-gpu-is-supported-/

Is this true even in the latest driver?

This is what happen with OFFICIAL NVIDIA 367.18 .run, following /var/log/nvidia-installer.log

Test #1 WITH DKMS MODULE, user interface freeze at 5%:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 20 13:24:40 2016
installer version: 367.18

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> License accepted.
-> Installing NVIDIA driver version 367.18.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: Yes)
-> Installing both new and classic TLS OpenGL libraries.
-> Installing both new and classic TLS 32bit OpenGL libraries.
-> Install NVIDIA's 32-bit compatibility libraries? (Answer: Yes)
-> Will install GLVND GLX client libraries.
Looking for install checker script at ./libglvnd_install_checker/check-libglvnd-install.sh
   executing: '/bin/sh ./libglvnd_install_checker/check-libglvnd-install.sh'...
   Checking for libglvnd installation.
   Checking libGLdispatch...
   Can't load library libGLdispatch.so.0: libGLdispatch.so.0: cannot open shared object file: No such file or directory
Will install libglvnd libraries.
-> Searching for conflicting files:
-> done.
-> Installing 'NVIDIA Accelerated Graphics Driver for Linux-x86_64' (367.18):
   executing: '/sbin/ldconfig'...
-> done.
-> Driver file installation is complete.
-> Installing DKMS kernel module:

followed by Test #2 WITHOUT DKMS MODULE, user interface freeze at 20%:

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri May 20 13:27:57 2016
installer version: 367.18

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

nvidia-installer command line:
    ./nvidia-installer

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 8 CPUs online; setting concurrency level to 8.
-> License accepted.
-> Installing NVIDIA driver version 367.18.
-> There appears to already be a driver installed on your system (version: 367.18).  As part of installing this driver (version: 367.18), the existing driver will be uninstalled.  Are you sure you want to continue? (Answer: Continue installation)
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/4.6.0-040600-generic/build'
-> Kernel output path: '/lib/modules/4.6.0-040600-generic/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; /usr/bin/make -k -j8 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.6.0-040600-generic/build" SYSOUT="/lib/modules/4.6.0-040600-generic/build"'...
   rm -f -r conftest
   /usr/bin/make "CC=cc"  KBUILD_VERBOSE= -C /lib/modules/4.6.0-040600-generic/build M=/tmp/selfgz11471/NVIDIA-Linux-x86_64-367.18/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.6.0-040600-generic/build NV_KERNEL_OUTPUT=/lib/modules/4.6.0-040600-generic/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset nvidia-drm" INSTALL_MOD_DIR=kernel/drivers/video clean
   make[1]: ingresso nella directory "/usr/src/linux-headers-4.6.0-040600-generic"
   make[1]: uscita dalla directory "/usr/src/linux-headers-4.6.0-040600-generic"
-> Building kernel modules
   executing: 'cd ./kernel; /usr/bin/make -k -j8  NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.6.0-040600-generic/build" SYSOUT="/lib/modules/4.6.0-040600-generic/build"'...
   /usr/bin/make "CC=cc"  KBUILD_VERBOSE= -C /lib/modules/4.6.0-040600-generic/build M=/tmp/selfgz11471/NVIDIA-Linux-x86_64-367.18/kernel ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.6.0-040600-generic/build NV_KERNEL_OUTPUT=/lib/modules/4.6.0-040600-generic/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset nvidia-drm" INSTALL_MOD_DIR=kernel/drivers/video modules
   make[1]: ingresso nella directory "/usr/src/linux-headers-4.6.0-040600-generic"
     SYMLINK /tmp/selfgz11471/NVIDIA-Linux-x86_64-367.18/kernel/nvidia/nv-kernel.o
     SYMLINK /tmp/selfgz11471/NVIDIA-Linux-x86_64-367.18/kernel/nvidia-modeset/nv-modeset-kernel.o
    CONFTEST: INIT_WORK

Now please some Nvidia moderator or developer should answer to this topic, i spent more than 1500$ for a pc where i can’t use Nvidia Driver, I’m honestly without words…

Ubuntu 16.04 cannot use 361 or 364 driver in a optimus laptop either.

I can install the 361 or 364 drivers with nvidia-prime, it work fine within a few minutes and then it freezes completely.
I only got the 361 drivers working using bumblebee and bbswitch. It works fine, however after a suspend it does not work anymore, I got also the error NVRM: GPU at 0000:03:00.0 has fallen off the bus and also that the GPU refused to change status from D3.

Currently, I switch back to 352 drivers since it works fine in any situation.

I have bumblebee and bbswitch too, what’s different from 352 to 361 or 364 that make the last two unusable on optimim laptop?
Anyway you should update to 367.18 wich should solve the NVRM: GPU at 0000:03:00.0 has fallen off the bus error.

Up

Two monts after my post, nothing has changed… I’m still unable to use nvidia driver on my 860m. Probably nobody from Nvidia read this post. Nvidia sucks!

This ppa worked for me.

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt-get update

sudo apt-get install nvidia-367 nvidia-settings

Hope it works for you as well.

Best regards

Chris

As before, broken with 370.23 too

Hello!

(First of all I am sorry I’m not a technician and my english is a little bit poor, but I think I found something helps you.)

I had similar problems with ubuntu 16.04 and Nvidia GF 920M card, and the solution was I deleted the NOD32 Antivirus 4 (linux). Because of its kernel protection the antivirus system stops the kernel module compiling. After removing the antivirus system, I can install any driver from nvidia.

By,

G

Yes, you are right, after one year we have the solution… Thank you so much, I hope this will be helpfull for others too!

Interesting, I also have GF 920M, but no NOD32 Antivirus. The freshly downloaded 418.43 freezes at 8% on Ubuntu 16.04, if DKMS install is selected.

pavel.petrovic, no need to dig up bodies, you have a Fermi gpu so you can use driver v390 at maximum.