在windows10上安装Ubuntu16.04双系统以后,Ubuntu、windows系统上显示的时间都不正确,且同步网络也不能更新。
通过查资料得到以下两种解决方法,经过尝试第一种未能解决问题,第二种解决了
首先,打开terminal
方法一
1、更新ubuntu的系统时间
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
2、将时间更新到硬件上:
sudo hwclock --localtime --systohc
3、重启系统,打开windows10 没有解决我的问题
方法二
sudo -s
apt-get install rdate
rdate -s time-b.nist.gov
语句顺利执行结束以后,Ubuntu时间顺利修改,可以通过命令来查看
date
就可以查看当前系统时间
但是这里要注意!!!!!还需要将时间更新到系统上,不然一打开windows时间还是会出错!!!
sudo hwclock --localtime --systohc
重启打开windows检查,windows时间也已经修改