使用ntpdate校准时间:
首先安装ntpdate:
sudo apt-get install ntpdate
校准时间
sudo ntpdate time.windows.com
如果你使用的是windows + ubuntu 双系统 建议将时间更新到硬件上,以免windows的时间不对
sudo hwclock --localtime --systohc
参考:https://blog.csdn.net/hansion3333/article/details/60469583?utm_source=blogxgwz6