NVidia Treiber
Zur Installation der Nvidia-Treiber und CUDA verwende ich direkt das Repository von Nvidia:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-ubuntu2404.pin
sudo mv cuda-ubuntu2404.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/13.0.0/local_installers/cuda-repo-ubuntu2404-13-0-local_13.0.0-580.65.06-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2404-13-0-local_13.0.0-580.65.06-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2404-13-0-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt update
sudo apt install -y cuda
Wenn Du Secure Boot aktiviert hast, musst Du dem UEFI noch den Key mitgeben:
sudo update-secureboot-policy --enroll-key
Nach der Installation musst Du noch den Pfad erweitern:
tee --append ~/.bashrc <<EOF
export PATH=${PATH}:/usr/local/cuda-13.0/bin
EOF
source ~/.bashrc