Skip to content

Instantly share code, notes, and snippets.

@kwsp
Last active November 1, 2020 14:05
Show Gist options
  • Save kwsp/8f28a7a909d52512aadd5d18f7e3298f to your computer and use it in GitHub Desktop.
Save kwsp/8f28a7a909d52512aadd5d18f7e3298f to your computer and use it in GitHub Desktop.
Fix broken cuda install on Debian Testing (Bullseye, Linux 5.8.0)

Remove any existing nvidia packages. (Note: Run this in bash, as the wildcard input to apt-get doesn't work in zsh)

sudo apt-get purge nvidia*

Update package listing and upgrade packages.

sudo apt update
sudo apt upgrade

Installing nvidia-detect to check for nvidia hardware.

sudo apt install nvidia-detect

Make sure the nvidia card(s) is connected properly.

nvidia-detect

Installing the latest nvidia drivers should be as simple as running the following command if you are using Debian Testing.

sudo apt install nvidia-driver

Reboot the machine.

systemctl reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment