Ntpdate command not found Vejle




Date: 2017-02-20 18:41

My clock is off , so I would like to synchronize it using ntpdate. I tried several different NTP servers, but for some reason I always get the following error message:

How to force a clock update using ntp? - Ask Ubuntu

.I thought that maybe the strata from the NTP servers are too high. They aren't, though. Let's see a little more debugging info:

Linux - ntpdate command not found [only when using with

Your hosting provider is blocking ntp packets. This heavy handed approach has been implemented by some ISPs in response to the DDoS attacks. You can see that ntpdate is sending the packets fron the ntpdate -vd :

Ntpdate在cron里无法更新时间的问题 - xuyaqun的专栏 - 博客频道

But since ntpd doesn't work for me either, the problem lies elsewhere. And I find that I would prefer not having to install any extra packages just for synchronizing the clock. ntpdate comes pre-installed with Ubuntu, and it should work just fine. So I uninstalled the ntp package again.

I would contact your ISP and ask if they are blocking external ntp requests and if they have a local server that you can use for time sync.

.and tried using the ntpd daemon instead of the ntpdate utility. It won't sync my time either the daemon starts fine, but my clock remains off. I even tried using the exact /etc/ from the accepted answer in the latter post, and restarting the daemon. No go. Anyway, I don't want to use the daemon. I am perfectly aware that ntpdate is considered "deprecated", and it is advised to use ntpd -q instead. Also see here:

Even with the -u option, which tells ntpdate to use an unprivileged port for syncing (instead of port 678 ) which is certainly not blocked from my work place:

No matter whether an NTP server HOSTNAME figures in /etc/ , and no matter whether the ntpd service is running or not, whenever I run sudo ntpdate -u HOSTNAME , I get no server suitable for synchronization found. Same thing when the ntpd service is not running and I omit the -u option. When the ntpd service is running and I omit the -u option, I instead get the NTP socket is in use, exiting.

There are a couple more obscure possibilities but it is tough to rule them out since you have not posted any logs from syslog.