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

相关推荐
Trouvaille ~16 小时前
【Linux】UDP Socket编程实战(一):Echo Server从零到一
linux·运维·服务器·网络·c++·websocket·udp
嵌入小生00716 小时前
Shell | 命令、编程及Linux操作系统的基本概念
linux·运维·服务器
-Try hard-17 小时前
Linuv软件编程 | Shell命令
linux·运维·服务器
释怀不想释怀17 小时前
Linux快捷键,软件安装启动
linux·运维·服务器
zhengfei61117 小时前
自动化快速评估工具
运维·自动化
Hello World . .17 小时前
Linux:软件编程
linux·运维·服务器·vim
老师用之于民18 小时前
【DAY21】Linux软件编程基础&Shell 命令、脚本及系统管理实操
linux·运维·chrome·经验分享·笔记·ubuntu
路由侠内网穿透.18 小时前
本地部署代码托管解决方案 Gitea 并实现外部访问( Windows 版本)
运维·服务器·网络协议·gitea
江畔何人初19 小时前
pod的内部结构
linux·运维·云原生·容器·kubernetes
齐鲁大虾19 小时前
Linux下用什么编程语言方便开发B/S架构程序
linux·运维·架构