Closed david50407 closed 4 years ago
After WSL2 sleeps, the clock inside VM (WSL2) may get mis-matched to Windows clock ( https://github.com/microsoft/WSL/issues/4245 ).
And this can cause failing apt update, the solution from Microsoft (https://github.com/microsoft/WSL/issues/4245#issuecomment-510238198) is using sudo hwclock -s to update the clock before apt update.
apt update
sudo hwclock -s
Looks great!
After WSL2 sleeps, the clock inside VM (WSL2) may get mis-matched to Windows clock ( https://github.com/microsoft/WSL/issues/4245 ).
And this can cause failing
apt update
, the solution from Microsoft (https://github.com/microsoft/WSL/issues/4245#issuecomment-510238198) is usingsudo hwclock -s
to update the clock beforeapt update
.