Troubleshooting when installing the appropriate NVIDIA driver on an Ubuntu 22.04

I used the sudo ubuntu-drivers devices command to find the compatible Nvidia driver, and it indicated that the NVIDIA 555.42.02 driver is supported.

vendor : NVIDIA Corporation
model : GA100 [A100 PCIe 40GB]
driver : nvidia-driver-555 - third-party non-free recommended

However, after running dmesg, it shows:

NVRM: The NVIDIA GPU 0000:02:01.0 (PCI ID: 10de:20f1)
NVRM: installed in this system is not supported by the
NVRM: NVIDIA 555.42.02 driver release.
NVRM: Please see ‘Appendix A - Supported NVIDIA GPU Products’
NVRM: in this release’s README, available on the operating system
NVRM: specific graphics driver download page at www.nvidia.com.

And when using nvidia-smi, the error message is:

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

Could you tell me how to fix it?

I also had nvidia-driver-555/cuda 12.5 fail on A100 PCIe 40GB on ubuntu. Glad I’m not the only one. I reverted to 550 and the nvidia driver and cuda 12.4 work fine.