How to fix error: The NTP Socket Is In Use, Exiting
# ntpdate pool.ntp.org 19 Mar 14:55:02 ntpdate[21718]: the NTP socket is in use, exiting
It’s can happen, because ntp service is running. Depends of your Linux version you should stop ntp service and rerun ntpdate. Than start again ntp service.
$ sudo service ntp stop Stopping NTP server: ntpd. $ sudo ntpdate pool.ntp.org 19 Mar 14:57:56 ntpdate[21925]: adjust time server xx.xx.xx.xx offset -0.002766 sec $ sudo service ntp start Starting NTP server: ntpd.
Or use following command, it will use a different port:
# ntpdate -u pool.ntp.org