- Usually time is only synced once upon each boot or wakeup-from-sleep
So the problem appears to be either that Ubuntu's default time server (what is it?) has the incorrect time, or Ubuntu is not setting the time automatically from the Internet.
No, Ubuntu's time server is correct, and it is setting the time automatically from it.
The problem is that is usually occurs only once upon each bootup (or to be more precise, each time a network interface is brought up - whether from shutdown, sleep or hibernation). Based on your uptime, it's safe to say it wasn't sync'd in more than a week. And your system clock is running slightly fast for some reason.
- Set up an hourly cron
job to sync if you don't reboot often, or your server/desktop never goes to sleep
Your best bet is to set up a cron-job, I'd say hourly if you want super-precise time. The easiest way to do that is:
sudo editor /etc/cron.hourly/ntpsync
Add the following lines:
#!/bin/bash ntpdate ntp.ubuntu.com #or your choice of server
- save, exit and
sudo chmod +x /etc/cron.hourly/ntpsync
You can put this in
/etc/cron.daily
instead if you would like, for once per day.http://askubuntu.com/questions/138916/why-is-ubuntus-clock-getting-slower-or-faster/138956#138956
https://help.ubuntu.com/10.04/serverguide/NTP.html