目前,我在我的桌面上使用Arch作为操作系统。当我看我的时间,是22:38,时间显然是17:08左右。当我调用命令timedatectl时,我得到:
Local time: Wed 2017-01-11 22:37:43 IST
Universal time: Wed 2017-01-11 17:07:43 UTC
RTC time: Wed 2017-01-11 17:07:41
Time zone: Asia/Kolkata (IST, +0530)
Network time on: yes
NTP synchronized: no
RTC in local TZ: no当我运行sudo systemctl status systemd-timesyncd时,我得到:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2017-01-11 00:49:36 IST; 1 day 1h ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 31123 (systemd-timesyn)
Status: "Idle."
Tasks: 2 (limit: 4915)
CGroup: /system.slice/systemd-timesyncd.service
└─31123 /usr/lib/systemd/systemd-timesyncd
Jan 12 01:39:42 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 5.9.78.71:123 (1.arch.pool.ntp.org).
Jan 12 01:39:53 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 192.53.103.108:123 (1.arch.pool.ntp.org).
Jan 12 01:40:03 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 139.59.19.184:123 (2.arch.pool.ntp.org).
Jan 12 01:40:13 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 139.59.45.40:123 (2.arch.pool.ntp.org).
Jan 12 01:40:24 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 123.108.200.124:123 (2.arch.pool.ntp.org).
Jan 12 01:40:34 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 125.62.193.121:123 (2.arch.pool.ntp.org).
Jan 12 01:40:44 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 139.59.45.40:123 (3.arch.pool.ntp.org).
Jan 12 01:40:55 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 123.108.200.124:123 (3.arch.pool.ntp.org).
Jan 12 01:41:05 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 139.59.19.184:123 (3.arch.pool.ntp.org).
Jan 12 01:41:15 sharan-pc systemd-timesyncd[31123]: Timed out waiting for reply from 125.62.193.121:123 (3.arch.pool.ntp.org).我还尝试了命令traceroute -U -p ntp pool.ntp.org,我得到:
traceroute to pool.ntp.org (139.59.19.184), 30 hops max, 60 byte packets
1 10.114.1.1 (10.114.1.1) 1.713 ms 2.020 ms 2.343 ms
2 10.10.2.41 (10.10.2.41) 1.123 ms 2.580 ms 2.836 ms
3 cyberoam.iisc.ac.in (10.10.1.98) 0.553 ms 0.806 ms 0.813 ms
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *我该怎么解决这个问题?我甚至试过timedatectl set-ntp true。我应该重新启动才能生效吗?
发布于 2017-01-11 13:20:03
时区对你的位置正确吗?并且您应该通过timedatectl设置时区来设置正确的时区。
date命令显示当前位置的系统时间。
ntpdate将为您的时区修正时间。
例如,使用apple服务器将产生如下结果:
sudo ntpdate time.apple.com
11 Jan 19:18:28 ntpdate[1052]: adjust time server 17.253.38.125 offset 0.004981 sechttps://unix.stackexchange.com/questions/336566
复制相似问题