几天前,我在笔记本电脑上全新安装了 Ubuntu 18.04 LTS。在安装过程中,我选择了时区作为我的本地时区,即印度加尔各答(印度标准时间)。但是,在启动我的系统后,时间和日期显示的值不正确。
显示值:
日期:2019年8月11日星期日时间:06:21:xx
当时的实际值:
日期:2019年8月10日星期六时间:19:21:xx
准确地说,显示的时间比实际时间提前 11 小时。
在设置 --> 日期和时间中,还启用了自动日期和时间以及自动时区开关。
我在互联网上找到了一些文章,试图分析/解决问题(附上截图)。
跑步 timedatectl
Local time: Sun 2019-08-11 06:27:44 IST
Universal time: Sun 2019-08-11 00:57:44 UTC
RTC time: Sun 2019-08-11 00:57:44
Time zone: Asia/Kolkata (IST, +0530)
System clock synchronized: yes
systemd-timesyncd.service active: yes
RTC in local TZ: no
已安装 ntp
$ sudo dpkg -s ntp | grep Status
Status: install ok installed
跑步 sudo ntpq -p
0.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
1.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
2.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
3.ubuntu.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.000
运行sudo nmap -p123 -sU -P0 localhost
。我认为它会检查 UDP 端口 123 的状态。
Starting Nmap 7.60 ( https://nmap.org ) at 2019-08-11 07:09 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00024s latency).
PORT STATE SERVICE
123/udp open ntp
Nmap done: 1 IP address (1 host up) scanned in 0.33 seconds
我需要执行哪些后续步骤来解决此问题?
看起来您的 BIOS 时钟设置为 UTC+11:00(根据 输出中的 RTC 时间timedatectl
)。Ubuntu(一般的类 Unix 系统)默认将 BIOS 时钟设置为 UTC 时间。
启动时进入 BIOS 并将您的 BIOS 时钟设置为 UTC 时间(即比本地时间晚 5.5 小时)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句