[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ntp & ntpsec headless installation issues in Debian 11 (bullseye)



Hi,

We are using ntp for a long time in our product, everything was fine
till Debian 10 but starting from Debian 11 - it does not allow me to
install ntp or ntpsec in headless way (same behaviour for both).

Excerpts of log from /var/log/installer/syslog:
-----------------------------------------------

Mar 22 07:35:57 in-target: Building dependency tree...
Mar 22 07:35:57 in-target: Reading state information...
Mar 22 07:35:57 in-target:
Mar 22 07:35:57 in-target: The following additional packages will be
installed:
Mar 22 07:35:57 in-target:   ntpsec ntpsec-ntpdate python3-ntp
Mar 22 07:35:57 in-target: Suggested packages:
Mar 22 07:35:57 in-target:   certbot ntpsec-doc ntpsec-ntpviz
Mar 22 07:35:57 in-target: The following packages will be REMOVED:
Mar 22 07:35:57 in-target:   systemd-timesyncd
Mar 22 07:35:57 in-target: The following NEW packages will be installed:
Mar 22 07:35:57 in-target:   meta-ntp-install ntpsec ntpsec-ntpdate
python3-ntp
Mar 22 07:35:57 in-target: 0 upgraded, 4 newly installed, 1 to remove
and 0 not upgraded.
Mar 22 07:35:57 in-target: E: Packages need to be removed but remove is
disabled.
----------------------------------------------------------------------

If try to install it manually it gets installed but systemd-timesyncd
seems to have strange behaviour, it is marked to be removed, console log
of manual installation is below:
---------------------------------------------------------------------

vi100@myserver:~$ sudo apt-get install ntpsec ntpsec-ntpdate
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-ntp
Suggested packages:
  certbot ntpsec-doc ntpsec-ntpviz
The following packages will be REMOVED:
  systemd-timesyncd
The following NEW packages will be installed:
  ntpsec ntpsec-ntpdate python3-ntp
0 upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 465 kB of archives.
After this operation, 1,155 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://deb.debian.org/debian bullseye/main amd64 python3-ntp amd64
1.2.0+dfsg1-4 [89.1 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 ntpsec amd64
1.2.0+dfsg1-4 [337 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 ntpsec-ntpdate
amd64 1.2.0+dfsg1-4 [38.8 kB]
Fetched 465 kB in 2s (298 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog
based frontend cannot be used. at
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> 3.)
debconf: falling back to frontend: Readline
(Reading database ... 46182 files and directories currently installed.)
Removing systemd-timesyncd (250.4-1~bpo11+1~tfn11+1) ...
Selecting previously unselected package python3-ntp.
(Reading database ... 46167 files and directories currently installed.)
Preparing to unpack .../python3-ntp_1.2.0+dfsg1-4_amd64.deb ...
Unpacking python3-ntp (1.2.0+dfsg1-4) ...
Selecting previously unselected package ntpsec.
Preparing to unpack .../ntpsec_1.2.0+dfsg1-4_amd64.deb ...
Unpacking ntpsec (1.2.0+dfsg1-4) ...
Selecting previously unselected package ntpsec-ntpdate.
Preparing to unpack .../ntpsec-ntpdate_1.2.0+dfsg1-4_amd64.deb ...
Unpacking ntpsec-ntpdate (1.2.0+dfsg1-4) ...
Setting up python3-ntp (1.2.0+dfsg1-4) ...
Setting up ntpsec (1.2.0+dfsg1-4) ...
Created symlink /etc/systemd/system/timers.target.wants/ntpsec-rotate-
stats.timer → /lib/systemd/system/ntpsec-rotate-stats.timer.
Created symlink /etc/systemd/system/network-pre.target.wants/ntpsec-
systemd-netif.path → /lib/systemd/system/ntpsec-systemd-netif.path.
Created symlink /etc/systemd/system/multi-
user.target.wants/ntpsec.service → /lib/systemd/system/ntpsec.service.
Setting up ntpsec-ntpdate (1.2.0+dfsg1-4) ...
Processing triggers for dbus (1.12.20-2) ...
Processing triggers for man-db (2.9.4-2) ...
---------------------------------------------------------------------

It seems at first sight that systemd-timesyncd is default date/time
synchronization tool but it may act as full fledged NTP server? I think
'no' as per my initial docs reading.

How to handle 'ntp' or 'ntpsec' headless installation? and what are the
reasons for this behaviour?

Thank you.

Regards,
Jaikumar


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: