[Calendar] [已解决]电脑没办法从网络校时,时间不准确
Tofloor
poster avatar
zsyonlyzero
deepin
2022-03-29 18:17
Author

 

自动同步配置开关无法打开。

 

 

下一步我该如何排查或者处理呢?

按照大佬方案 

sudo apt install systemd-timesyncd --reinstall

 

Reply Favorite View the author
All Replies
avatar
deepin-superuser
deepin
2022-03-29 18:23
#1

我和你唯一的区别就是我的时区是上海,你的是北京

image.png

Reply View the author
avatar
zsyonlyzero
deepin
2022-03-29 18:24
#2
deepin-superuser

我和你唯一的区别就是我的时区是上海,你的是北京

image.png

国内现在用的都是东八区,这个应该不影响,你的NTP是active状态,证明是启用的。我的确实N/A这个好像不太对吧

Reply View the author
avatar
beavailable
deepin
2022-03-29 21:01
#3

运行 systemctl status systemd-timesyncd.service看看什么情况。

Reply View the author
avatar
忘记、过去
deepin
2022-03-29 21:26
#4
sudo apt install ntp
systemctl enable ntp
systenctl start ntp

安装下 ntp 试试看?

Reply View the author
avatar
beavailable
deepin
2022-03-29 21:42
#5
忘记、过去
sudo apt install ntp
systemctl enable ntp
systenctl start ntp

安装下 ntp 试试看?

From https://wiki.debian.org/NTP: systemd-timesyncd acts as a NTP client even when no network is available. This is enough to synchronize a system. NTP deamon is required only when a NTP server is required.

Reply View the author
avatar
zsyonlyzero
deepin
2022-03-30 03:00
#6
beavailable

运行 systemctl status systemd-timesyncd.service看看什么情况。

Unit systemd-timesyncd.service could not be found.

Reply View the author
avatar
zsyonlyzero
deepin
2022-03-30 03:04
#7
忘记、过去
sudo apt install ntp
systemctl enable ntp
systenctl start ntp

安装下 ntp 试试看?

截图_选择区域_20220329190324.png

截图_deepin-terminal_20220329190347.png

Reply View the author
avatar
beavailable
deepin
2022-03-30 03:14
#8
zsyonlyzero

截图_选择区域_20220329190324.png

截图_deepin-terminal_20220329190347.png

尝试用以下命令重新安装 systemd

sudo apt install --reinstall systemd

安装完可能需要重启。

Reply View the author
avatar
zsyonlyzero
deepin
2022-03-30 03:25
#9
beavailable

尝试用以下命令重新安装 systemd

sudo apt install --reinstall systemd

安装完可能需要重启。

安装完 我手动重启了一下,再运行这个服务,还是显示no found 

于是我重新安装了一次,这次没有重启,再运行服务,还是现实 no found

 

zsy@zsy-PC:~/Desktop$ systemctl status systemd-timesyncd.service 

Unit systemd-timesyncd.service could not be found.

zsy@zsy-PC:~/Desktop$ 

 

Reply View the author
avatar
beavailable
deepin
2022-03-30 03:34
#10
zsyonlyzero

安装完 我手动重启了一下,再运行这个服务,还是显示no found 

于是我重新安装了一次,这次没有重启,再运行服务,还是现实 no found

 

zsy@zsy-PC:~/Desktop$ systemctl status systemd-timesyncd.service 

Unit systemd-timesyncd.service could not be found.

zsy@zsy-PC:~/Desktop$ 

 

那你安装 systemd-timesyncd试试,如果已经安装过了这个软件包,记得加 --reinstall选项。

Reply View the author
avatar
zsyonlyzero
deepin
2022-03-30 03:46
#11
beavailable

那你安装 systemd-timesyncd试试,如果已经安装过了这个软件包,记得加 --reinstall选项。

安装这个可以了,感谢!

Reply View the author