How do I force Ubuntu to resynchronize the system time?
6,140
ntpdate
is in the ntpdate
package, which you could install via sudo apt install ntpdate
. Then read man ntpdate
.
As mentioned in the comments, one needs to install the package ntp
instead of ntpdate
in Ubuntu 18.04+.
Remember to tell ntp
to stop before running ntpdate
:
sudo /etc/init.d/ntp stop
and start ntp
afterwards:
sudo /etc/init.d/ntp start
Related videos on Youtube
Author by
Eliter
Updated on September 18, 2022Comments
-
Eliter almost 2 years
How can I force Ubuntu's system clock to pull and update time from a time server?
According to Ubuntu Wiki no longer supports
ntpdate
command (at least in Ubuntu Desktop LTS 16.04), and I've already tried usingtimedatectl
as a command. That means that this question already answered is no longer useful for LTS 16.04.-
M. Becerra over 7 yearsWhy does
timedatectl --adjust-system-clock
not resynchronize satisfactorily? -
Eliter over 7 yearsM. Becerra, I didn't know that was a solution
-
-
Eliter over 7 yearsWhy did they remove it then?
-
hanshenrik about 4 yearson Xubuntu 18.04 i had to install
ntp
instead ofntpdate
-ntpdate
is still a package, but it doesn't install thentp
service, but the package namedntp
installs the ntp service :o