Solve the problem that the time is incorrect after installing the dual system of Ubuntu 18.04 on win10

Many friends must have encountered this problem, right?

I have this problem every time I install the dual system. I can't bear it anymore. I found a solution and recorded it here. I hope it can help you (the test is effective).

Proceed as follows:

Execute the following commands in the Ubuntu terminal:

​​​​​​​sudo apt-get install ntpdate
sudo ntpdate time.windows.com
sudo hwclock --localtime --systohc

If after executing the "​​​​​​​sudo apt-get install ntpdate" command, it prompts "E: Unable to locate package ntpdate", then update the source first:

sudo apt-get update

Then re-execute the above three commands

After the entire command is executed, re-enter win10, and you will find that the time is back to normal!

Guess you like

Origin blog.csdn.net/ting_qifengl/article/details/113765711