How To Install Nvidia Drivers On Ubuntu 22.04 LTS
This tutorial is applicable for Ubuntu 22.04 LTS, Ubuntu 20.04 LTS, Ubuntu 23.10 too. Ubuntu has open-source Nouveau drivers available for Nvidia GPU but sometime it might be 100% compatible for your device. In this blogpost we will show you the step by step to install Nvidia drivers on Ubuntu and derivatives.
How To Install Nvidia Drivers On Ubuntu 22.04 LTS
There are multiple ways to install Nvidia GPU drivers on Ubuntu and it’s derivatives.
1. Install Nvidia Drivers Via Command
At first, Execute the following command to search Nvidia driver in Ubuntu 22.04 LTS.
apt search nvidia-driver
Run the following command to update so that you can get the latest driver for your Ubuntu.
sudo apt update
sudo apt upgrade
Now, After figuring out the Nvidia driver model name you can run the following command to install Nvidia driver on Ubuntu.
sudo apt install [driver_model_name]
Now reboot Ubuntu after installing Nvidia driver.
sudo reboot
2. Install Nvidia Drivers via PPA Repository
In this method, we will guide you through the process to install Nvidia drivers via PPA. Run the following command to add the Nvidia drivers repository:
sudo add-apt-repository ppa:graphics-drivers/ppa
Run the following command to identify the NVidia GPU model you are using in your Ubuntu.
ubuntu-drivers devices
After knowing your Nvidia GPU model, run the following command with your Nvidia GPU model to install the Nvidia driver on Ubuntu 22.04 LTS.
sudo apt install [driver_model_name]
Just in case if you want to install the Nvidia driver automatically.
sudo ubuntu-drivers autoinstall
After installing Nvidia driver, reboot your Ubuntu.
sudo reboot
3. Install Nvidia Driver Using GUI
This is graphical way to install Nvidia graphics driver on Ubuntu. Below you can find the step by step process to install Nvidia driver using GUI.
- Open Software and Updates Menu and select the Software and Updates app.
- Click the Additional Drivers Tab. Wait for the app to download a list of additional drivers that is available for your GPU.
- Select the latest Nvidia driver labeled proprietary, tested from the list.
- Click Apply Changes.
- Restart your Ubuntu.