3

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.

Tarun
  • 4,245
  • 13
  • 50
  • 74
  • 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 08: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 08:39
  • 1
    Okay, then I think it is a duplicate of Unable to synchronize time using NTP – gertvdijk Jul 22 '13 at 08: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 08: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 08:53

1 Answers1

3

The following command update your date and time :)

ntpdate ntp.ubuntu.com
Mitesh Shah
  • 444
  • 3
  • 10