Skip to content
FixingBook
Verifiedbeginnerest. 20 minutes

Fix NVIDIA Proprietary Driver Install Fails on Linux

How to fix failing NVIDIA proprietary driver installations on Linux by blacklisting Nouveau and installing kernel headers.

Confirmed working on: Windows 10 · Windows 11

Before you begin

Match the environmentUse this guide only for Windows 10, Windows 11 or a clearly compatible setup.
Protect recoveryBack up important data and save encryption or account recovery keys before changing system state.
Know when to stopMake one change at a time and stop if the result differs from what the guide describes.

Problem overview

When attempting to install the proprietary NVIDIA graphics drivers on a Linux distribution, the installation fails, or you boot into a black screen / blinking cursor. You are unable to access the desktop environment because the display server cannot start.

Common causes

  • The open-source nouveau driver is conflicting with the proprietary installation
  • Missing linux-headers required to compile the NVIDIA kernel modules via DKMS
  • Secure Boot is enabled in the BIOS, blocking unsigned proprietary kernel modules from loading

Solution 1: Disable Secure Boot

The NVIDIA proprietary driver is a third-party kernel module. Most Linux distributions do not sign it automatically.

  1. Restart your PC and enter the BIOS/UEFI settings.
  2. Locate the Secure Boot option (usually under the Security or Boot tabs).
  3. Change Secure Boot to Disabled.
  4. Save and exit the BIOS.

Solution 2: Blacklist the Nouveau driver

  1. If you are stuck on a black screen, press Ctrl + Alt + F3 (or F4/F5) to switch to a TTY console and log in.
  2. Open a terminal and run the following command to create a blacklist file:
    sudo nano /etc/modprobe.d/blacklist-nouveau.conf
  3. Add the following lines to the file:
    blacklist nouveau
    options nouveau modeset=0
  4. Save the file (Ctrl+O, Enter) and exit nano (Ctrl+X).
  5. Update the initramfs to apply the changes:
    • On Ubuntu/Debian: sudo update-initramfs -u
    • On Arch: sudo mkinitcpio -P
  6. Reboot your system.

Solution 3: Install headers and the proprietary driver

Kernel modules require kernel headers to compile properly.

  1. Install the linux-headers for your distribution:
    • Ubuntu: sudo apt install linux-headers-$(uname -r)
    • Arch: sudo pacman -S linux-headers
  2. Install the NVIDIA drivers using the package manager (do not use the .run file from the NVIDIA website if possible):
    • Ubuntu: sudo ubuntu-drivers autoinstall
    • Arch: sudo pacman -S nvidia nvidia-utils
  3. Reboot your computer.
Caution

If you are still booting to a black screen, edit your GRUB boot entry by pressing e during startup, find the line starting with linux, and append nomodeset to the end. Press F10 to boot. This will let you reach the desktop to troubleshoot further.

Confirm the result

  1. Repeat the exact action that originally triggered the problem.
  2. Confirm the original error or symptom is gone and no new warning has appeared.
  3. If the guide changed a driver, service, package, or system setting, restart once and test again.
  4. If the result is worse or unexpected, stop. Reverse only the last change using its documented restore option; if none is documented, use your backup or qualified support.

Questions about this fix

Why do I need to blacklist Nouveau?

Nouveau is the open-source NVIDIA driver pre-installed on most Linux distributions. If it is actively running, the proprietary driver cannot load correctly and the installation will fail.

What does nomodeset do?

Adding nomodeset to the GRUB boot parameters forces the kernel to not load video drivers until the X server starts, helping you bypass black screens to fix the drivers.

Did this fix work for you?

Weighted Consensus Protocol

Consensus0%
Required100% (Weight 3)
Contributors0
Verified By YouNo
Your Weight--

Did this solution resolve your issue?

Confirming if this works strengthens verification statistics on the registry.

Sign In to VerifySign in required to verify

FixingTeam10,000 rep

Official Project Maintainers

The core engineering and moderation team behind FixingBook. We curate, verify, and maintain the standards of the troubleshooting ledger.

Spotted something outdated? Suggest an edit. Maintainers review submissions within 48 hours.
Share:XReddit

Discussion (0)

No comments yet. Share your experience or verify if this fixed your issue!

Join the Discussion