hwclock:无法通过任何已知方法访问硬件时钟



我正在使用 Windows 10 提供的 Ubuntu bash shell,我想使用 hwclock 查看我的硬件时钟时间,但我不断收到错误。

硬件时钟

root@DESKTOP:/home/blondinl# hwclock
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.

当我使用 --debug 选项

root@DESKTOP:/home/blondinl# hwclock -- debug
hwclock from util-linux 2.27.1
hwclock: cannot open /dev/rtc: No such file or directory
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.

我尝试使用timedatectl

root@DESKTOP:/home/blondinl# timedatectl
Failed to create bus connection: No such file or directory

我在互联网上搜索了一个答案,但找不到。也许是因为我在我不知道的Windows上使用linux bash。我期待您的帮助

这似乎是一个可能尚未修复的 wsl 错误。我今天仍然面对它。

https://github.com/microsoft/WSL/issues/5324

https://github.com/microsoft/WSL/issues/4245

抱歉,我真的没有时间提供额外的信息或阅读它,但也许你可以。

最新更新