Package: ntpsec
Version: 1.2.0+dfsg1-4
Severity: normal
To reproduce use a clean debian and install ntpsec. Run the daemon with
the default conf file. Afterwards run the command
$ ntpq -c sysinfo
Return code is 1 and the output is
associd=0 status=c016 leap_alarm, sync_unspec, 1 event, restart,
Traceback (most recent call last):
File "/usr/bin/ntpq", line 1774, in <module>
interpreter.onecmd(interpreter.precmd(command))
File "/usr/lib/python3.9/cmd.py", line 217, in onecmd
return func(arg)
File "/usr/bin/ntpq", line 1412, in do_sysinfo
self.collect_display(associd=0, variables=sysinfo, decodestatus=True)
File "/usr/bin/ntpq", line 444, in collect_display
if self.showhostnames[0]:
TypeError: 'int' object is not subscriptable
-- System Information:
Debian Release: 11.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages ntpsec depends on:
ii adduser 3.118
ii init-system-helpers 1.60
ii libbsd0 0.11.3-1
ii libc6 2.31-13+deb11u5
ii libcap2 1:2.44-1
ii libssl1.1 1.1.1n-0+deb11u4
ii lsb-base 11.1.0
ii netbase 6.3
ii python3 3.9.2-3
ii python3-ntp 1.2.0+dfsg1-4
ii tzdata 2021a-1+deb11u8
Versions of packages ntpsec recommends:
ii systemd 247.3-7+deb11u1
Versions of packages ntpsec suggests:
pn apparmor <none>
pn certbot <none>
pn ntpsec-doc <none>
pn ntpsec-ntpviz <none>
-- no debconf information