geerlingguy / ansible-role-ntp

Ansible Role - NTP
https://galaxy.ansible.com/geerlingguy/ntp/
MIT License
319 stars 243 forks source link

Conflict with systemd-timesyncd #135

Open micafer opened 4 months ago

micafer commented 4 months ago

In Ubuntu 24.04 if the package "systemd-timesyncd" is already installed, ntp package installation fails:

Reading package lists... Done
Building dependency tree... Done
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:
 ntpsec : Conflicts: time-daemon
 systemd-timesyncd : Conflicts: time-daemon

If you remove the "systemd-timesyncd" package it works as expected.

bluppfisk commented 2 weeks ago

This seems also the case for Debian 12 (Bookworm) which has timesyncd installed