Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Ubuntu Update Video Driver: How to Do It Safely

· 6 min read · Home Tech

In this article
  1. Why Ubuntu Handles Video Drivers Differently
  2. How to Check Which Driver You Are Using
  3. Updating Through Additional Drivers (Recommended)
  4. Updating from the Command Line
  5. When You Might Need a Newer Driver
  6. Common Problems and How to Recover
  7. Open-Source vs Proprietary: What to Expect
  8. Frequently Asked Questions

To update your video driver on Ubuntu, use the Additional Drivers tool (Software & Updates → Additional Drivers) for proprietary drivers like NVIDIA, or rely on the built-in open-source drivers that update automatically with the kernel and Mesa packages. You can also install newer drivers manually from a PPA or the manufacturer's website, but the recommended and safest path is the official repository or the Additional Drivers utility.

Why Ubuntu Handles Video Drivers Differently

Unlike Windows, where you typically download an installer from the GPU maker's website, Ubuntu integrates driver management into the package system. The open-source stack—Intel and AMD GPU drivers in the Linux kernel plus the Mesa 3D graphics library—is included by default and updated through normal system updates. NVIDIA's proprietary driver is the main exception: it is not open source, so Ubuntu offers it as an optional package you enable through Additional Drivers.

This design means most users never need to "update a video driver" manually. When you run sudo apt update && sudo apt upgrade, you receive kernel updates that include the latest open-source GPU support, along with Mesa updates that improve performance and fix bugs. The proprietary NVIDIA driver, however, is versioned separately and may require explicit action to move to a newer branch.

How to Check Which Driver You Are Using

Before changing anything, find out what is currently active. Open a terminal and run:

  • lspci -k | grep -A 2 -E "(VGA|3D)" — shows your GPU model and the kernel driver in use.
  • glxinfo | grep "OpenGL renderer" — reports the renderer string; you may need to install mesa-utils first.
  • ubuntu-drivers devices — lists available proprietary drivers and marks the recommended one.

For NVIDIA cards, nvidia-smi prints the driver version and GPU status if the proprietary driver is installed. If it returns "command not found," you are likely on the open-source Nouveau driver.

This is the official graphical method and works on Ubuntu Desktop editions. It pulls drivers from the Ubuntu repositories, so packages are tested against your release.

  1. Open the Activities overview and search for "Additional Drivers" (or go to Software & Updates → Additional Drivers tab).
  2. Wait for the list to populate. You will see available drivers for your GPU, often with labels like "Using X.Org X server — Nouveau" or "Using NVIDIA driver metapackage from nvidia-driver-XXX (proprietary, tested)".
  3. Select the driver you want. The "tested" or "recommended" entry is the safest choice for stability.
  4. Click Apply Changes and enter your password. The system will download and install the packages.
  5. Reboot when prompted. A reboot is required for the kernel module to load correctly.

If the tool shows no proprietary drivers, your GPU may be fully supported by the open-source stack, or your hardware may be too new for the drivers packaged in your Ubuntu release.

Updating from the Command Line

The terminal equivalent gives you more control and works on servers or minimal installs. First, make sure the restricted repository is enabled, since NVIDIA drivers live there:

  1. Run sudo apt update to refresh package lists.
  2. Run ubuntu-drivers devices to see recommendations.
  3. Install the recommended driver with sudo ubuntu-drivers autoinstall, or install a specific version with sudo apt install nvidia-driver-XXX (replace XXX with the version number shown in the list).
  4. Reboot the system.

To remove a proprietary driver and return to the open-source stack, run sudo apt purge nvidia-* and reboot. Be aware that purging drivers can leave your display at a low resolution until the open-source driver takes over.

When You Might Need a Newer Driver

Ubuntu's repositories prioritize stability, so the driver version may lag behind the latest release from NVIDIA or AMD. You might want a newer driver if:

  • You just bought a recently released GPU that is not recognized by the kernel or Mesa version in your Ubuntu release.
  • A specific game or professional application requires a newer driver feature or bug fix.
  • You are using a Linux-friendly distribution like Ubuntu LTS and need support for new hardware that arrived after the release.

In these cases, options include upgrading to a newer Ubuntu release, enabling the Hardware Enablement (HWE) stack for newer kernels and Mesa, or adding a trusted PPA such as the Graphics Drivers PPA. PPAs are not officially supported by Ubuntu and can introduce instability, so use them only if you understand the risks.

Common Problems and How to Recover

Driver changes are one of the more common ways to end up with a black screen or a login loop. Knowing the recovery steps matters more than avoiding them entirely.

  • Black screen after reboot: At the GRUB menu, select "Advanced options for Ubuntu" and boot an older kernel, or add nomodeset to the kernel command line to get a basic display. Then remove or reinstall the driver.
  • Login loop: Often caused by a mismatch between the NVIDIA driver and the kernel module. Switch to a virtual terminal with Ctrl+Alt+F3, log in, and purge the NVIDIA packages, then reboot.
  • Secure Boot blocking the driver: On systems with Secure Boot enabled, the NVIDIA kernel module must be signed. Ubuntu prompts you to create a Machine Owner Key (MOK) during installation; if you skip it, the driver will not load. Re-run the MOK enrollment with sudo mokutil --import on the generated key if needed.
  • Wayland vs X11: Some proprietary drivers behave differently under Wayland. If you see glitches after an update, try switching the session type at the login screen.

Open-Source vs Proprietary: What to Expect

The open-source drivers (Intel i915/xe, AMDGPU, Nouveau for NVIDIA) are part of the kernel and Mesa, so they update with the system and require no manual steps. They offer good desktop performance and better integration with Wayland, but they may lack the full feature set and performance of the proprietary driver for newer NVIDIA cards, especially for gaming and CUDA workloads. The proprietary NVIDIA driver provides better 3D performance and support for CUDA, but it is closed-source, must be reinstalled after some kernel updates, and can complicate Secure Boot and Wayland setups.

AMD's open-source AMDGPU driver is mature and generally recommended over the proprietary AMDGPU-PRO stack for desktop use, which is why Ubuntu does not offer a proprietary AMD driver through Additional Drivers for most consumer cards.

Frequently Asked Questions

Do I need to update my video driver on Ubuntu?

Usually no. Open-source drivers update automatically with system updates. You only need to act if you use an NVIDIA card and want the proprietary driver, or if you need newer hardware support than your Ubuntu release provides.

How do I know if my NVIDIA driver is installed?

Run nvidia-smi in a terminal. If it prints a table with driver and GPU details, the proprietary driver is active. If the command is missing, you are probably using Nouveau.

Can I switch back to the open-source driver?

Yes. In Additional Drivers, select the X.Org X server (Nouveau) option, or run sudo apt purge nvidia-* and reboot. Your system will fall back to the open-source driver.

Why did my screen go black after a driver update?

This often happens when the proprietary driver fails to build against a new kernel, or when Secure Boot blocks an unsigned module. Boot an older kernel or use nomodeset, then reinstall or remove the driver.

Are PPAs safe for video drivers?

They are not officially supported and can break your graphics stack. Use them only if you need a specific newer driver and are comfortable recovering from a broken display.

Does updating the driver improve game performance?

Sometimes, especially with newer GPUs or recent game releases. Mesa and NVIDIA driver updates often include performance fixes, but gains vary by game and hardware.