Remove nouveau and install nvidia Driver in Ubuntu 15.04
July 6, 2015 in O.S.
Install Nvidia Drivers in Ubuntu 15.04
Lets remove first everything that point to any existing nvidia installation.
open a terminal (ctrr+alt+t) and type:
sudo apt-get remove nvidia*
sudo apt-get autoremove
update and download a few tools that we will need:
sudo apt-get update
sudo apt-get install dkms build-essential linux-headers-generic
Now its time to blacklist the nouveau driver.
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
and add the following lines:
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
Disable the Kernel nouveau by typing the following commands:
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
sudo update-initramfs -u
Now go to nvidia.com and download the driver for your graphic card.
The file name should be something like that “NVIDIA-Linux-x86_64-352.21.run” depends on the architecture of your machine and the version of the driver.
Pages: 1 2
Worked for me, thanks!
This is the first comprehensive and easy how to Ive come across in years! This makes installing Nvidia drivers a lot easier! Thanks a Bunch!
Thanks! This worked for me too. I don’t know why Nvidia has such a convulated process to install their drivers.
Thanks buddy it worked great! that was very for a complete beginner like me.
Although I’ve got a pretty huge error notification after the reboot, it was gone by clicking on it. Hope that wasn’t important..
I have GTX750 Ti and use Debian. This tutorial works well. Thank you!!
Great tutorial, please keep this here as long as you can because lots of people need this 🙂
I’ve been trying to install the nvidia driver but always failed. Thanks to this tutorial it finally works. Thanks a lot!
It worked for me Thank you buddy 🙂
You are a God amongst men sir!
Tried tirelessly through many forums and many walkthroughs … yours was the only one that got me through the install!
The command ‘update-initramfs -u’ sometimes (on some systems) should be run with sudo:
sudo update-initramfs -u
Thank you for this comment!
post updated.
ERROR: Unable to load the ‘nvidia’ kernel module.
I got the same error message and it still doesn’t work.
Good instruction. My be add how to instal the Nvidia driver also? I had to kill X server and enter in to init 3 to install the Nvidia driver. Then you need to set “YES” to al question in that install process. Also needed to add this to the Section “Screen” in xorg.conf to get bigger fonts:
Option “UseEDIDDpi” “False”
Option “DPI” “120 x 120”
thanks 🙂
Thank you very much, successfully got Nvidia 364.12 beta drivers installed on Ubuntu Mate 16.04 beta 2.
Also command “sudo apt-get remove –purge nvidia*” I used additionally to remove the old drivers and I think you should add that into this guide.
Also use this command “sudo nvidia-xconfig –no-logo” to remove Nvidia splash logo.
Hello, I have a Lenovo y700 with Nvidia GeForce GTX 960M. My operating system is Ubuntu 14.04, I have tried to install Nvidia driver by following many tutorials, but whenever I install it once I restart the computer I get a blank screen and then I need to remove the Nvidia driver. I wonder if these commands work in Ubuntu 14.04 too? I would like to install Nvidia driver for several reasons, one of them is using Cuda for increasing processor performance. I am afraid that if I blacklist Nouveau and install Nvidia if I get a blank screen then with Nouveau blacklisted I won’t be able to revert to default. If anybody has a reasonable comment please let me know.
Or, you could just identify one from the repo and install:
# I already have the nvidia one installed, but for the sake of completeness
$ sudo ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:03.0/0000:03:00.0 ==
model : GK104 [GeForce GTX 770]
vendor : NVIDIA Corporation
modalias : pci:v000010DEd00001184sv00001043sd00008465bc03sc00i00
driver : nvidia-361 – distro non-free recommended
driver : nvidia-340 – distro non-free
driver : xserver-xorg-video-nouveau – distro free builtin
== cpu-microcode.py ==
driver : intel-microcode – distro non-free
$ sudo apt-get install nvidia-361
This is in 16.04 LTS
Thanks! It works.
Thank you, Thank you, Thank you, you are my hero !
Finally it’s ok, you are the best guy for installing Nvidia driver.
I’m so grateful.
Have a good day, mine will be just great.
Thanks again.
I tried to install from one of the repos and it DIDN’T work!! This DID! As many have said, thanks….and if all instructions related to Linux were this clear the world would be a better place!
Top! Obrigada! From Brazil!!!!
Thanks a lot….really helpful post
After executing the .run file I got the prompt
“Unable to build the NVIDIA kernel module”
Thanks it’s works!!! Congratulations
This method works with beta driver NVIDIA-Linux-x86_64-370.23 on Ubuntu 16.04 lts with kernel 4.7.4
This worked wonderfully on 16.04 with a GTX 1070. Really appreciate it
How can I undo? Mine is unusable!
Thankyou very much, still working october 2017!
searched everywhere for comprehensive instructions on how to resolve this. works perfectly on Ubuntu 16.04 as well. thanks.
This is a great tutorial but one hiccup. My dist is Linux mint 18.2, the graphics card = GEForce750
Used the instructions to stop the X server at ‘sudo /etc/init.d/lightdm stop” . Getting the response
“The program ‘lightdm’ is currently not installed. You can install it by typing:
sudo apt install lightdm”sudo /etc/init.d/
I believe the X driver is mdm, but when I use “sudo /etc/init.d/mdm stop”, the screen blanks and the system needs to reboot.
Naturally, if I try to install Nvidia ..384.98 or 334.21 I get the “Please stop X server …” flag.
Suggestions
Regards
Paul
I
Paul once you have stopped lightdm/gdm/mdm, press Ctrl+Alt+F1 and use the CLI. Don’t restart the system until you are finished.
Thank You! Only worked with your tutorial!
Februar 2018 work absolutly !
Thanks for this tutoriel really précious 🙂
It still works!
Thank you so much