#1027989 Does not work with current ntpdate

Package:
adjtimex
Source:
adjtimex
Description:
kernel time variables configuration utility
Submitter:
Klaus Ethgen
Date:
2026-11-02 01:05:02 UTC
Severity:
normal
Tags:
#1027989#5
Date:
2023-01-05 16:06:42 UTC
From:
To:
Logging the clock screw to optimize parameters in /etc/adjtime is a
major function of adjtimex. But it is now incompatible to the needed
ntpdate:
   ~> adjtimex -l -h xxxx
   ntpdate: -p is no longer supported.
   ntpdig: querying xxx.xxx.xx.x (xxxx)
   cannot understand ntpdate output

#1027989#10
Date:
2023-09-04 00:58:46 UTC
From:
To:
control: tags -1 +help

Thanks for the report!

Package ntpdate became deprecated since bookworm [1]
and was replaced by ntpsec-ntpdate [2].

[1] https://packages.debian.org/bookworm/ntpdate
[2] https://packages.debian.org/bookworm/ntpsec-ntpdate

in adjtimex.c

ntpdate command output is supposed to be:

      /* read and save the significant lines, which should look like this:
filter offset: -0.02800 -0.01354 -0.01026 -0.01385
offset -0.013543
 1 Sep 11:51:23 ntpdate[598]: adjust time server 1.2.3.4 offset -0.013543 sec
 */

however, ntpdate provides by ntpsec-ntpdate output like this:

$ /usr/sbin/ntpdate -d -q pool.ntp.org
ntpdig: querying 208.113.130.146 (pool.ntp.org)
ntpdig: querying 138.236.128.36 (pool.ntp.org)
ntpdig: querying 68.112.4.226 (pool.ntp.org)
ntpdig: querying 66.228.58.20 (pool.ntp.org)
org t1: e89fa995.15b83000 rec t2: e89fa995.1f6674d8
xmt t3: e89fa995.1f673573 dst t4: e89fa995.29a78000
org t1: 1693788949.084842 rec t2: 1693788949.122657
xmt t3: 1693788949.122669 dst t4: 1693788949.162712
rec-org t21: 0.037816  xmt-dst t34: -0.040043
2023-09-03 17:55:49.122668 (-0700) -0.001114 +/- 0.038931 pool.ntp.org
208.113.130.146 s2 no-leap

so looks like it's hard to get the 4 samples of "filter offset" from
current output.
If you have any ideas, please let me know. Thank you!

Cheers,
Roger

