0

I select the option Automatically from the Internet in Ubuntu. But the time is not the real time as it should be. I am attaching a screen shot. Could anyone give me a solution for that. Thanks in advance.

enter image description here

raz
  • 1,882

3 Answers3

2

install ntp server: sudo apt-get install ntp

and run sudo ntpdate ntp.ubuntu.com

Sources---> link and link

araghuteja
  • 294
  • 2
  • 12
1

You could run the following command to update the system time:

sudo ntpd -a -b

Run the following command to verify the same:

sudo ntpq -p

Then, run the following to update the clock:

sudo ntpd -gq

Also, you may need to install ntp. You can do it by executing the following command:

sudo apt-get install ntp

Delay and offset should not be all zeros. If so, run the first two commands again.

mchid
  • 44,904
  • 8
  • 102
  • 162
1

Open a terminal and type "sudo dpkg-reconfigure tzdata" then configure the timezone from the popup that will appear, select the correct zone and it should and check the time using the "time" command. The sudo command will want a password so your user account should have elevated rights, i.e. be in sudo group.

Ads
  • 186