[SOLVED] Installation hangs on Raspi 4 due to missing NTP connection

After powering up the Raspi with an new OpenHAB image on the SD card, installation process takes endless, and hangs on: " Waiting for dpkg/apt to get ready…"
After some trials installation may proceed but ends with the error message:
“[openHABian] Installing git package… FAILED”
“[openHABian] Initial setup exiting with an error!”

When trying
sudo apt-get install git
this will fail with a message like
“…/buster/InRelease is not valid yet (invalid for another 506d 20h 31min 28s). Updates for this repository will not be applied.”

Root cause:
System clock of Raspi is running on a date in the past because it could not reach the NTP-server for time sync. This happend because the new IP-address for the Raspberri assigned by the router (Fritzbox) had restricted internet access.

Ensure full internet access for the Raspberri during set up (router security) and repeate the complete set up from the SD-card with the latest OH image.

1 Like

I think the documentation for openHABian needs to be updated to clarify that an Internet connection is needed for this product. It is possible to install OpenHAB and an addons package for offline use but that option is not included in openHABian.

EDIT: Issue filed.