ntpdate command not found ? MacOS MOJAVE

匿名 (未验证) 提交于 2019-12-03 01:34:02

问题:

Hello I have a bash script who update the time of my mac but since the update of Majove the command isn't found:

ntpdate -u time.apple.com 

return :

ntpdate: command not found 

Where I going wrong ?

Thanks to your reply

回答1:

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

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



回答2:

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.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!