请问,在装有systemd-timesyncd的Ubuntu 20嵌入式设备中,如何优雅开启NTP服务?

内核编译和嵌入式产品的设计与开发
回复
huangsijun17
帖子: 32
注册时间: 2014-02-15 17:04
系统: WinUbuntuArchRocky

请问,在装有systemd-timesyncd的Ubuntu 20嵌入式设备中,如何优雅开启NTP服务?

#1

帖子 huangsijun17 » 2024-09-24 12:41

Ubuntu20.00,预装的systemd-timesyncd只有客户端,没有服务端。直接配置不可行。apt安装ntp或者chrony时,会提示已经存在注册为time-daemon的软件包,不能安装。去apt卸载systemd-timesyncd,则提示系统必须有提供time-daemon服务的软件包,不能卸载。

代码: 全选

root@rocktech:~# apt install chrony
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 chrony : Conflicts: time-daemon
 systemd-timesyncd : Conflicts: time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
root@rocktech:~# apt remove systemd-timesyncd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 systemd : Depends: systemd-timesyncd but it is not going to be installed or
                    time-daemon
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
xkkkA
帖子: 1
注册时间: 2024-11-13 9:26
系统: ubuntu20.04

Re: 请问,在装有systemd-timesyncd的Ubuntu 20嵌入式设备中,如何优雅开启NTP服务?

#2

帖子 xkkkA » 2024-11-13 9:33

你好 你的问题解决了嘛? 我也遇到一样的问题 ubuntu20.04 arm系统 嵌入式板子
huangsijun17
帖子: 32
注册时间: 2014-02-15 17:04
系统: WinUbuntuArchRocky

Re: 请问,在装有systemd-timesyncd的Ubuntu 20嵌入式设备中,如何优雅开启NTP服务?

#3

帖子 huangsijun17 » 2024-11-14 9:54

xkkkA 写了: 2024-11-13 9:33 你好 你的问题解决了嘛? 我也遇到一样的问题 ubuntu20.04 arm系统 嵌入式板子
没有 ……
我这也是嵌入式的板子,arm架构。
回复