I am trying to re-install cuda toolkit 11.2 on my Ubuntu 18.04 server. To remove the previous installation, I tried the following commands:
sudo apt-get --purge remove nvidia-* sudo apt-get --purge remove "*nvidia*" sudo apt autoremove cuda sudo apt-get --purge remove "*cublas*" "cuda*" "nsight*" sudo apt-get update sudo reboot
However, after rebooting, when I tried to install cuda toolkit 11.2 using
sudo sh cuda_11.2.0_460.27.04_linux.run
It returns “Existing installation of CUDA Toolkit 11.2 found”. Also, running “nvidia-smi” and “nvcc -V” seems as if they are functioning properly, and it seems all files in the installation directory of the previous cuda have not been removed. How should I resolve this problem? Thanks!