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

相关推荐
xingfujie1 天前
运维实战攻略
运维
道清茗1 天前
【RH294知识点汇总】第 9 章 《 自动执行 Linux 管理任务 》常见问题
linux·运维·服务器
北方的流星1 天前
华三路由器NAT配置
运维·网络·华三
wj3055853781 天前
Codex + Git 开发环境配置指南(WSL版)
linux·运维·git
星马梦缘1 天前
如何切换window-ubuntu双系统【方案二】
linux·运维·ubuntu
2501_927283581 天前
荣联汇智助力天津艺虹打造“软硬一体”智慧工厂,全流程自动化引领印刷包装行业数智变革
大数据·运维·数据仓库·人工智能·低代码·自动化
HXDGCL1 天前
矩形环形导轨:自动化循环线的核心运动单元解析
运维·算法·自动化
Jinkxs1 天前
LoadBalancer- 主流负载均衡工具盘点:Nginx / Haproxy / Keepalived 基础介绍
运维·nginx·负载均衡
CQU_JIAKE1 天前
4.28~4.30【Q】
linux·运维·服务器
先知后行。1 天前
Linux 设备模型和platform平台
linux·运维·服务器