Ubuntu
10.1. Prepare Ubuntu
-
Perform the Pre-installation Actions.
-
The kernel headers and development packages for the currently running kernel can be installed with:
sudo apt-get install linux-headers-$(uname -r)
-
Choose an installation method: Local Repo Installation for Ubuntu or Network Repo Installation for Ubuntu.
10.2. Local Repo Installation for Ubuntu
-
Install local repository on file system:
sudo dpkg -i nvidia-driver-local-repo-<distro>-X.<version>_<architecture>.deb
-
Enroll ephemeral public GPG key:
sudo cp /var/nvidia-driver-local-repo-<distro>-X.<version>/nvidia-driver-*-keyring.gpg /usr/share/keyrings/
10.3. Network Repo Installation for Ubuntu
-
Install the new cuda-keyring package:
where
$distro/$arch
should be replaced by one of the following:-
ubuntu2004/sbsa
-
ubuntu2004/x86_64
-
ubuntu2204/sbsa
-
ubuntu2204/x86_64
-
ubuntu2404/sbsa
-
ubuntu2404/x86_64
sudo dpkg -i cuda-keyring_1.1-1_all.deb
-
-
Or if you are unable to install the
cuda-keyring
package, refer to CUDA Archive Keyring.
10.4. NVIDIA Driver Installation for Ubuntu
These instructions apply to both local and network installation for Ubuntu.
-
Update the Apt repository cache:
sudo apt-get update
-
Install NVIDIA Driver:
Open Kernel Modules
sudo apt-get install nvidia-open
Proprietary Kernel Modules
sudo apt-get install cuda-drivers
10.5. Reboot the system
-
sudo reboot
-
Perform the Post-installation Actions.