The installation instructions for the NVIDIA Driver on Linux.
1. Introduction
1.1. System Requirements
To use the NVIDIA Driver on your system, you will need the following installed:
- NVIDIA GPU
- A supported version of Linux with a gcc compiler and toolchain
- NVIDIA Driver (available at https://developer.nvidia.com/datacenter-driver-downloads)
The following table lists the supported Linux distributions. Please review the footnotes associated with the table.
Distribution | Kernel1 | Default GCC | GLIBC |
---|---|---|---|
x86_64 | |||
RHEL 9 | 5.14.0-427 | 11.4.1 | 2.34 |
RHEL 8 | 4.18.0-553 | 8.5.0 | 2.28 |
OpenSUSE Leap 15 | 6.4.0-150600.21 | 7.5.0 | 2.38 |
Rocky Linux 8 | 4.18.0-553 | 8.5.0 | 2.28 |
Rocky Linux 9 | 5.14.0-427 | 11.4.1 | 2.34 |
SUSE SLES 15 | 6.4.0-150600.21 | 7.5.0 | 2.31 |
Ubuntu 24.04 LTS | 6.8.0-41 | 13.2.0 | 2.39 |
Ubuntu 22.04 LTS | 6.5.0-27 | 12.3.0 | 2.35 |
Ubuntu 20.04 LTS | 5.15.0-67 | 9.4.0 | 2.31 |
Debian 12 | 6.1.0-25 | 12.2.0 | 2.36 |
Debian 112 | 5.10.218-1 | 10.2.1 | 2.31 |
Fedora 39 | 6.5.6-300 | 13.2.1 | 2.38 |
KylinOS V10 SP3 2403 | 4.19.90-89.11.v2401 | 7.3.0 | 2.28 |
MSFT Azure Linux 2.0 | 5.15.158.2-1 | 11.2.0 | 2.35 |
Amazon Linux 2023 | 6.1.82-99.168 | 11.4.1 | 2.34 |
Arm64 sbsa | |||
RHEL 9 | 5.14.0-427 | 11.4.1 | 2.34 |
RHEL 8 | 4.18.0-553 | 8.5.0 | 2.28 |
SUSE SLES 15 | 6.4.0-150600.21 | 7.5.0 | 2.38 |
Kylin V10 SP3 2403 | 4.19.90-89 | 12.3.0 | 2.28 |
Ubuntu 24.04 LTS | 6.8.0-41 | 13.2.0 | 2.39 |
Ubuntu 22.04 LTS | 5.15.0-102 | 11.4.0 | 2.35 |
Ubuntu 20.04 LTS | 5.4.0-174 | 9.4.0 | 2.31 |
10. 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:wget https://developer.download.nvidia.com/compute/cuda/repos/$distro/$arch/cuda-keyring_1.1-1_all.deb 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
- 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 Modulessudo apt-get install nvidia-open Proprietary Kernel Modulessudo apt-get install cuda-drivers
10.5. Reboot the system
- sudo reboot
- Perform the Post-installation Actions.
source from https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html#ubuntu