Uninstall NVIDIA CUDA Toolkit 11.5 on Ubuntu 21.10 / Debian 11 / Linux Mint 20.3

2. Uninstall NVIDIA CUDA Toolkit 11.5 on Ubuntu 21.10 / Debian 11 / Linux Mint 20.3

2.1 Change root user

su -
## OR ##
sudo -i

2.2 Run NVIDIA CUDA Uninstall Script

/usr/local/cuda/bin/cuda-uninstaller

NVIDIA CUDA uninstaller 11.5 ubuntu debian linux mint

2.3 Remove /etc/profile.d/cuda.sh

rm /etc/profile.d/cuda.sh

Then logout/login get NVIDIA CUDA away from PATH and LD_LIBRARY_PATH.

5 comments on “Uninstall NVIDIA CUDA Toolkit 11.5 on Ubuntu 21.10 / Debian 11 / Linux Mint 20.3

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close