The other day I was doing some work with Docker, and I started hitting this error: E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 1d 14h 9min 37s). Updates for this repository will not be applied.
To give a bit more context, this was when I was working on an Ubuntu container on my Windows machine.
The catch was I'd just recently flown across a few timezones, and my local clock was out of whack. I set the timezone and time clock to auto-adjust, and then restarted Docker Desktop. After waiting for it to come up again, I reran my build, and presto - it worked again!
And now, you too know how to fix this - or at least have one possible solution to try out.
Happy cross-timezone development!
Tags: docker