Could Ubuntu have automatically tried to update some drivers or did you explicitly disable this option (in the past I ran into similar issues and had to reinstall the driver).
In case you have a local CUDA toolkit installed, try to compile and run some CUDA samples.
If not, you could use a docker container and execute some smoke tests there using the CUDA samples.