报错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

相关推荐
每天更新19 分钟前
linux内核时间&定时器&延时
linux·运维·服务器
snpgroupcn21 分钟前
SAP S/4HANA迁移方法选哪种?选择性数据转换是否合适?企业需要考虑哪些关键因素!
运维·数据库·云计算
杜子不疼.23 分钟前
【Linux】冯 • 诺依曼体系结构
linux·运维·服务器
门前灯28 分钟前
Linux系统之msgexec 命令详解
linux·运维·服务器·msgexec
東雪蓮☆2 小时前
MySQL 全量 + 增量备份脚本(RPM 安装)实践与问题解析
linux·运维·mysql
妮妮喔妮2 小时前
docker-compose端口冲突问题
运维·docker·容器
一只大头猿2 小时前
FinalShell 服务器远程连接工具
运维·服务器
kjl5365666 小时前
docker命令
运维·docker·容器
野熊佩骑6 小时前
CentOS7二进制安装包方式部署K8S集群之ETCD集群部署
运维·数据库·云原生·容器·kubernetes·centos·etcd
小白银子10 小时前
零基础从头教学Linux(Day 45)
linux·运维·junit·openresty