报错Failed to set ntp: NTP not supported
在安装软件时出现这个报错,询问Ai排查很久才解决
这个错误信息 Failed to set ntp: NTP not supported 在 Ubuntu 系统中出现,通常意味着系统无法使用 Network Time Protocol (NTP) 来同步时间
禁用NTP
sudo systemctl stop ntp
sudo systemctl disable ntp
`
禁用chrony
sudo systemctl stop chronyd
sudo systemctl disable chronyd
禁用ntpsec
sudo systemctl stop ntpsec
sudo systemctl disable ntpsec
使用systemd-timesyncd
apt install systemd-timesyncd
sudo systemctl enable --now systemd-timesyncd
配置
vi /etc/systemd/timesyncd.conf
[Time]
NTP=pool.ntp.org
重启
sudo systemctl restart systemd-timesyncd