Background
I want to build (not run) a program using CUDA 11.3, on an Ubuntu 20.04 machine (a Travis CI machine actually). To do this, I want to install, among other things, the cuda-runtime-11-3 package (which becomes available when you add an NVIDIA apt repository).
Now, this works for me with CUDA 11.4:
CUDA_APT="11.4"
sudo apt install -y cuda-runtime-${CUDA_APT} cuda-toolkit-${CUDA_APT} cuda-compiler-${CUDA_APT};
but with 11.3, I get:
The following packages have unmet dependencies:
cuda-runtime-11-3 : Depends: cuda-drivers (>= 465.19.01) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Actual question
Can I force an installation of the package despite the dependencies not being installed?
Alternatively, if there's another solution to this conundrum, that would be a good answer too.