Failed to verify gcc version

hello erybody, i dowload the cuda file: cuda_11.7.1_515.65.01_linux.run on the page with 3.25gb
i install this file and it error with messenger:
Failed to verify gcc version. See log at /var/log/cuda-installer.log for details.
it means that my gcc version don’t suitable with this driver ?
i use gcc --version to check and it appears:
gcc (Debian 12.2.0-1) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
i use command: sudo apt install -y nvidia-driver nvidia-cuda-toolkit
and it only install driver 470.xx