When installing CUDA in Ubuntu 16.04 by executing cuda_8.0.44_linux.run,

I got the following error message in /var/log/nvidia-installer.log

enter image description here

Then I checked /etc/modprobe.d/nvidia-installer-disable-nouveau.conf and got

enter image description here

Any suggestion to disable Nouveau Kernel Driver?

I found this 2012 discussion but didn't work for me.

  • stupid question, but did you reboot and try again after you regenerated the initramfs? – Zanna Oct 26 '16 at 6:09
  • I did but didn't work. – willSapgreen Oct 26 '16 at 6:18
up vote 28 down vote accepted

According to the NVIDIA developer zone: Create a file

nano /etc/modprobe.d/blacklist-nouveau.conf

with the following contents:

blacklist nouveau
options nouveau modeset=0

Regenerate the kernel initramfs:

sudo update-initramfs -u

and finally: reboot

sudo reboot

Read more at: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#ixzz4rQODN0jy

  • Thank you for your contribution but I do not understand what it adds to the other answer. – Marc Vanhoomissen Sep 1 '17 at 11:35
  • 3
    my point was not adding anything but saving the unnecessary commands. Since I'm not 100% sure if may proposal works in any case, I wanted to present my version as a sleeker alternative and let the people decide. – Boern Sep 1 '17 at 11:38
  • This worked for me, but I had to reboot first – Erik Sep 5 '17 at 12:27
  • 2
    This one resolved my issue. Thanks!!! – willSapgreen Jan 6 at 18:06
  • 1
    This one worked perfectly, but i also had to remove the X0 lock files from /tmp. – adelineu Jul 9 at 23:28

maybe it is too late ,but hope can help for others. the follow tips worked for ubuntu 16.04 and elementary os 0.4.

  1. remove all nvidia packages ,skip this if your system is fresh installed

    sudo apt-get remove nvidia* && sudo apt autoremove
    
  2. install some packages for build kernel:

    sudo apt-get install dkms build-essential linux-headers-generic
    
  3. now block and disable nouveau kernel driver:

    sudo vim /etc/modprobe.d/blacklist.conf
    

Insert follow lines to the blacklist.conf:

blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

save and exit.

  1. Disable the Kernel nouveau by typing the following commands(nouveau-kms.conf may not exist,it is ok):

    echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
    
  2. build the new kernel by:

    sudo update-initramfs -u
    
  3. reboot

  • 1
    Is item 4 necessary? It looks to be a repeat of "options nouveau modeset=0" that was added to /etc/modprobe.d/blacklist.conf mentioned in your item 3. – Sun Bear Feb 27 '17 at 4:32
  • I did this, then CTRL+ALT+F1, sudo service lightdm stop,then was able to run the installer. I don't know if it was essential to do this, but I did and I was able to run the installer successfully. Thanks! – Julian Cienfuegos May 2 '17 at 0:52
  • 1
    This just killed my system. After rebooting now i see an endless blackscreen, not even a darn cursor ;( – revolutionary Oct 13 '17 at 14:56
  • Better change sudo vim /etc/modprobe.d/blacklist.conf to gksu gedit /etc/modprobe.d/blacklist.conf :D – jaskmar Oct 16 '17 at 6:45
  • 1
    well, you can't undo your changes and rerun sudo update-initramfs -u to re-enable nouveau... I did just that like an idiot and had to reinstall xubuntu because I screwed everything up to where any nvidia driver installation failed. best thing I can recommend for @revolutionary is to grab a vga monitor (lcd, crt, doesn't matter). that should at least run off the fallback mode and help get you somewhere. – Tcll Oct 24 '17 at 0:59

protected by Community Nov 25 '17 at 12:05

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.