Dependences error installing CUDA 11.7.0-1

I’m trying to install drivers 525.60-13-1 and CUDA 11.7.0-1 to compile OPENCV with CUDA.
Due to the removal of some texture support, I had to uninstall CUDA 12.0 as I can’t compile OPENCV with it.
I have installed the drivers, but I have a dependency problem when installing CUDA:

The following packages have unmet dependencies:
cuda-drivers-525 : Depends: nvidia-settings (>= 525.60.13) but not installable
nvidia-kernel-common-525 : Depends: libc6 (>= 2.34) but 2.31-13+deb11u5 will be installed
nvidia-modprobe : Depends: libc6 (>= 2.34) but 2.31-13+deb11u5 will be installed
E: Could not fix problems, you have broken packages on hold.

Tried sudo apt-get update --fix-missing and sudo apt-get install -f, but error continues

Tried downgrading driver to 515, 510,470 and 450 versions, but still not work

EDIT:
libc6 updated manually. Now, I only have this error:

The following packages have unmet dependencies:
cuda-drivers-525 : Depends: nvidia-settings (>= 525.60.13) but not installable
E: Unable to fix problems, you have broken packages on hold.

NVIDIA-SMI INFO :NVIDIA-SMI 515.86.01 Driver Version: 515.86.01 CUDA Version: 11.7