当我试图得到这个:
# systemctl enable systemd-timesyncd.service
Failed to enable unit: Unit file systemd-timesyncd.service does not exist.
已安装NTP:
# apt-get install ntp
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntp is already the newest version (1:4.2.8p12+dfsg-3ubuntu4.20.04.1).
另外:
# timedatectl set-ntp true
Failed to set ntp: NTP not supported
发布于 2021-08-09 06:21:26
正如@Christian Ehrhard所写的。我安装了“”,并将本地NTP服务器设置为目标。在重新启动服务之后,它运行得很好。
sudo apt install systemd-timesyncd
sudo nano /etc/systemd/timesyncd.conf
设置NTP=
systemctl restart systemd-timesyncd
结果:
System clock synchronized: yes
NTP service: active
进一步帮助这里
也许可以研究去同步问题TimeDateCTL博客:修复NTP同步
https://askubuntu.com/questions/1338764
复制相似问题