Newly installed drivers are not found when nvidia-smi is called.

My issue was a bit different from the one below, but IT SAVED ME. In my case, after I had uninstalled everything using the direction below, I was doing:

sudo ubuntu-drivers autoinstall

but I wasn’t focused on the messages and the driver build was failing. When the build fails it will write a build log into your /var/lib/dkms/nvidia/… directory and that for me was the answer. I had screwed up where my CC compiler was pointing. I also add the newer versions of GCC, so that may have helped as well (mentioned in another post).

1 Like