I had the same problem
If you go here: Index of linux/ubuntu/dists/jammy/
then go to /pool/stable
then follow the process of downloading with a package in this guide https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
the problem should be solved