Open a terminal and run the following command to update the package list:
sudo apt update
Run the following command to install essential build dependencies:
sudo apt install build-essential dkms
Add the NVIDIA PPA repository to get the latest drivers, and then update the package list again:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
Identify the available NVIDIA drivers for your system:
ubuntu-drivers devices
Install the recommended driver version by replacing <version>
with the specific driver version number:
sudo apt install nvidia-driver-<version>
For example, to install version 460, use sudo apt install nvidia-driver-460
.
Reboot your system to apply the changes:
sudo reboot
Verify the installation by running the following command:
nvidia-smi
This command should display information about your NVIDIA GPU and the driver version.
Follow these steps carefully to successfully install NVIDIA GPU drivers on Ubuntu (Linux).