Это на HypriotOS (Debian GNU / Linux 10), работающем на RaPi.
$ timedatectl show-timesync
Failed to parse bus message: Connection timed out
Затем сделайте это с помощью sudo
:
$ sudo timedatectl timesync-status
Failed to query server: Failed to activate service 'org.freedesktop.timesync1': timed out (service_start_timeout=25000ms)
Затем отобразите статус timedatectl
показывает, что «Служба NTP: неактивна»
$ timedatectl status
Local time: Sat 2020-03-07 21:03:51 CET
Universal time: Sat 2020-03-07 20:03:51 UTC
RTC time: n/a
Time zone: Europe/Zurich (CET, +0100)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
Как правильно это исправить? Или сначала, может быть, откуда брать информацию для анализа?
Я уже установил правильные серверы NTP в /etc/systemd/timesyncd.conf
, а затем выполнил $ sudo timedatectl set-ntp false
, за которым следует $ sudo timedatectl set-ntp true
.
Обновление 2020-03-23
Перезапуск timesyncd
, как предложено, не работает - это не так там.
$ systemctl restart timesyncd
Failed to restart timesyncd.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status timesyncd.service' for details.
$ sudo systemctl restart timesyncd
Failed to restart timesyncd.service: Unit timesyncd.service not found.
$ systemctl status timesyncd.service
Unit timesyncd.service could not be found.