Only if you use the runfile, but that breaks yet other packages that specify 'cuda' as an apt dependency.
Your 'cuda' packages should use '>=' not '=='
e.g. 'cuda-12' should depend on nvidia>=525 NOT nvidia==525
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)