if sudo dpkg reconfigure -a fixes the error, I expect it’s running on a rPi4 with date issues. Please look at:
sudo dpkg reconfigure -a