Monday, July 25, 2022

Force ubuntu system to sync date and time for a system

just run the following commands to force the system to sync the date and time. 

sudo timedatectl set-ntp true
sudo timedatectl set-ntp false
sudo timedatectl set-ntp true
Running these 3 commands, then the system will sync your date and time
the correct date and time. 


Ubuntu virtualbox virtual machines can have the system date and time be out sync when the host machine goes on sleep, once the host machine is wake up, the virtual machine's time can be off quite a bit. Run the above command to bring the system date and time to the current.

No comments:

Post a Comment