Apt update not working

Hello,
I had a Kali 24.04 server. I logged into this server yesterday and ran the apt update command, but it returned an error. I tried solutions found on the internet (such as changing repositories, etc.), but it didn’t fix the issue. After that, I installed a new Kali 24.04 server, but the problem was still not resolved. I also installed a Kali 24.04 server, but I encountered the same issue. When I try to access the repositories from my host machine, I can connect, but I can’t access them from Kali. How can I solve this issue? I can’t use Kali because of this problem.
I cannot acces http://http.kali.org/kali/dists/kali-rolling/InRelease on kali web and ufw disable