How to Install NVIDIA Drivers on Ubuntu 22.10/22.04/20.04


The Nouveau driver is an open-source graphics device driver for Nvidia video cards. The driver is pre-installed in most Linux Desktop systems. You may need to install the official proprietary Nvidia Linux driver if you wish to squeeze as much power as possible from the Nvidia VGA card. The installation procedure is simple and only takes a few minutes. Once the driver is installed, you will need to restart your computer. After your computer has restarted, you can use all of the features of your Nvidia VGA card.

In the following tutorial, you will learn how to install NVIDIA Graphic Drivers on Ubuntu 22.10 Kinetic Kudu, 22.04 Jammy Jellyfish LTS, and 20.04 Focal Fossa using three methods that should suit most user requirements.

Important Notice

The following tutorial was done with a Ubuntu 22.04 release, and example images were taken along with the version of Nvidia drivers; for example, the images show version 510.xx drivers in the output, where we are now up to 525.xx, which is listed in the tutorial. Also, all methods were tested on Ubuntu 20.04 and Ubuntu 22.10, as the methods and repositories are the same and supported on all currently supported Ubuntu releases.

In the future, if Ubuntu makes any changes to break the tutorial for one of the distribution versions, please place a comment for me to investigate so I can update the tutorial.

Recommended Steps Before Installation

Before proceeding with the tutorial, it is highly advised to run an update in your terminal to ensure all packages are up-to-date to avoid any conflicts during the installation. This is important when installing packages such as new kernels and graphic card drivers, especially.

Advertisement


sudo apt update

Optionally, you can list the updates for users who require review or are curious.

sudo apt --list upgradable

Proceed to upgrade any outdated packages using the following command.

sudo apt upgrade

Next, select the two choices from the first option of the standard Ubuntu repository drivers or the second with the latest bleeding-edge stable drivers straight from the PPA.

See also  How to Upgrade to Ubuntu 22.10 Kinetic Kudu with GNOME 43

#1st Method: Install NVIDIA Drivers – Ubuntu Repository (CLI)

The first option is to install NVIDIA drivers for your system using the command line. Advanced users prefer Nvidiacommand-based commands, but the beginner can quickly achieve this with the following.

Open your terminal CTRL+ALT+T and find the information on your graphics card first.

ubuntu-drivers devices

Example output:

Advertisement


example ubuntu drivers devices output on ubuntu linux

From the example output, you can see our operating system module is TU117 [GeForce GTX 1650], and the recommended Nvidia driver is Nvidia-driver-510″. Remember, this is just an example. Everyone will have different Nivida graphic cards, and look for the recommended option if there is one.

Next, we will install the nvidia-driver-510 driver package. This can be done in two ways.

Second, specify below if you want to install the driver package directly or choose another version. Below are some of the newest to oldest, and anything below Nvidia is considered legacy at this point.

First, if you are happy with the recommended version, use this command:

sudo ubuntu-drivers autoinstall

Second, specify below if you want to install the driver package directly or choose another version.

Remember, these version numbers will change over time; these are just examples.

Advertisement


Nvidia Drivers 525.x:

sudo apt install nvidia-driver-525

Nvidia Drivers 520.x:

sudo apt install nvidia-driver-520

Nvidia Drivers 515.x:

sudo apt install nvidia-driver-515

Nvidia Drivers 510.x:

sudo apt install nvidia-driver-510

Once installed, you must reboot your Ubuntu operating system and enter the following command.

reboot

After you log back into your system, you can view the graphic card status with the nvidia-smi” command.

Advertisement


nvidia-smi

Example output:

example nvidia smi output on ubuntu linux

#2nd Method: Install NVIDIA Drivers – Ubuntu Repository (GUI)

The second solution in installing your Nvidia Drivers is to use the GUI method. This is recommended for beginners in Linux, especially.

See also  How to Install Nvidia Drivers on Debian 11/10

Firstly, go to your application menu and open up Additional Drivers as per the below example.

The full path for users new to Linux and Ubuntu is as follows.

Activities (left-hand corner) > Search bar > Additional Drivers.

Example:

Advertisement


launch applications drivers on ubuntu linux

Next, the Software & Updates window will appear, where you can see all the available drivers for your Nvidia graphics card to install. Note that some users will see different list sizes depending on the age and popularity of the graphics card.

Example:

select additional drivers on ubuntu linux

The next step is to select the Nvidia diver you want to install and click the Apply Changes button.

Note that the installation will take 2 to 3 minutes, depending on your system and its resources.

Once installed, reboot your desktop, which can be done immediately if you would like by typing the following command in your terminal.

reboot

That’s it. You have installed Nvidia Drivers using the GUI method. A handy tip is to view the settings and information of your graphic card, which can be done in your terminal, invoking the following command.

Advertisement


nvidia-settings

The following repository to install NVIDIA drivers is a PPA known for having the most up-to-date NVIDIA proprietary drivers available. This is recommended for users wishing to update their cards regularly.

First, install the required dependencies.

sudo apt install software-properties-common -y

Next, add the PPA

sudo add-apt-repository ppa:graphics-drivers/ppa -y

With the PPA now imported, run an APT update.

sudo apt update

Next, type in the terminal command to bring up recommendations on your graphics card.

ubuntu-drivers devices

You will get a new output compared to befNvNvNvidiadiadiath, the original device’s printout using the standard Ubuntu APT repository.

Advertisement


list ubuntu drivers devices with ppa on ubuntu linux

As you can see, we now have a third-party recommended driver. To install, follow the command options again.

See also  How to Install NVIDIA Drivers on CentOS 9/8 Stream

First, if you are happy with the recommended version, use this command:

sudo ubuntu-drivers autoinstall

Second, specify below if you want to install the driver package directly or choose another version.

Nvidia Drivers 525.x:

sudo apt install nvidia-driver-525

Nvidia Drivers 520.x:

sudo apt install nvidia-driver-520

Nvidia Drivers 515.x:

Advertisement


sudo apt install nvidia-driver-515

Nvidia Drivers 510.x:

sudo apt install nvidia-driver-510

Nvidia Drivers 470.x:

sudo apt install nvidia-driver-470

Nvidia Drivers 450.x:

sudo apt install nvidia-driver-450

Nvidia Drivers 390.x:

sudo apt install nvidia-driver-390

Once done, reboot.

reboot

Now confirm using the “nvidia-smi” command the Nvidia driver version installed:

Advertisement


nvidia-smi

Example output:

example output nvidia-smi on ubuntu linux

Remember, the images are examples as most people may install different variants of the Nvidia Drivers; they are just a guide to show if you are successful.


Not what you were looking for? Try searching for additional tutorials.

3 thoughts on “How to Install NVIDIA Drivers on Ubuntu 22.10/22.04/20.04”

  1. Super! Hat mir so geholfen.
    Danke für diese Fleißarbeit.
    Hatte auf einmal nur noch
    1024×768 und mit dieser
    Beschreibung ruck-zuck
    gelöst.

    Reply

Leave a Comment