ntpdate command not found in MacOS Mojave

后端 未结 2 2266
萌比男神i
萌比男神i 2021-02-14 13:37

I have a Bash script who update the time of my mac but since the update of Mojave the command isn\'t found:

ntpdate -u time.apple.com

return :

相关标签:
2条回答
  • 2021-02-14 14:26

    It's a duplicate. Please check this stackoverflow question.

    TL;DR use sudo sntp -sS time.apple.com instead.

    0 讨论(0)
  • 2021-02-14 14:30

    For anyone trying to do this because their vm cannot connect to the update server while trying to install macos on a virtual machine, I switched my network adapter from NAT to bridged and the issue was resolved.

    0 讨论(0)
提交回复
热议问题