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
Share:
6,140

Related videos on Youtube

Eliter
Author by

Eliter

Updated on September 18, 2022

Comments

  • Eliter
    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 using timedatectl as a command. That means that this question already answered is no longer useful for LTS 16.04.

    • M. Becerra
      M. Becerra over 7 years
      Why does timedatectl --adjust-system-clock not resynchronize satisfactorily?
    • Eliter
      Eliter over 7 years
      M. Becerra, I didn't know that was a solution
  • Eliter
    Eliter over 7 years
    Why did they remove it then?
  • hanshenrik
    hanshenrik about 4 years
    on Xubuntu 18.04 i had to install ntp instead of ntpdate - ntpdate is still a package, but it doesn't install the ntp service, but the package named ntp installs the ntp service :o