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

相关推荐
ZYMFZ3 小时前
Linux 防火墙 Firewalld
linux·运维·服务器
yzx9910138 小时前
生活在数字世界:一份人人都能看懂的网络安全生存指南
运维·开发语言·网络·人工智能·自动化
橙*^O^*安10 小时前
Go 语言基础:变量与常量
运维·开发语言·后端·golang·kubernetes
阿拉斯加大闸蟹11 小时前
基于RDMA 通信的可负载均衡高性能服务架构
运维·架构·负载均衡
不是吧这都有重名12 小时前
为什么ubuntu大文件拷贝会先快后慢?
linux·运维·ubuntu
sunshine-sm12 小时前
CentOS Steam 9安装 Redis
linux·运维·服务器·redis·centos
棒棒的唐13 小时前
armbian平台ubuntu环境下telnet安装及启动,给pantherX2增加一个应急通道
linux·运维·armbian·telnetd
纳切威13 小时前
CentOS 7部署Zabbix5.0
linux·运维·centos·zabbix
sunshine-sm13 小时前
CentOS Steam 9安装 MySQL 8
linux·运维·服务器·数据库·mysql·centos·centos stream