How to Install NVIDIA Driver on Ubuntu 22.04

TechZerg is reader supported. When you purchase through links on our site, we may earn a commission.

SHARE ON:
  • Installing NVIDIA drivers on Ubuntu 22.04 enhances GPU performance for demanding tasks.
  • Identify your NVIDIA GPU using the terminal command lspci | grep -i nvidia.
  • Use the Software & Updates tool for a simple, graphical installation of NVIDIA drivers.
  • Install NVIDIA drivers via the terminal using sudo apt install nvidia-driver-510.
  • Download and install the latest NVIDIA driver directly from the NVIDIA website if needed.
  • Verify the installation by running nvidia-smi in the terminal to check GPU details.
  • Troubleshoot common issues like boot failures or driver conflicts by removing and reinstalling the driver.
  • Blacklist the Nouveau driver if it’s causing conflicts with the NVIDIA driver.
  • Check performance settings using the NVIDIA X Server Settings tool if you’re experiencing low frame rates.

If you’re using Ubuntu 22.04 and want to install an NVIDIA graphics driver, you’re in the right place. NVIDIA drivers are essential for the smooth functioning of your graphics card, especially when running demanding applications like games or graphic-intensive programs.

In this guide, we will show you exactly how to install NVIDIA drivers on Ubuntu 22.04.

Introduction

Ubuntu 22.04, the latest Long Term Support (LTS) version of the popular Linux distribution, offers great support for different hardware components, including NVIDIA graphics cards. However, installing the proper NVIDIA driver isn’t always a straightforward task.

Many users face challenges during the installation process, but the good news is that with the right steps, you can easily get the driver working on your system. This post will walk you through the entire process, step-by-step, so that you can get the most out of your NVIDIA GPU.

In this blog post, we’ll cover:

  • Why you need NVIDIA drivers
  • How to identify your NVIDIA GPU
  • How to install NVIDIA drivers using different methods
  • How to verify the driver installation
  • How to troubleshoot common issues

By the end of this guide, you’ll have a working NVIDIA driver setup on Ubuntu 22.04.

Why You Need NVIDIA Drivers

Before we get started on how to install NVIDIA drivers on Ubuntu 22.04, let’s briefly talk about why these drivers are necessary. NVIDIA provides proprietary drivers that are designed to unlock the full potential of their graphics cards.

These drivers enhance the performance and functionality of the GPU, enabling it to handle modern gaming, video editing, machine learning, and other graphical tasks with ease.

Without the correct driver, your GPU might not function optimally, leading to poor performance, graphical glitches, or even complete failure to recognize the hardware. Ubuntu comes with open-source Nouveau drivers by default, but these don’t provide the level of performance and features that NVIDIA proprietary drivers offer.

How to Identify Your NVIDIA GPU

Before proceeding with the installation, it’s important to know which NVIDIA GPU you have. This will help you choose the right driver version for your hardware. To identify your GPU, follow these steps:

  1. Open a terminal (Ctrl + Alt + T).
  2. Type the following command and press Enter: lspci | grep -i nvidia

This command will display the details of the NVIDIA GPU installed in your system. If you see output like “NVIDIA Corporation,” that confirms you have an NVIDIA GPU. The exact model name will also appear, helping you choose the appropriate driver.

How to Install NVIDIA Driver on Ubuntu 22.04

There are several methods for installing NVIDIA drivers on Ubuntu 22.04. The most common ways are using the Ubuntu Software & Updates tool or using the terminal. We will cover both methods in this section.

Method 1: Install NVIDIA Driver Using Software & Updates Tool

This is the easiest way to install the NVIDIA driver on Ubuntu 22.04. The Software & Updates tool provides a simple graphical interface to install and update NVIDIA drivers.

  1. Open the Software & Updates application by searching for it in the application menu.
  2. Click on the Additional Drivers tab. This tab will display all the available proprietary drivers for your system.
  3. From the list of drivers, select the latest version of the NVIDIA driver for your GPU. The recommended version is often marked as “proprietary, tested.”
  4. Click on Apply Changes to start the installation process.
  5. Once the installation is complete, restart your system for the changes to take effect.
You may like:  Is Nvidia Shield Worth It? (2025)

After rebooting, you should have the correct NVIDIA driver installed and ready to use.

Method 2: Install NVIDIA Driver Using the Terminal

If you prefer using the terminal, this method is for you. It gives you more control over the installation process.

  1. First, open a terminal window (Ctrl + Alt + T).
  2. Update your package list to make sure your system is up to date: sudo apt update
  3. Next, install the required packages to get the NVIDIA driver: sudo apt install nvidia-driver-510 Replace “510” with the latest version number for your GPU. You can also install a different driver version if needed. For example, “nvidia-driver-460” is a common version for older GPUs.
  4. Once the installation is complete, reboot your system: sudo reboot

After rebooting, your system should be using the newly installed NVIDIA driver.

Method 3: Install NVIDIA Driver Using the NVIDIA Website

