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

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1482
Joined: Fri Aug 29, 2003 8:39 pm

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

Post 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
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply