clock not synced with ntp sometimes breaks apt update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Using https:/
Apt reports error: "Release file is not yet valid"
Looking at the logs, it showed clock behind by 4 days. Checking timedatectl show, indicates
Timezone=
LocalRTC=no
CanNTP=yes
NTP=yes
NTPSynchronized=no
journalctl showed errors connecting to ntp.ubuntu.com.
Can subiquity check the status of timedatectl show, and if NTPSynchronized is not "yes" prompt user for NTP server? Not sure how feasible it is for subiquity to know if the time and date are correct without NTP or talking to some other server so I think allowing users to configure NTP with alternative servers is the best option here.
I've not recreated on VM, but I suspect that if you disable systemd-timesyncd, set the clock to something a few days back, then attempt and install it should recreate the apt update failure.