In some cases, you may want to download and install the latest NVIDIA driver directly from the NVIDIA website. This method ensures that you have the most up-to-date driver for your hardware.

  1. Visit the NVIDIA driver download page: NVIDIA Driver Downloads.
  2. Select your GPU model and the version of Linux (Ubuntu 22.04) and download the driver.
  3. Once the driver is downloaded, navigate to the folder where the file is located using the terminal.
  4. Make the file executable: chmod +x NVIDIA-Linux-x86_64-<version>.run
  5. Run the installation script: sudo ./NVIDIA-Linux-x86_64-<version>.run
  6. Follow the on-screen instructions to complete the installation process.

Once installed, restart your system to apply the changes.

Verifying the Installation

After installing the NVIDIA driver on Ubuntu 22.04, it’s important to verify that everything is working as expected.

  1. Open a terminal window (Ctrl + Alt + T).
  2. Type the following command to check the NVIDIA driver version: nvidia-smi This command will display detailed information about your GPU and the installed driver version. If the command shows output like GPU details and driver information, you can be confident that the NVIDIA driver has been installed successfully.

Alternatively, you can use the following command to check the loaded kernel modules:

lsmod | grep nvidia

If you see “nvidia” listed, the driver is loaded correctly.

Troubleshooting Common Issues

Sometimes, issues may arise during or after the installation of the NVIDIA driver on Ubuntu 22.04. Below are some common problems and their solutions.

Issue 1: The system does not boot into the graphical interface

If your system fails to boot into the graphical user interface (GUI) after installing the NVIDIA driver, it could be due to incompatible drivers or conflicts with other drivers. To fix this:

  1. Boot into recovery mode by selecting “Advanced options for Ubuntu” in the GRUB menu and choosing the recovery mode.
  2. In the recovery menu, choose Drop to root shell prompt.
  3. Remove the existing NVIDIA driver: sudo apt-get purge nvidia*
  4. Reinstall the recommended NVIDIA driver via the Software & Updates tool or terminal.
  5. Reboot the system.

Issue 2: The NVIDIA driver is not working after installation

If the NVIDIA driver seems to be installed but doesn’t work properly, you might need to blacklist the Nouveau driver. To do this:

  1. Open a terminal and create a blacklist configuration file: sudo nano /etc/modprobe.d/blacklist-nouveau.conf
  2. Add the following lines: blacklist nouveau options nouveau modeset=0
  3. Update the initramfs: sudo update-initramfs -u
  4. Reboot the system.

Issue 3: Low Frame Rates or Poor Performance

If you’re experiencing low frame rates or poor performance after installing the driver, it might be worth checking the settings in the NVIDIA X Server Settings application. Ensure that your GPU is running at the correct power settings and check for any other configuration issues.

Frequently Asked Questions

Here are some of the related questions people also ask:

What is the best way to install NVIDIA drivers on Ubuntu 22.04?

The best way to install NVIDIA drivers on Ubuntu 22.04 is by using the Software & Updates tool, which provides a simple graphical interface to choose and install the latest driver for your GPU.

How do I know which NVIDIA driver to install on Ubuntu 22.04?

You can identify your NVIDIA GPU by running the command lspci | grep -i nvidia in the terminal. Based on your GPU model, you can choose the appropriate driver version from the Software & Updates tool or install it manually via the terminal.

Can I install NVIDIA drivers manually on Ubuntu 22.04?

Yes, you can manually install NVIDIA drivers on Ubuntu 22.04 by downloading the driver from the NVIDIA website and running the installation script in the terminal.

How can I check if the NVIDIA driver is properly installed on Ubuntu 22.04?

To verify the installation, run nvidia-smi in the terminal. If the NVIDIA driver is correctly installed, it will display details about your GPU and the driver version.

What should I do if my system doesn’t boot after installing NVIDIA drivers?

If your system fails to boot, try removing the NVIDIA driver by booting into recovery mode, purging the driver using sudo apt-get purge nvidia*, and reinstalling the recommended version.

How do I fix low frame rates after installing NVIDIA drivers on Ubuntu 22.04?

If you’re experiencing low frame rates, use the NVIDIA X Server Settings tool to ensure that your GPU is configured correctly, including checking power settings and performance configurations.

What is the Nouveau driver and why do I need to disable it for NVIDIA?

The Nouveau driver is an open-source driver for NVIDIA graphics cards. To avoid conflicts with the proprietary NVIDIA driver, you may need to blacklist Nouveau by adding specific lines to a configuration file and updating the initramfs.

How do I install NVIDIA drivers from the terminal on Ubuntu 22.04?

To install NVIDIA drivers via the terminal, use the command sudo apt install nvidia-driver-510 (replace “510” with the version that matches your GPU) and then reboot your system to apply the changes.

What is the difference between Nouveau and NVIDIA proprietary drivers on Ubuntu 22.04?

Nouveau is an open-source driver that comes pre-installed with Ubuntu, but it lacks the performance and features of the proprietary NVIDIA driver, which is designed to provide better performance and full GPU functionality.

The Bottom Line

In this guide, we’ve shown you how to install the NVIDIA driver on Ubuntu 22.04. By following these steps, you should be able to get the most out of your NVIDIA GPU, whether you’re gaming, working with graphic design, or using machine learning tools.

If you encounter any issues during the installation process, the troubleshooting tips above should help you resolve them.

Remember, installing the correct NVIDIA driver is essential to maximizing the performance of your GPU. Now that you know how to install NVIDIA driver on Ubuntu 22.04, you can ensure that your system is running smoothly and efficiently. Happy computing!