Install CUDA on Ubuntu 20.04 driver version mismatch? CUDA: 465.19 Ubuntu:465.27

Do I need to uninstall the stock Ubuntu driver 465.27 and install the older 465.19 to be able to install/use CUDA?

I mean my system (after changing the Ubuntu default driver using the system options to the proprietary driver) is using version 465.27…

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0 ==
modalias : pci:v000010DEd00002503sv00001462sd0000397Dbc03sc00i00
vendor   : NVIDIA Corporation
driver   : nvidia-driver-460 - distro non-free
driver   : nvidia-driver-460-server - distro non-free
driver   : nvidia-driver-465 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

I’m on nvidia-driver-465 and I think this is the pertinent detail:
nvidia-driver-465/focal-updates,focal-security,now 465.27-0ubuntu0.20.04.2 amd64 [installed]

However, looking at the latest Ubuntu 20.04 options for CUDA: CUDA Toolkit 11.7 Update 1 Downloads | NVIDIA Developer the installer appears to want 465.19.

Thanks,
-Greg

Looks like they’re from two different release branches, maybe the 465.27 (new feature branch) is backward compatible with 465.19 (beta)?

image

No. The driver specified in a given toolkit release is the minimum required and later drivers are required to be compliant with this Cuda version. So just skip the driver update part of the toolkit install.