Can't set clock

Gene Heskett gene.heskett at verizon.net
Mon Jan 5 03:53:06 GMT 2009


On Sunday 04 January 2009, Wulfy wrote:
>David Fletcher wrote:
>> I've never installed ntpdate. I didn't know there was such a thing.
>
>ntpdate is pulled in by ubuntu-minimal.
>
>> What I'd try is removing ntpdate then install ntp (or is it ntpd? I can't
>> recall). If it needs ntpdate it should put it back.
>
>I tried removing ntpdate it would have broken ubuntu-minimal so I left
>it.  I installed ntp and it seems to have made no difference...
>
>> Then what happens is, your system will not immediately show the correct
>> time, it will very gradually adjust itself little by little. Unless you
>> reboot it, then I think it sets itself correctly right away.
>>
>> Dave
>
>Even after installing it, I get the "unable to contact time server" and
>that it can't update the time...  :@(
>
Can you 'ping pool.ntp.org'?  That will separate firewall problems from 
network problems.  Its possible your firewall is blocking the port (123, both 
udp and tcp) that ntp uses.

The ping should look like this:
# ping pool.ntp.org
PING pool.ntp.org (207.182.243.123) 56(84) bytes of data.
64 bytes from redline.mednor.net (207.182.243.123): icmp_seq=1 ttl=49 time=119 
ms
64 bytes from redline.mednor.net (207.182.243.123): icmp_seq=2 ttl=49 time=136 
ms
64 bytes from redline.mednor.net (207.182.243.123): icmp_seq=3 ttl=49 time=166 
ms
64 bytes from redline.mednor.net (207.182.243.123): icmp_seq=4 ttl=49 time=118 
ms

I hit ctrl + c here,
^C
--- pool.ntp.org ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 118.607/135.326/166.634/19.340 ms

Now, if I was to do that again, its very likely that I would get a different 
server the next time.

pool.ntp.org uses some sort of a round-robin setup to distribute the load on 
the timeservers so you usually get a different one every time you do a dns 
query.

>I even tried the old Windows First Resort as a last resort - I
>rebooted...  it made no difference.
>
>
>--
>Blessings
>
>Wulfmann
>
>Wulf Credo:
>Respect the elders. Teach the young. Co-operate with the pack.
>Play when you can. Hunt when you must. Rest in between.
>Share your affections. Voice your opinion. Leave your Mark.
>Copyright July 17, 1988 by Del Goetz



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
somebody was calculating pi on the server



More information about the kubuntu-users mailing list