Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I was having an issue in which the time my ubuntu machine was showing is 5 hours ahead of my standard time. So I installed ntpd for that using

apt-get install ntp

after that I restarted ntp but still my time is 5 hours ahead of my standard time in India. Please Help.

share|improve this question
    
What does the mtop has to do with ntp? Is this a result of an earlier attempt to install mtop? I don't see anything about that in your question. –  gertvdijk Jul 22 '13 at 8:38
    
I know mtop does't has to do anything with ntp. I was trying to install ntp not mtop. –  Tarun Jul 22 '13 at 8:39
1  
Okay, then I think it is a duplicate of Unable to synchronize time using NTP –  gertvdijk Jul 22 '13 at 8:40
    
No I tried that approach gives the error #service ntp stop then, #ntpdate ntp.ubuntu.com 22 Jul 19:30:31 ntpdate[29701]: no server suitable for synchronization found –  Tarun Jul 22 '13 at 8:45
    
Well, have you tried another server besides ntp.ubuntu.com? It may be down for you or too far geographically so it disregards that as suitable. Try pool.ntp.org or <country-tld>.pool.ntp.org (e.g. nl.pool.ntp.org). And do you have a working internet connection accepting outbound NTP traffic? –  gertvdijk Jul 22 '13 at 8:53
add comment

marked as duplicate by gertvdijk, david6, Luis Alvarado Jul 24 '13 at 2:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 1 down vote accepted

The following command update your date and time :)

ntpdate ntp.ubuntu.com
share|improve this answer
    
ntpdate ntp.ubuntu.com 22 Jul 19:11:53 ntpdate[29585]: the NTP socket is in use, exiting –  Tarun Jul 22 '13 at 8:24
    
service ntpd stop; ntpdate ntp.ubuntu.com –  Mitesh Shah Jul 22 '13 at 8:26
    
service ntpd stop ntpd: unrecognized service –  Tarun Jul 22 '13 at 8:30
1  
@Tarun See Unable to synchronize time using NTP –  gertvdijk Jul 22 '13 at 8:38
    
I tried it #service ntp stop then, #ntpdate ntp.ubuntu.com 22 Jul 19:30:31 ntpdate[29701]: no server suitable for synchronization found –  Tarun Jul 22 '13 at 8:43
show 1 more comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.