How To Install The NVIDIA Driver On Ubuntu (2026)
Quick answer
- Install all updates in Software Updater and restart, open Additional Drivers, pick the most recent driver under NVIDIA Corporation labelled proprietary, tested (not a Server driver), click Apply changes and restart.
- The command-line route is sudo ubuntu-drivers list, then sudo ubuntu-drivers install, then a restart; both routes install pre-built, signed drivers that work with Secure Boot.
- Ubuntu recommends its own packages over drivers downloaded from other sources, because those can overwrite Ubuntu’s drivers and break Secure Boot.
Applies to: Ubuntu Desktop (Ubuntu’s NVIDIA driver guide, marked latest and last updated August 25, 2026; the page gives no release numbers)
Ubuntu starts on an NVIDIA card with the open-source Nouveau driver, and the proprietary NVIDIA driver is a separate install.
You can install it from a settings window called Additional Drivers or with one command, and both take a few minutes.
This guide follows Ubuntu’s own desktop documentation and covers the update, both install methods, the driver branches and the two errors Ubuntu lists for nvidia-smi.
Table of Contents
- Quick answer: install the NVIDIA driver on Ubuntu
- Before you start
- Step 1: update Ubuntu and restart
- Step 2: check which driver you use now
- Step 3: install with Additional Drivers
- Or install with ubuntu-drivers
- Or install the packages by hand
- Which driver branch to choose
- If the driver does not work
- Tools for checking the GPU
- Custom kernel or no driver for your kernel yet
- Official sources
- More driver and PC software guides
Quick answer: install the NVIDIA driver on Ubuntu
| Step | What to do |
|---|---|
| 1 | Open Software Updater, install every update and restart. |
| 2 | Open Additional Drivers and look under NVIDIA Corporation. |
| 3 | Choose the most recent driver marked proprietary, tested and avoid any marked Server. |
| 4 | Click Apply changes and enter your password. |
| 5 | Restart when the installation finishes. |
Before you start
Ubuntu warns that installing NVIDIA drivers from sources other than its own packages can overwrite Ubuntu’s drivers and break Secure Boot.
It recommends the Ubuntu packages over the downloads on NVIDIA’s site because they match your Ubuntu release.
The Additional Drivers app and the ubuntu-drivers tool use the same logic, and by default both install only pre-built, signed drivers.
Step 1: update Ubuntu and restart
Ubuntu asks you to apply all updates before you install the driver, so the kernel and the driver packages match.
- Open Software Updater and install the available updates, or run the command below in a terminal.
- Restart the computer.
This refreshes the package list and installs the available updates.
Step 2: check which driver you use now
Open the Additional Drivers app and look at the selection under NVIDIA Corporation, where Nouveau is usually selected by default.
If the app is missing, install the software-properties-gtk package.
After you install the NVIDIA driver and restart, this command shows the version that is loaded:
This prints the version of the NVIDIA kernel module that is running.
Step 3: install with Additional Drivers
- Open Additional Drivers.
- Under NVIDIA Corporation, choose a driver version; Ubuntu recommends the most recent one labelled proprietary, tested.
- Do not choose a driver marked Server.
- Click Apply changes and enter your password.
- Restart when the installation finishes.
Ubuntu’s example entry reads Using NVIDIA driver (open kernel) metapackage from nvidia-driver-525 (proprietary, tested).
The open kernel driver is a newer open-source kernel module for recent GPUs, and it still depends on proprietary firmware and user-space libraries.
Or install with ubuntu-drivers
Run the first command to list the drivers that Ubuntu offers for your hardware.
This lists the available drivers.
Then let Ubuntu pick the best match automatically.
This installs the driver that Ubuntu chooses for your GPU.
To choose a version yourself, name it after nvidia: as in Ubuntu’s example, then restart.
This installs driver version 535; replace 535 with the version you picked from the list.
If you install a conflicting driver this way, ubuntu-drivers removes the original driver first.
Or install the packages by hand
Ubuntu also documents a manual route for people who provision several machines the same way.
- Install the module package for your driver branch and kernel flavour; Ubuntu’s example is linux-modules-nvidia-535-generic.
- Check that modules exist for the kernel you are running.
- If they are missing, install them for the running kernel, or update to the latest kernel.
- Restart.
This installs the pre-built modules for your branch and kernel flavour.
This checks whether modules exist for your running kernel.
This installs them for the running kernel if they were missing.
Which driver branch to choose
NVIDIA drivers come in branches, and Ubuntu’s general recommendation is the Production Branch.
| Branch | Meant for | Support period |
|---|---|---|
| Production Branch (PB) | General recommendation | One year |
| New Feature Branch (NFB) | The newest driver, for example for a new game or the latest CUDA APIs | Not stated on the page |
| Long Term Support Branch (LTSB) | Regulated enterprises | Three years |
To see which branch a driver belongs to, run this command with the version you are considering.
Ubuntu’s example for driver 595 returns Support: PB, which means Production Branch.
When NVIDIA ends support for a branch, Ubuntu moves you to the next supported branch if you try to install the old one.
If the driver does not work
Ubuntu’s troubleshooting guide assumes the proprietary driver is already installed and covers two nvidia-smi errors.
| nvidia-smi error | Cause | Fix |
|---|---|---|
| Failed to initialize NVML: Driver/library version mismatch | User-space driver packages were upgraded while the kernel module stayed on an older version, often after a system upgrade | Restart so the updated kernel module loads |
| No devices were found | The open-source nouveau driver is loaded and conflicts with the NVIDIA driver | Blocklist nouveau, rebuild the initramfs and restart |
Driver/library version mismatch
Run sudo dmesg and look for NVRM: API mismatch lines that give two different version numbers.
This prints the kernel log, where the mismatch lines appear.
Restarting the machine fixes it, because the updated kernel module then loads and the versions line up.
No devices were found
First check whether nouveau is loaded.
This prints a line only if nouveau is loaded.
If it is loaded, Ubuntu’s page blocklists it and rebuilds the initramfs with these commands, run in order, followed by a restart.
This writes a blocklist entry for nouveau.
This adds an option that turns off nouveau mode setting.
This unloads the nouveau module, and the part after the double bar stops the line from failing if it is not loaded.
This rebuilds the initramfs so the change applies at boot.
Tools for checking the GPU
Ubuntu’s troubleshooting page lists four tools that come in the package matching your driver version.
| Tool | What it does |
|---|---|
| nvidia-smi | Monitors GPU utilisation, memory, fan speed and clock speed |
| nvidia-bug-report.sh | Collects diagnostics for a bug report to NVIDIA |
| nvidia-debugdump | Extracts internal GPU debug data, mainly for NVIDIA support |
| nvidia-xconfig | Generates xorg.conf, which Ubuntu says is only for legacy desktop systems |
Ubuntu’s example installs them for a Server system on driver 535 with sudo apt install nvidia-utils-535-server, so use the nvidia-utils package that matches your own driver version.
Custom kernel or no driver for your kernel yet
If you run a custom kernel, or no pre-built driver exists yet for your kernel version, Ubuntu points to its DKMS guide, which builds the driver for your exact running kernel.
The Ubuntu page does not give Secure Boot key enrolment steps, so check Ubuntu’s DKMS guide before you use that route with Secure Boot on.
If you have not installed Ubuntu yet, see our guide to installing Ubuntu Desktop from a USB stick, and for the same task on Windows see our NVIDIA drivers on Windows guide.
Official sources
- Ubuntu Desktop documentation: Install NVIDIA drivers
- Ubuntu Desktop documentation: Troubleshoot your NVIDIA GPU and drivers
More driver and PC software guides
- NVIDIA 621.40 Driver: SSD Write Fix And How To Install It (2026)
- How To Roll Back Or Clean Install An NVIDIA GeForce Driver (2026)
- How To Install A NETGEAR WiFi USB Adapter Driver (2026)
- How To Install A TP-Link USB Wi-Fi Adapter Driver (2026)
- How To Install The Samsung NVMe Driver On Windows (2026)
- How To Install An ASUS USB Wi-Fi Or Bluetooth Driver (2026)