Your message dated Wed, 08 Aug 2018 00:04:15 +0000
with message-id <e1fnbxx-0004hw...@fasolo.debian.org>
and subject line Bug#905678: fixed in ntpsec 1.1.1+dfsg1-2
has caused the Debian Bug report #905678,
regarding ntpsec-ntpdate: /sbin/dhclient-script: 30:
/etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate: Syntax error: word unexpected
(expecting "do")
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
905678: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905678
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: ntpsec-ntpdate
Version: 1.1.1+dfsg1-1
Severity: grave
Tags: patch
Hi,
since (at least) the update of ntpsec-ntpdate to 1.1.1+dfsg1-1, I see
tons of these entries in my syslog (and ifup doesn't exit anymore):
[…]
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 3
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12660' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 7
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12676' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 6
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12736' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 4
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12753' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 4
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12783' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 8
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12799' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 6
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12815' to '/etc/resolv.conf':
Operation not permitted
/sbin/dhclient-script: 30: /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate:
Syntax error: word unexpected (expecting "do")
DHCPDECLINE on enp0s31f6 to 255.255.255.255 port 67
DHCPDISCOVER on enp0s31f6 to 255.255.255.255 port 67 interval 3
DHCPREQUEST of 192.168.1.245 on enp0s31f6 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.245 from 192.168.1.1
DHCPACK of 192.168.1.245 from 192.168.1.1
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.12838' to '/etc/resolv.conf':
Operation not permitted
[…]
(the "cannot move" lines are a symptom of https://bugs.debian.org/860928
but should be unrelated with this issue)
If I add a semicolon before "do", the issues (Syntax error and endless
loop) are all gone:
~ # diff -u !$\~ !$
diff -u /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate\~
/etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate
--- /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate~ 2018-08-03
05:04:20.000000000 +0200
+++ /etc/dhcp/dhclient-exit-hooks.d/ntpsec-ntpdate 2018-08-08
01:14:04.698885263 +0200
@@ -25,7 +25,7 @@
new_ntp_servers=$(
for i in \
$new_ntp_servers \
- $DHCP4_NTP_SERVERS $DHCP6_NTP_SERVERS \
+ $DHCP4_NTP_SERVERS $DHCP6_NTP_SERVERS; \
do
echo $i
done | tr "\n" " " | sed "s| $||")
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (500, 'unstable-debug'),
(500, 'buildd-unstable'), (110, 'experimental'), (1, 'experimental-debug'), (1,
'buildd-experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.17.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages ntpsec-ntpdate depends on:
ii netbase 5.4
ii python3 3.6.6-1
ii python3-ntp 1.1.1+dfsg1-1
ntpsec-ntpdate recommends no packages.
ntpsec-ntpdate suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: ntpsec
Source-Version: 1.1.1+dfsg1-2
We believe that the bug you reported is fixed in the latest version of
ntpsec, 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 905...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Richard Laager <rlaa...@wiktel.com> (supplier of updated ntpsec 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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Tue, 07 Aug 2018 09:11:08 -0500
Source: ntpsec
Binary: ntpsec ntpsec-ntpdate ntpsec-ntpviz ntpsec-doc python3-ntp
Architecture: source
Version: 1.1.1+dfsg1-2
Distribution: unstable
Urgency: medium
Maintainer: Richard Laager <rlaa...@wiktel.com>
Changed-By: Richard Laager <rlaa...@wiktel.com>
Description:
ntpsec - Network Time Protocol daemon and utility programs
ntpsec-doc - Network Time Protocol documentation
ntpsec-ntpdate - client for setting system time from NTP servers
ntpsec-ntpviz - NTP statistics graphing utility
python3-ntp - Python 3 NTP Helper Classes
Closes: 905678
Changes:
ntpsec (1.1.1+dfsg1-2) unstable; urgency=medium
.
* Fix syntax error in ntpsec-ntpdate DHCP hook (Closes: 905678)
Checksums-Sha1:
56f9d87b1dd06ee0957e57256481b528685a6f5d 2402 ntpsec_1.1.1+dfsg1-2.dsc
234a9ba4cd124551c83da3e18aa659a8682cf2d2 44192
ntpsec_1.1.1+dfsg1-2.debian.tar.xz
3611a3ff861addb6161bf4f809d2357c11fdfda6 9452
ntpsec_1.1.1+dfsg1-2_amd64.buildinfo
Checksums-Sha256:
03abea3432d1a082115f3d0b1b21655657cf9154e1c3f8b6e597ef503c755f0f 2402
ntpsec_1.1.1+dfsg1-2.dsc
98605bba65d3589e0c16349c50b96603150de866e0b4a89d99ba002ff6e1a807 44192
ntpsec_1.1.1+dfsg1-2.debian.tar.xz
514dc2d9471429569c6f046d1836a4264a30fc170907b023a109d450aaf5d773 9452
ntpsec_1.1.1+dfsg1-2_amd64.buildinfo
Files:
5a7d00ac8d029e50197ed49bd4705e6e 2402 net optional ntpsec_1.1.1+dfsg1-2.dsc
24d16d8c891377e6ceab7f3f5462b2a4 44192 net optional
ntpsec_1.1.1+dfsg1-2.debian.tar.xz
690c4a6dedcd571120eb76b3b6a960d3 9452 net optional
ntpsec_1.1.1+dfsg1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAltqLuEUHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpb8MBAAnL0G0gZsvHYRH604Lmc6+AlvbgKR
gjstmlJxvFDby2tXfOSwTQZcLh50jnf0D4soo9El0StjZbLe8GvUrYLg3xOyhc+9
huhH4p3Sbwkw/HJdhiNTxwRIP93d93VC90WHmyJqfOYycHRiaMnj1NT3eh1SZW67
r3LsgC2blX98QUa3ZgkLji3RwmCqJ92FDopCPySJe4YifpbfedPLhDo8bdCDz8Tf
tn7IiG0OtTzenZPraDZ/Qu5PaoXlZvPYzdoHDyf4mgz85PbFT8dimnV9Ow/KZQdS
bfmWOd5hIiIhA2MN7QTrH2BVxWf+hxmZl7uNvZCZY6cP3WqWLdQSVfdxJLVSkTlA
+ZwSrWNZiIYWiGN4IHhb/j0WKsyMBSx+p7uH4seJl2ZQJLY2oM0oAO3Gxsmpsb1x
RHkjJvtSSCYDC8292VENtkBACrQWo+v+aCMIH+ciRjFGGBBs1M7RWw2S1qMYRVEb
28x1bHRkJY4cAPMSFWKCSeGuSlDT0CrKja4Gb3TrVNC9eXZXk8AXMHw+ygHKVUce
MHk6sCnkSrNICdOqnspQ7sAGbhGEnIruCia8emx3etcEYUo3PiK+P2vdaHKQp0Z5
UktiJpxDk2RxCnG3QfDReb0GYY31u4MH5RaFM2CehayMuecOqiuknrA3AM1Mywrw
Q27wvOakNZCfVsY=
=u+NK
-----END PGP SIGNATURE-----
--- End Message ---