#1027989#17
Date:
2026-11-02 01:03:58 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
adjtimex, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1027989@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated adjtimex package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 01 Nov 2026 19:24:35 -0500
Source: adjtimex
Architecture: source
Version: 1.29-13
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 1027989 1043613 1049549 1057965 1117155
Changes:
 adjtimex (1.29-13) unstable; urgency=medium
 .
   * QA upload.
   * debian/control:
     + Set Maintainer to Debian QA Group. (see #1152079)
     + Bump Standards-Version to 4.7.4; drop redundant Priority and
       Rules-Requires-Root fields.
     + Use debhelper-compat (= 14), dropping debian/compat and the
       now-automatic ${misc:Depends} and ${shlibs:Depends}; move the
       description to the source stanza.
     + Suggest ntpsec-ntpdig instead of ntpdate. (Closes: #1117155)
     + Update Homepage to the working HTTPS ibiblio address.
   * debian/rules, debian/clean: Clean generated files directly instead of
     invoking make after dh_autoreconf_clean, and build only the executable
     to preserve the distributed adjtimex.lsm. (Closes: #1043613, #1049549)
   * debian/rules: Keep the systemd service from starting during installation
     and explicitly disable the unused single-binary addon.
   * debian/docs: Rename to debian/adjtimex.docs.
   * debian/copyright: Replace Site with Source pointing to the original
     1.29 tarball preserved in Debian, and document its provenance.
   * debian/watch: Convert to version 5 and keep tracking the historical
     ibiblio release site.
   * debian/patches:
     + 13-support-ntpsec-ntpdig.patch: Prefer NTPsec ntpdig for --host,
       use its synchronization distance as the reference time uncertainty,
       and retain classic ntpdate as a fallback. Pass hostnames as single
       operands, check query exit status, and document the two clients.
       (Closes: #1027989, #1057965)
   * debian/po/pl.po: Convert from ISO-8859-2 to UTF-8.
   * debian/po/ca.po: Include the pending Catalan debconf translation.
     Thanks to Carles Pina i Estany.
Checksums-Sha1:
 68dfdff962998f5941d87c8dffd907fcd9f0034f 2463 adjtimex_1.29-13.dsc
 6487bf55378008c3739eed892f2783502114ed15 85551 adjtimex_1.29.orig.tar.gz
 71786d01bdec0e5e60e17cef9000bc165924ced0 36980 adjtimex_1.29-13.debian.tar.xz
 0c33a7f16dbdb0451f1c81d7dc86fa7104275750 5888 adjtimex_1.29-13_amd64.buildinfo
Checksums-Sha256:
 f210ac0082f0c2daf4e908384d64e8f914514bcf9715029767137e18997fbb77 2463 adjtimex_1.29-13.dsc
 04b9e8b66e77276ed07e78de89af37fd1aa12725923de853480827c4fafd176a 85551 adjtimex_1.29.orig.tar.gz
 14953bc2aee6eccdfd9fd7e9e932d987cee2de245b3b5fa27b407747681903ad 36980 adjtimex_1.29-13.debian.tar.xz
 09855c212261312be4bf5db6c4f33eb200d1a7203890f5d16802c39a14267629 5888 adjtimex_1.29-13_amd64.buildinfo
Files:
 bcc42651f49fb52fba4541d58877ce27 2463 admin optional adjtimex_1.29-13.dsc
 7ff7731baf829fdf6ad9af963a526cda 85551 admin optional adjtimex_1.29.orig.tar.gz
 bc6d30b7fbc3b8dd24160c946b3051d2 36980 admin optional adjtimex_1.29-13.debian.tar.xz
 37e05f2efc60c1a1d53335d276ebbb8b 5888 admin optional adjtimex_1.29-13_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAmrn2MAACgkQwpPntGGC
Ws50Wg//eRoBBYwAgA0lXMOOD+2Os8G2b7d84mIwIWOpmJ3wIXq7wbglAL34oycu
Fs6OpODeSPea8p48n6TZ13mzxv8arRDg7EuwXO/UUyewqp8fW6H6KOHqEf5qbeD7
TFEURd7fMqhg/G5VE2+UapNiIYOGW23Uguu9bl0lkLa6EgXPcZDLr0Z2dh76eXov
ZFhMyl02NBxk6sc63atG7Q77Chw9+5DmMhH767HE0+449ooWtBXa4Jf6Wd1GYyyV
6w2uZEcu7u79IN526++mKCpcymoAgl4O9HrCOSc0B9jI0YrjJh47DRCPm11enNHi
n1KmYxfF0c2U9lnWSf4j8ljmSXpq5SvnmyFjQN6PFgm+DdxFpTZ5Qg2JCRuwyj0F
DR8MkIBU7YuseXwCfy2TSIRuvqYG0RKticGDDLnEMPgHUJ/XUe1ydAZZIqj+sp80
UlOGXeZ5GJc4o82rqh0rG2p/mQcrJhYdNPjD6b3A627/JDw/6FgHg/I7sGot67s3
LU8tqqrVZOBv6EOpOMxqcdb48+F7VYMyVApERZDaHa6mTzQ+jPeTc58YvxCrdKN2
UfgfDZR2ff88g3DqAC1j5RwDS9zSg6wUzXY4/msCnKpCrE/6bFS5oF1n7C14e7BN
OkCNRsSkcvA+sfwwNVqyYOsLFdzdaw0dk/lbTmqjtdbvO43F51s=
=PYHa
-----END PGP SIGNATURE-----