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

时间:2019-04-14 07:23:13

标签: shell hwclock


我正在使用Windows 10提供的 Ubuntu bash shell ,我想通过使用hwclock查看我的硬件时钟时间,但是我一直收到错误消息。

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的原因。 期待您的帮助

1 个答案:

答案 0 :(得分:0)

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

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

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

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

相关问题