Timesync not working

PiAware 10.2

Looks like time sync is broken

pi@piaware:~ $ sudo timedatectl set-ntp 1
Failed to set ntp: NTP not supported

pi@piaware:~ $ ntpq -p
     remote                                   refid      st t when poll reach   delay   offset   jitter
=======================================================================================================
 0.debian.pool.ntp.org                   .POOL.          16 p    -  256    0   0.0000   0.0000   0.0019
 1.debian.pool.ntp.org                   .POOL.          16 p    -  256    0   0.0000   0.0000   0.0019
 2.debian.pool.ntp.org                   .POOL.          16 p    -  256    0   0.0000   0.0000   0.0019
 3.debian.pool.ntp.org                   .POOL.          16 p    -  256    0   0.0000   0.0000   0.0019
 time.cloudflare.com                     .INIT.          16 u    - 1024    0   0.0000   0.0000   0.0019
 time.cloudflare.com                     .INIT.          16 u    - 1024    0   0.0000   0.0000   0.0019
 time.cloudflare.com                     .INIT.          16 u    - 1024    0   0.0000   0.0000   0.0019
 time.cloudflare.com                     .INIT.          16 u    - 1024    0   0.0000   0.0000   0.0019

NTP was superceded by the timesyncd service, so suggest you try this, as it’s working for me:

Ensure that you have your timezone correctly set with:

  • timedatectl set-timezone as appropriate to your location
  • date -s “2 OCT 2006 18:00:00” - using the correct date/time!!
  • apt purge ntp -y (this removes the NTP service; if installed - if not installed, this will just throw an error).
  • apt install systemd-timesyncd -y (may already be installed)
  • edit /etc/systemd/timesyncd.conf to ensure that time servers appropriate to location are added (I use the debian.pool.ntp.org set as fallback
  • systemctl start systemd-timesyncd
  • timedatectl - check to see if service is running and sync’d