Ubuntu refuse to install drivers for cuda-12.5

i successfully installed cuda 12.5 but i can’t install the right drivers it always installs the drivers for cuda12.6
It seems that nvidia always wants to install the latest available drivers instead of installing the desired ones, same problem with cudnn

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Jun__6_02:18:23_PDT_2024
Cuda compilation tools, release 12.5, V12.5.82
Build cuda_12.5.r12.5/compiler.34385749_0
$ nvidia-smi
Wed Oct 2 05:38:56 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3080 Off | 00000000:01:00.0 On | N/A |
| 0% 45C P8 30W / 370W | 189MiB / 10240MiB | 6% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 3141 G /usr/lib/xorg/Xorg 56MiB |
| 0 N/A N/A 3291 G /usr/bin/gnome-shell 117MiB |
±----------------------------------------------------------------------------------------+
it’s already been a week since I tried to do this in ubuntu 22.04, I deleted the operating system and reinstalled from 0, the result is the same, I don’t understand why the nvidia developers are making fun of customers like this

sudo apt-get -y install cudnn9-cuda-12-5
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
cudnn9-cuda-12-5 : Depends: libcudnn9-static-cuda-12 (= 9.2.1.18-1) but 9.4.0.58-1 is to be installed