In Ubuntu 20.04, I see that I can not change the set-ntp
due to the following error.
# timedatectl set-ntp true
Failed to set ntp: NTP not supported
Any way to fix that?
UPDATE:
It seems that systemd-timesyncd
fails with the start command.
$ 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.
Solution
Using the command sudo timedatectl set-ntp yes
the problem is now fixed.
systemctl status systemd-timesyncd
timesyncd
is not available there. Usechrony
or something.