[pkg-ntp-maintainers] Bug#854432: [ntpdate] ntpdate-debian does not find pool entries exits with "no servers can be used"
Dana Johnson
djohns042 at gmail.com
Tue Feb 7 06:27:34 UTC 2017
Package: ntpdate
Version: 1:4.2.8p9+dfsg-2.1
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
With ntp installed and /etc/default/ntpdate entry:
NTPDATE_USE_NTP_CONF=yes
The command: /usr/sbin/ntpdate-debian -v -q
gives: no servers can be used, exiting
This is because ntpdate-debian is looking for server entries with:
sed -rne 's/^(servers?|peer)...
The attached patch adds pool to correctly pick up the pool entries
sed -rne 's/^(servers?|peer|pool)...
And a correct result from:
/usr/sbin/ntpdate-debian -v -q
--- System information. ---
Architecture: Kernel: Linux 4.9.0-1-amd64
Debian Release: 9.0
990 testing httpredir.debian.org 500 unstable
httpredir.debian.org 500 stable-updates httpredir.debian.org 500
stable security.debian.org 500 stable
httpredir.debian.org
--- Package information. ---
Depends (Version) | Installed
========================-+-===========
netbase | 5.4
libc6 (>= 2.17) | libssl1.1 (>= 1.1.0) |
Package's Recommends field is empty.
Package's Suggests field is empty.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_ntpdate-debian_to_find_pool_entries.patch
Type: text/x-diff
Size: 567 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ntp-maintainers/attachments/20170206/264109c6/attachment.patch>
More information about the pkg-ntp-maintainers
mailing list