Page 1 of 1

Debian 10: Error - Release file not valid yet (for ... days)

Posted: Tue Sep 19, 2023 11:25 am
by ^rooker
[PROBLEM]

Running "apt update" on a virtual machine (Debian 10) that I haven't booted in a long time:
Reading package lists... Done
E: Release file for http://security.debian.org/debian-secur ... /InRelease is not valid yet (invalid for another 547d 18h 41min 49s). Updates for this repository will not be applied.
E: Release file for http://deb.debian.org/debian/dists/bust ... /InRelease is not valid yet (invalid for another 547d 18h 1min 21s). Updates for this repository will not be applied.
E: Release file for http://ftp.tu-graz.ac.at/mirror/debian/ ... /InRelease is not valid yet (invalid for another 446d 18h 42min 1s). Updates for this repository will not be applied.
E: Release file for http://ftp.tu-graz.ac.at/mirror/debian/ ... /InRelease is not valid yet (invalid for another 446d 18h 43min 38s). Updates for this repository will not be applied.
[SOLUTION]

Check the current time/date of the the host. :?
In my case, since the machine has not been used for almost 2 years, the system date was "547 days" in the past.

I'm a big fan of NTP (network time protocol) servers, so I'm doing this to reset date/time:

Code: Select all

$ systemctl stop ntp.service
$ ntpd -gq
$ systemctl start ntp.service
Stops the NTP demon, to allow manual execution with "ntpd -gq", then restart NTP service to keep time synchronized.

Now, "apt update" works flawlessly again :D