NVIDIA Drivers

Updated at 2021-12-18 16:01

Find the current recommended drivers.

sudo apt update
ubuntu-drivers devices | grep recommended
# driver   : nvidia-driver-515 - distro non-free recommended

Find and remove the old drivers. The old drivers need to be uninstalled first because the cause strict locks in the package management system dependencies.

apt list --installed | grep nvidia-driver-
# nvidia-driver-510/focal-security,focal-updates,focal [installed]
sudo apt remove nvidia-driver-510
sudo apt autoremove -y

Install the new drivers.

sudo apt install -y nvidia-driver-515

Reboot the system.