Thanks @rs277 for your answer. So I’ll do the sudo apt-get remove --purge '^nvidia-.*'; sudo apt-get remove --purge '^libnvidia-.*'; sudo apt-get remove --purge '^cuda-.*' process once again.
Which apt install ... should I do to install everything? I would like to have nvidia-smi, nvcc, the drivers, etc.
The link you gave here is only the driver right? How to also install CUDA, etc.? Is there a one-line apt ... that would do this?
I’m not sure if this will give you the latest compatible driver, but whatever it installs will be compatible.
Update: I’m not familiar with apt install’s, but it appears looking at the 11.7 wget instructions that the 10.2.ones are the same, with the exception of the “apt-key” line. If the instructions on the 10.2 page install 11.7 again, you might want to download the “deb (local)” package and install that, following the “Installation Guide for Linux” link at the bottom of the page.