How to completely uninstall NVIDIA driver, Cuda, Etc And Reinstall on Ubuntu 22.04
Recently I had a problem regarding with my deep learning workstation, so I need to completely uninstall all the NVIDIA, CUDA, et al. here is the I did that
# remove nvidia drivers and also cuda-toolkit
sudo apt purge *nvidia*
# remove other library that may exist
sudo dpkg --list | grep nvidia
sudo dpkg -P [package_name_detail] from above step
# uninstall all cuda related packages
sudo dpkg --list | grep cuda
sudo dpkg -P [package_name_detail] from above step
To Re-Install, the best way is to use
sudo ubuntu-drivers autoinstall
Done
この記事が気に入ったらサポートをしてみませんか?