在Ubuntu 20.04中,我发现由于以下错误,我无法更改
有什么办法可以修复这个问题吗?
更新:
看起来 `systemd-timesyncd` 在启动命令上出现了故障。
解决方案
通过使用命令
set-ntp
。# timedatectl set-ntp true
Failed to set ntp: NTP not supported
有什么办法可以修复这个问题吗?
更新:
看起来 `systemd-timesyncd` 在启动命令上出现了故障。
$ systemctl status systemd-timesyncd
● systemd-timesyncd.service
Loaded: masked (Reason: Unit systemd-timesyncd.service is masked.)
Active: inactive (dead)
$ sudo systemctl start systemd-timesyncd
Failed to start systemd-timesyncd.service: Unit systemd-timesyncd.service is masked.
解决方案
通过使用命令
sudo timedatectl set-ntp yes
,问题现已解决。
systemctl status systemd-timesyncd
中。 - Christian Ehrhardttimesyncd
在那里是不可用的。使用chrony
或其他方法。 - x-yuri