Ubuntu: Force clock to update using ntp

sudo service ntp stop
sudo ntpd -gq
sudo service ntp start

Further editing of /etc/ntp.conf can be useful in case you want to add other servers to the ntp pool and other various settings.

You might also want to allow the UDP traffic on the respective port.

sudo ufw allow 123/udp

Leave a Reply