Public bug reported:
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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.conf is the following:
NTPDATE_USE_NTP_CONF=yes
#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("/usr/sbin/ntpdate", ["ntpdate"], [/* 44 vars */]) = 0
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=en_NZ.UTF-8 (charmap=UTF-8)
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-14.1ubuntu31 System-V-like runlevel
change mech
ntp recommends no packages.
-- no debconf information
** Affects: ntp (Ubuntu)
Importance: Undecided
Status: New
--
ntpdate fails to get a server from /etc/ntp.conf
https://bugs.launchpad.net/bugs/176844
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs