Hi Ed,
from my point of view the past 3-4 Updates from nvidia are broken O_o.
4261288.295387] NVRM: API mismatch: the client has the version 525.60.13, but
[4261288.295387] NVRM: this kernel module has the version 418.74. Please
Means that your driver got an automatic update to the newest version 525.x while in the kernel is still the “old” 418.x version installation.
Theoretically this could be fixed by restarting the computer but this will not help at ALL. The CUDA version is tied to the driver, so you either need to downgrade the driver or Upgrade CUDA O_o. For example driver 525 only is compatible to CUDA 12.0 (which is an Alpha at best) and CUDA 11.7.
For a downgrade you would need working uninstallation scripts, so good luck with that …
The following is just what we do, based on frustration about the quality of the nvidia Ubuntu installation scripts. Only do this if you know what you are doing and how to fix it, also BACKUP everything that is important to you BEFORE DOING ANY OF THIS, big SSDs are cheap these days:
Most uninstall scripts and some installation scripts from nvidia are broken, so as you need a driver and CUDA and cuddnn and whatever, so chances are high you will run into problems during installation. I’m also not sure why you are supposed to run CUDA 10.1 which is a very old version.
*WARNING YOUR COMPUTER IS ABOUT TO EXPLODE IF YOU DO THIS
In the past some parts of nvidia were tied to the gnome-desktop from ubuntu, but for your system 22.04 this should not be the case. Anyway don’t do this you have no idea how to install the desktop from the terminal.
First purge everything from nvidia and cuda:
sudo apt purge “*nvidia*”
sudo apt purge “*cuda*”
Really remove it
sudo apt autoremove
Chances are there is still something left, so look into your typical installation:
p.ex.
ls /usr/local/
And if there is still something, remove it p.ex.
sudo rm -rf /usr/local/cuda10.x
Now restart the computer, and if you still have a desktop everything should be OK and just using the nouveau driver.
Now do:
sudo apt update
And if there is still an update from “*nvidia*” you need to check, if this is the correct repository. If not remove the repository manually. (Actually if there is still something, it probably IS an old repository).
If there is nothing from “*nvidia*” congratulations, you now have a virgin system and can typically follow the installation descriptions from nvidia for your selected configuration, although you might want to check the procedure for “fix broken install”!. This might be helpful when dealing with nvidia:
And don’t forget to block automatic updates for your nvidia driver ;-) or this will happen again