RPi 2B通过ntp更新系统时间

又买了个TF卡,装了Raspbian, 发现系统时间时2015年11月22号,07:30:46, 但实际上当前时间是2016-01-12。同时发现ntp service也是在运行的,那为什么时间不能正常更新呢。

找开/etc/ntp.conf, 发现ntp server使用的是0.debian.pool.ntp.org, 1.debian.pool.ntp.org, 2.debian.pool.ntp.org, 3.debian.pool.ntp.org

难道这些服务器都无法访问?

幸好还有一台PC安装有ubuntu系统可用,查看了一下ntp所有用server(/etc/default/ntpdate, 发现所使用的服务器为ntp.ubuntu.com. 在RPi 2B上也试试用这个服务器:

$ service ntp stop
$ ntpdate ntp.ubuntu.com

如果系统时间不更新,可以试试下面这种方法。

发表评论

电子邮件地址不会被公开。 必填项已用*标注