当我尝试时我得到这个:
# systemctl enable systemd-timesyncd.service
Failed to enable unit: Unit file systemd-timesyncd.service does not exist.
Run Code Online (Sandbox Code Playgroud)
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).
Run Code Online (Sandbox Code Playgroud)
还:
# timedatectl set-ntp true
Failed to set ntp: NTP not supported
Run Code Online (Sandbox Code Playgroud)