deepin 20 BETA时钟同步功能无法使用
Tofloor
poster avatar
ecjl
deepin
2020-06-19 17:01
Author
deepin 20 BETA,无双系统。

    通过sudo journalctl -b -a | grep timesyncd命令检查发现持续报“systemd-timesyncd[289]: Timed out waiting for reply from 78.46.102.180:123 (X.debian.pool.ntp.org).”错误信息,怀疑到时钟同步服务器是否网络存在问题,
    使用nc -zvu 0.debian.pool.ntp.org 123检测到时钟服务器网络及端口状态反馈“Connection to 0.debian.pool.ntp.org 123 port [udp/ntp] succeeded!”说明到时钟服务器网络正常。但时钟同步一直报Timed out waiting for reply from 的错误。
    使用 timedatectl查看相关信息,发现未找到“Network time on: yes”提示。
   
检查同步服务状态systemctl status systemd-timesyncd



    使用timedatectl set-ntp true,报“Failed to set ntp:连接超时”错误
不知道是RP问题还是什么具体原因,本地时钟一直无法同步到准确时间。求教各位高手,如何解决该问题。





Reply Favorite View the author
All Replies
avatar
jingle
deepin
2020-06-19 19:06
#1
一样的报错  http://2.debian.pool.ntp.org/ 访问呢
Reply View the author
avatar
ecjl
deepin
2020-06-19 19:55
#2
本帖最后由 ecjl 于 2020-6-19 12:24 编辑
https://bbs.deepin.org/post/196116
一样的报错  http://2.debian.pool.ntp.org/ 访问呢

0-3.debian.pool.ntp.org都是报相同的错误,nc测试到这些时钟服务器网络及端口都正常。
http://2.debian.pool.ntp.org/访问正常。

Reply View the author
avatar
ecjl
deepin
2020-06-19 20:29
#3
补充下报错信息



Reply View the author
avatar
ecjl
deepin
2020-06-19 22:38
#4
问题已自己解决。解决办法如下:
sudo vim /etc/systemd/timesyncd.conf
将配置内容修改为
[Time]
NTP=0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
修改NTP指向0-3.pool.ntp.org,保存退出,重启时钟同步服务systemctl start systemd-timesyncd,本地时钟得以校正。
关闭时钟同步服务,修改时间为错误的时间,重启时钟同步服务后,本地时钟校正为正确时间,问题解决。
Reply View the author