如何迫使Ubuntu的系统时钟从时间服务器中提取和更新时间?
根据Ubuntu Wiki,我不再支持ntpdate命令(至少在Ubuntu 16.04中),我已经尝试过使用timedatectl作为命令。这意味着已经回答的这个问题对LTS 16.04不再有用。
发布于 2017-03-13 21:55:50
ntpdate在ntpdate包中,您可以通过sudo apt install ntpdate安装它。那就读man ntpdate吧。
正如注释中提到的,需要安装包ntp,而不是Ubuntu 18.04+中的ntpdate。
记得让ntp在运行ntpdate之前停止:
sudo /etc/init.d/ntp stop然后启动ntp:
sudo /etc/init.d/ntp starthttps://askubuntu.com/questions/892707
复制相似问题