【问题标题】:hwclock: Cannot access the Hardware Clock via any known method [closed]hwclock:无法通过任何已知方法访问硬件时钟
【发布时间】:2019-09-04 11:25:51
【问题描述】:

我正在使用 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 我不知道。 期待您的帮助

【问题讨论】:

    标签: shell hwclock


    【解决方案1】:

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

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-06
      • 2019-01-22
      • 2019-06-01
      • 1970-01-01
      相关资源
      最近更新 更多