Updating Nvidia Drivers on Linux
This page contains notes on how to safely update Nvidia graphics drivers to a specified version on Ubuntu based Linux distros.
Updates
Make sure you've done the below commands to ensure you're all up to date.
sudo apt update
sudo apt upgrade
Finding Target Version
You can use the below command to find the version of the Nvidia driver that you want to upgrade to.
apt search nvidia-driver
Installing the Driver
There are two ways to install the right version of driver. If you're on Pop!_OS like I am, you can install the latest supported driver with the below command.
sudo apt install system76-driver-nvidia -y
If you're on a different Ubuntu based distribution, or you just want to use a version beyond the supported version specified by System76, you can use the below command instead.
sudo apt install nvidia-driver-550
Replace the "550" with the target version that you are trying to upgrade to.
Useful Utility Commands
Below are some commands that are useful if you're wondering what driver is currently installed, and what version of your OS that you're on.
To see the version of OS you're on: grep -i "ID=" /etc/os-release
To see the current Nvidia driver installed: nvidia-smi
Part of: YouTube Channel Notes