I get a problem when install ntp (offline install) because the conflict with time-daemon of systemd-timesyncd.
# dpkg -i ntp_4.2.8p12+dfsg-3ubuntu4.20.04.1_amd64.deb
dpkg: regarding ntp_4.2.8p12+dfsg-3ubuntu4.20.04.1_amd64.deb containing ntp:
ntp conflicts with time-daemon
systemd-timesyncd provides time-daemon and is present and installed.
dpkg: error processing archive ntp_4.2.8p12+dfsg-3ubuntu4.20.04.1_amd64.deb (--install):
conflicting packages - not installing ntp
Errors were encountered while processing:
ntp_4.2.8p12+dfsg-3ubuntu4.20.04.1_amd64.deb
any suggest to fix this?
Tks
systemd-timesyncd
andntp
(which provides the ntp daemon) installed simultaneously because they both use the ntp ports ande protocols. You need to pick one or the other, you can't have both. – Thomas Ward Oct 05 '22 at 03:46'
– Quang Nguyen Oct 05 '22 at 03:54dpkg
to install a downloaded version of ntp instead of simply usingapt
to install the version from the official repository? – mchid Oct 05 '22 at 03:59systemd-timesyncd
installed on it. My instructions are for the p12 NTP, but they are the same installation steps but with p15 instead of p12. https://askubuntu.com/questions/1123106/how-to-update-to-latest-ntp-patch-4-2-8p12-on-ubuntu-18-04/1123111#1123111 I would definitely recommend doing it from source. – Terrance Oct 05 '22 at 04:07