0

In my Ubuntu 14.10 ntp doesn't seem to work. If I call:

ntpd -g -q

This is the output in syslog:

Dec 12 20:33:26 nebelhaufen ntpd[28659]: ntpd [email protected] Wed Oct  9 18:56:59 UTC 2013 (1)
Dec 12 20:33:26 nebelhaufen ntpd[28659]: proto: precision = 0.200 usec
Dec 12 20:33:26 nebelhaufen ntpd[28659]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Dec 12 20:33:26 nebelhaufen ntpd[28659]: unable to bind to wildcard address 0.0.0.0 - another process may be running - EXITING
root@nebelhaufen:/var/www/bz/www/blimusdev# Dec 12 20:33:26 nebelhaufen kernel: [22320.780176] audit: type=1400 audit(1418412806.510:66): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/usr/local/sbin/" pid=28659 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Dec 12 20:33:26 nebelhaufen kernel: [22320.780185] audit: type=1400 audit(1418412806.510:67): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/usr/local/bin/" pid=28659 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

How can I set the time on Ubuntu via ntpd?


EDIT: ntpdate -q ntp.ubuntu.com works fine, but I read, that ntpdate is deprecated?

1
  • Did you try to stop ntp service (sudo service ntp stop) before running ntpd -g -q, then start it afterwards? Dec 13, 2014 at 18:17

2 Answers 2

1

The problem is you are trying to run a network daemon, and this line is the main problem:

unable to bind to wildcard address 0.0.0.0 - another process may be running - EXITING

First suspect is if you are root or not; low ports are not for non-root users. The second is it seems also ntpdate is running as damon after install: "ntpd unable to bind to wildcard address 0.0.0.0 - another process may be running"

If your system is already running ntpd, ps ax|grep ntp shows that? If so, stop it with

sudo service ntp stop

before running

ntpd -g -q
1
  • still not working. I uninstalled ntpdate and tried service ntp restart which causes another "ntpd: unable to bind to wildcard address 0.0.0.0 - another process may be running - EXITING" in syslog
    – rubo77
    Dec 12, 2014 at 22:38
0

Run netstat -pnl | grep 123 to identify the process that is listening on port 123, kill it, then restart ntp.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .