Skip to content

[Solved] An Error Occurred while Installing the Nvidia Driver: “The Nouveau kernel driver is currently in use by your system. …”

I have installed Nvidia’s driver on my computer to enable deep learning for many times, and I will encounter different problems each time.

But today, I encountered a familiar old problem:

The Nouveau kernel driver is currently in use by your system.

Basically I think the best answer is: https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver. You can also refer directly.


What is “Nouveau”

Before we disable Nouveau Kernel Driver, everyone must be concerned about what Nouveau is? Will disable driver affect the computer?

The following excerpt is from the wikipedia:

nouveau (/nuːˈvoʊ/) is a free and open-source graphics device driver for Nvidia video cards and the Tegra family of SoCs written by independent software engineers, with minor help from Nvidia employees.

Wiki

We can see that Nouveau is a third-party and open source Nvidia driver, and many Linux distributions have this driver installed by default. However, if we download the Nvidia driver from the official website and want to update, we have to close the Nouveau driver first.

However, we don’t have to worry about any bad effects this will cause, after all, we are about to use the official Nvidia driver.

So the conclusion is, don’t worry too much about us banning it.


Disable Nouveau

First we need to create a new file:

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


And write down:

blacklist nouveau<br>options nouveau modeset=0


Then we regenerate the kernel and restart:

sudo update-initramfs -u
sudo reboot


After restarting, we can use the following command to confirm whether Nouveau has stopped working:

lsmod | grep nouveau

If nothing is printed, then congratulations! You have disabled Nouveau’s kernel driver. Now we can try again to see if we can install Nvidia’s official driver!

Tags:

Leave a Reply