“chronyc waitsync”需要很长时间,我不知道命令是否超时或者只是需要很长时间才能同步。但是,重新安装 chrony 可以解决该问题。您对可能出现的问题有什么想法吗?
编辑
以下是重新安装之前和之后systemctl status chronyd
的输出:chronyc tracking
chronyc sources
前
ubuntu@ubuntu:~$ systemctl status chronyd
● chronyd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
ubuntu@ubuntu:~$ chronyc tracking
Reference ID : 0.0.0.0 ()
Stratum : 0
Ref time (UTC) : Thu Jan 1 00:00:00 1970
System time : 0.000000000 seconds fast of NTP time
Last offset : +0.000000000 seconds
RMS offset : 0.000000000 seconds
Frequency : 0.000 ppm fast
Residual freq : +0.000 ppm
Skew : 0.000 ppm
Root delay : 0.000000 seconds
Root dispersion : 0.000000 seconds
Update interval : 0.0 seconds
Leap status : Not synchronised
ubuntu@ubuntu:~$ chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^+ corona.gora.si 2 6 0 16 +4687ns[ +427us] +/- 5212us
^* 2.pool.chrony.eu 1 6 0 16 +45us[ +467us] +/- 3055us
^- 3.pool.chrony.eu 2 6 0 16 +418us[ +418us] +/- 4080us
^- guitarvoodoolab.si 2 6 0 15 -388us[ -388us] +/- 9073us
后
ubuntu@ubuntu:~$ systemctl status chronyd
● chronyd.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
ubuntu@ubuntu:~$ chronyc tracking
Reference ID : 84.255.251.188 (2.pool.chrony.eu)
Stratum : 2
Ref time (UTC) : Thu Jul 8 12:44:26 2021
System time : 0.000000130 seconds slow of NTP time
Last offset : +0.000447990 seconds
RMS offset : 0.000447990 seconds
Frequency : 0.000 ppm fast
Residual freq : +41.937 ppm
Skew : 1000000.000 ppm
Root delay : 0.004340 seconds
Root dispersion : 40.276096 seconds
Update interval : 2.0 seconds
Leap status : Normal
ubuntu@ubuntu:~$ chronyc sources
210 Number of sources = 4
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^- stanjel.ung.si 2 6 17 52 +4460us[+4908us] +/- 67ms
^* 2.pool.chrony.eu 1 6 17 50 -31us[ +417us] +/- 2234us
^+ 3.pool.chrony.eu 2 6 17 52 +304us[ +752us] +/- 3084us
^- cad.lecad.fs.uni-lj.si 2 6 17 52 -834us[ -386us] +/- 22ms
PS:我正在尝试从 chroot 创建 Raspberry PI 映像。这就是为什么重新安装是一个问题 - 因为我希望图像能够工作而不做任何额外的工作(我不想每次刷新到 SD 卡后都重新安装 chrony。)