VOOZH about

URL: https://www.geeksforgeeks.org/techtips/how-to-install-nvidia-driver-on-ubuntu/

⇱ How to install Nvidia Driver on Ubuntu 22.04? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to install Nvidia Driver on Ubuntu 22.04?

Last Updated : 23 Jul, 2025

You've come to the correct place if you need to install the Nvidia driver on Ubuntu 22.04 and you're using a system with an Nvidia GPU. Installing the Nvidia drivers for Ubuntu 22.04 makes sure your GPU functions properly and offers the best possible performance for things like gaming, rendering, and machine learning. Whether you prefer to use the GUI or the command line, we'll walk you through the exact steps of installing GPU drivers on Ubuntu in this article. You can guarantee a seamless installation of the Nvidia drivers on Ubuntu 22.04 by following these instructions.

Why Install NVIDIA Drivers?

NVIDIA's proprietary drivers offer better overall performance and stability in comparison to the open-supply Nouveau drivers included with Ubuntu. Additionally, NVIDIA's drivers offer help with modern-day features, optimizations, and technology, making sure that customers can completely leverage the skills of their NVIDIA GPUs.

Preparing for Installation

Before installing NVIDIA drivers, you should ensure your system meets the following criteria:

  • A stable internet connection is necessary to download the required packages.
  • Identify your NVIDIA GPU model. You can do this using the terminal command
 lspci | grep -i nvidia
  • Make sure your Ubuntu system is up to date. Run sudo apt update && sudo apt upgrade to update your system packages.

Installing NVIDIA Drivers

Method 1: Using Ubuntu Repository

Step 1: Press Windows Key and then search "Software & Updates".

πŸ‘ Ubuntu-Repository---01
Ubuntu Repository - 01

Step 2: Now click on "Additional Drivers" tab then it will automatically detect all the available drivers including NVIDIA. Select the latest recommended driver version and click 'Apply Changes.'

πŸ‘ Ubuntu-Repository---02
Ubuntu Repository - 02

Step 3: Authenticate: You may need to enter your password to confirm the changes. Once done, Ubuntu will download and install the selected NVIDIA driver.

Step 4: Restart: After installation, restart your system for the changes to take effect.

Method 2: Using Terminal

Step 1: Open a terminal window and add the Graphics Drivers PPA by running:

sudo add-apt-repository ppa:graphics-drivers/ppa
πŸ‘ Ubuntu-Repository---03
Ubuntu Repository - 03
sudo apt update
πŸ‘ Ubuntu-Repository---04
Ubuntu Repository - 04

Step 2: Run ubuntu-drivers devices to list the available drivers for your GPU.

πŸ‘ Ubuntu-Repository---05
Ubuntu Repository - 05

Step 3: Install the recommended driver version by running:

sudo apt install nvidia-driver-<version>

Replace <version> with the driver version recommended for your GPU.

Step 4: Once the installation is complete, Now you can reboot your system.

Verifying the Installation

Use these procedures to make sure the NVIDIA drivers are installed correctly and operating as intended:

  • Check Driver Version: Open a terminal and run nvidia-smi. This command will display information about your NVIDIA GPU along with the installed driver version.
  • Test Graphics Performance: Run graphics-intensive applications or games to ensure smooth performance.

Troubleshooting

There are some troubleshooting steps, that you should follow when you face any kind of problem related to drivers, graphics card or any other type of errors.

Step 1: If NVIDIA is giving you the problem so you can go to the 'Additional Drivers' tab in 'Software & Updates' and choose Nouveau driver.

Step 2: If you need to remove the NVIDIA drivers completely, you can do so via the terminal using

 sudo apt remove --purge nvidia*

followed by sudo apt autoremove.

Conclusion

When the Nvidia driver is successfully installed on Ubuntu 22.04, your Nvidia GPU will reach its maximum potential, improving stability and performance. Whether using the GUI or the command line, you will have successfully configured your Nvidia drivers by following this guide. Update your Ubuntu Nvidia drivers on a regular basis to keep your system secure and up to date with the newest features and enhancements. Having a properly installed Nvidia driver Ubuntu 22.04 setup is essential for any Linux operation requiring a GPU.

Comment
Article Tags: