Podman 4.0.3 users on macOS might face the following strange error when building an image:
apt-get update ... E: Release file for http://security.debian.org/debian-security/dists/bullseye-security/InRelease is not valid yet (invalid for another 3h 1min 9s). Updates for this repository will not be applied. E: Release file for http://deb.debian.org/debian/dists/bullseye-updates/InRelease is not valid yet (invalid for another 7h 24min 41s). Updates for this repository will not be applied.
The problem is caused by the not synced clock in Podman VM. This might happen due to the hibernation of the notebook.
The quick fix of the problem is to restart Podman’s VM:
podman machine stop podman machine start