ntpdate fails to get a server from /etc/ntp.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ntp (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ntp
It looks like ntp never updates the time on my Gutsy machine. I can get
ntpdate to work only if I specify the ntp server on the command line.
Here's what I get when I run ntpdate:
$ sudo ntpdate -v
17 Dec 18:51:03 ntpdate[2545]: ntpdate 4.2.4p0@1.1472-o Thu Oct 4 20:58:46 UTC 2007 (1)
17 Dec 18:51:03 ntpdate[2545]: no servers can be used, exiting
but it does work if I specify the NTP server explicitely:
$ sudo ntpdate -v ntp
17 Dec 18:51:37 ntpdate[2556]: ntpdate 4.2.4p0@1.1472-o Thu Oct 4 20:58:46 UTC 2007 (1)
17 Dec 18:51:37 ntpdate[2556]: adjust time server 192.168.4.9 offset -0.021603 sec
Which is weird since /etc/default/
NTPDATE_
#NTPSERVERS=""
NTPOPTIONS=""
and /etc/ntp.conf contains:
server ntp
server nz.pool.ntp.org
server ntp.ubuntu.com
Now, I ran strace on ntpdate and it looks like it doesn't even read /etc/ntp.conf:
$ sudo strace ntpdate 2> errors
$ grep ntp errors:
execve(
write(2, "ntpdate[2649]: no servers can be"..., 47ntpdate[2649]: no servers can be used, exiting
Is there anything else I should look into?
-- System Information:
Debian Release: lenny/sid
APT prefers gutsy-updates
APT policy: (500, 'gutsy-updates'), (500, 'gutsy-security'), (500, 'gutsy-proposed'), (500, 'gutsy-backports'), (500, 'gutsy')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-14-generic (SMP w/2 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=
Shell: /bin/sh linked to /bin/dash
Versions of packages ntp depends on:
ii adduser 3.103ubuntu1 Add and remove users and groups
ii libc6 2.6.1-1ubuntu10 GNU C Library: Shared libraries
ii libcap1 1:1.10-14build1 support for getting/setting POSIX.
ii libreadline5 5.2-3build1 GNU readline and history libraries
ii libssl0.9.8 0.9.8e-5ubuntu3.1 SSL shared libraries
ii lsb-base 3.1-23.1ubuntu3 Linux Standard Base 3.1 init scrip
ii netbase 4.29ubuntu2 Basic TCP/IP networking system
ii perl 5.8.8-7ubuntu3.1 Larry Wall's Practical Extraction
ii sysv-rc 2.86.ds1-
ntp recommends no packages.
-- no debconf information
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with the latest Ubuntu release, Hardy Heron? Thanks in advance.