[Control Center] 时间不能设置自动同步 V20.4
Tofloor
poster avatar
150******88
deepin
2022-03-31 06:24
Author

问题/建议描述

时间不能设置自动同步, 选项打不开, 网络是正常的。

截图_选择区域_20220330221920.png

问题重现频率

必现

Reply Favorite View the author
All Replies
beavailable
deepin
2022-03-31 14:57
#1

尝试执行如下命令:

sudo apt reinstall systemd-timesyncd
Reply View the author
Mr-Wan
deepin
2022-03-31 16:34
#2

系统时间同步记忆中看到的某篇文档描述介绍,一般有三种方式:NTP ,chrony,timesync。

三者之间应该是互相冲突的,只能启用一种。

图形环境下配置对底层配置的集成一般gnome的环境下应该默认使用的是systemd-timesyncd,

有可能是安装了别的时间同步方案并启用了,而启用的时间同步方式在图形化界面下没有集成配置界面,导致无法开启.

sudo systemctl status systemd-timesyncd

systemd-timesyncd.service - Network Time Synchronization Loaded:

尝试

sudo systemctl enable systemd-timesyncdsudo 
systemctl start systemd-timesyncd

至于图形界面会怎么显示,个人不了解.

Reply View the author
150******88
deepin
2022-04-01 03:01
#3
beavailable

尝试执行如下命令:

sudo apt reinstall systemd-timesyncd

这个方法 可以 , 不知道为啥 之前服务没有了。 重新安装时间可以自动同步了

Unit systemd-timesyncd.service could not be found.

Reply View the author
beavailable
deepin
2022-04-01 03:34
#4

因为之前这个服务是在 systemd软件包里的,后来 systemd更新版本把这个服务拆分到 systemd-timesyncd软件包了。

不过 systemd推荐了 systemd-timesyncd软件包,理论上,如果你更新了系统,应该也会自动安装 systemd-timesyncd的。

Reply View the author