I have gone through several tutorials regarding NTP and synchronizing the system clock, but I am still not able to get my system's time right. I followed the following steps on a machine running Ubuntu 16.04 LTS:
/etc/ntp.conffile to contain the following:
driftfile /var/lib/ntp/ntp.drift server 0.pool.ntp.org iburst server 1.pool.ntp.org iburst server 2.pool.ntp.org iburst server 3.pool.ntp.org iburst`
sudo /etc/init.d/ntp start
To check if everything was working, I ran
ntpstat and got this output:
unsynchronised polling server every 8 s
ntpdc -c peers returned:
localhost: timed out, nothing received ***Request timed out
ntpq -p gives:
`remote refid st t when poll reach delay offset jitter` `==============================================================================` `propjet.latt.ne .INIT. 16 u - 512 0 0.000 0.000 0.000` `duffman.whacker .INIT. 16 u - 512 0 0.000 0.000 0.000` `ec2-52-6-191-28 .INIT. 16 u - 512 0 0.000 0.000 0.000` `188.8.131.52 .INIT. 16 u - 512 0 0.000 0.000 0.000`
Even after all of this, my clock is still off by almost 10 minutes, and I'm not sure what the issue is.
I am running a local machine, but it is behind a corporate proxy. However, I've included the proxy information as environment variables.
Are there any corrections that I can make to fix this?