I've got the error in the docker container php:7.2.20-cli
E: Release file for http://deb.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 9h 1min 57s). Updates for this repository will not be applied.
after running:
apt-get -o Acquire::Check-Valid-Until=false update
Here is a full log:
Step 2/15 : FROM php:7.2.20-cli
---> 5656cb179dc0
Step 3/15 : MAINTAINER Nick Jones <nick@nicksays.co.uk>
---> Using cache
---> 5c856c7b88d5
Step 4/15 : RUN apt-get -o Acquire::Check-Valid-Until=false update
---> Running in 145c283ee52d
Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:2 http://security-cdn.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
Get:5 http://security-cdn.debian.org/debian-security buster/updates/main amd64 Packages [176 kB]
Reading package lists...
E: Release file for http://deb.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 9h 1min 57s). Updates for this repository will not be applied.
I assume that's not about a certain container but about Debian and repositories.
As you see I used some workaround:
How to work around "Release file expired" problem on a local mirror
...but it doesn't work.
So, what's wrong?
-o Acquire::Check-Valid-Until=false
there. – Kirby Feb 12 '20 at 09:55