Hi, you can choose not to install the driver with a CUDA install, and to download the driver separately.
Your 'cuda' packages should use '>=' not '=='
e.g. 'cuda-12' should depend on nvidia>=525 NOT nvidia==525
Depends: cuda-libraries-11-8 (>= 11.8.0), cuda-drivers (>= 520.61.05)
$ sudo apt show cuda-drivers
Package: cuda-drivers
Version: 520.61.05-1
Priority: optional
Section: multiverse/devel
Maintainer: cudatools <cudatools@nvidia.com>
Installed-Size: 7,168 B
Depends: cuda-drivers-520 (= 520.61.05-1)