When attempting to configure the system to automatically synchronize the time with a remote time server using NTP protocol in the “time server sync” of “System Time” module of Webmin (which also used by Virtualmin and Cloudmin), the following error occurred when sync is performed:

NTP time synchronization failed : Missing ntpdate and sntp commands

Missing ntpdate and sntp commands

The error happens because the ntp package and its dependencies are not yet installed on the system. Thus, to resolve the time sync failure issue, simply install the ntp package and all its dependencies.

In CentOS or RHEL, run:

sudo yum install ntp

In Ubuntu, run:

sudo apt-get install ntp