
Ich habe so viele verschiedene Dinge probiert, wie die Installation von ntpq oder anderen Sachen, aber nichts funktioniert.
Ich kann es nicht auf „Ja“ ändern. Ich hoffe, dass mir hier jemand helfen kann.
Ich hatte Ubuntu 16.04 Dies ist meine Terminalausgabe des Befehls timedatectl
Local time: Tue 2017-06-27 20:52:45 CEST
Universal time: Tue 2017-06-27 18:52:45 UTC
RTC time: n/a
Time zone: Europe/Berlin (CEST, +0200)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no
Habe auch dieses Tutorial ausprobiert: https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04
Aber wenn ich sudo timedatectl set-ntp on
es mache, ändert sich nur die Netzwerkzeit ein: ja/nein.
Auch NTP installiert. Aber vom Befehl sudo ntpq -p
bekomme ich diesen Fehler
ntpq: read: Connection refused
Antwort1
Wenn die Uhr zu stark desynchronisiert ist (mehr als 3 Sekunden?), wird sie nicht automatisch aktualisiert. So erzwingen Sie dies manuell:
sudo service ntp stop
sudo ntpd -gq
← hier können Sie sehen, dass es synchronisiert wird
sudo service ntp start
Bestätigen Sie, dass alles in Ordnung ist
timedatectl
Bessere Erklärung und alle AnerkennungHier
Antwort2
Nach der Installation von NTP
sudo apt install ntp
in der Ausgabe vontimedatectl
NTP synchronized: yes
die Uhrzeit wird sofort automatisch synchronisiert.