Debian apt update: InRelease is not valid yet

Good morning (o;

Just received my first two BPI-R4 boards for testing a frr network lab setup and went with the “bpi-r4_bookworm_6.12.23-main.img” image.

I could install a few packages from apt, but it gives me when I do an “apt update”:

root@bpi-r4:~# apt update
Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:2 http://ftp.de.debian.org/debian bookworm InRelease [151 kB]
Get:3 http://ftp.de.debian.org/debian bookworm-updates InRelease [55.4 kB]
Reading package lists... Done     
E: Release file for http://security.debian.org/debian-security/dists/bookworm-security/InRelease is not valid yet (invalid for another 119d 15h 13min 54s). Updates for this repository will not be applied.
E: Release file for http://ftp.de.debian.org/debian/dists/bookworm/InRelease is not valid yet (invalid for another 71d 17h 19min 32s). Updates for this repository will not be applied.
E: Release file for http://ftp.de.debian.org/debian/dists/bookworm-updates/InRelease is not valid yet (invalid for another 119d 16h 21min 24s). Updates for this repository will not be applied.

Or when I want to install “frr” package I get errors that packages couldn’t be found.

Oddly I didn’t find anything when searching for this errors on google.

thanks in advance richard

I guess your clock is not synchronised.

You could try:

systemctl restart systemd-timesyncd

If that works, maybe it wasn’t enabled in the first place?

What should always work and doesn’t really depend on anything special:

date +"%d %b %Y %T %Z" -s "$(curl -s --head http://google.com | grep '^Date:' | cut -d' ' -f 3-)"

Just to try if it is time related.

1 Like

This is odd…I already tried with “date” command before…and also with your "date snippet no change…

But…systemd-timesyncd wasn’t installed…at least I could install this package…and now apt update works :slight_smile:

32 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Repository 'http://ftp.de.debian.org/debian bookworm InRelease' changed its 'Version' value from '12.10' to '12.11'

muchas gracias (o;

My image should have ntpd installed and when internet connection including dns is working it should set time automaticly.

Don’t see any ntp daemon installed (or I did search wrong ;o):

root@bpi-r4:~# apt list --installed | grep "ntp\|time"

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libpam-runtime/stable,now 1.5.2-6+deb12u1 all [installed]
systemd-timesyncd/stable-security,now 252.38-1~deb12u1 arm64 [installed]

Ok,did not remember i installed manually on my testing devices,but possibly. If timesyncd works keep that way…only noted that because ntp and timesyncd may interfere each other

Well timesyncd has to be installed after flashing and booting the image…

But so far I’m very happy with your great work :slight_smile:

Ordered now some small SSD and a Noctua 5V fan for testing before ordering more BPI-R4 boards (o;