zoukankan      html  css  js  c++  java
  • ArchLinux 设置时间同步和硬件时间同步错误 No usable clock interface found

    笔记本不知道怎么了,总是时间对不上
    硬件时间也设置不了,只能时间同步了

    手动时间同步

    ntpdate即可,ntp服务器在这里用这两个就好了
    cn.ntp.org.cn 或 edu.ntp.org.cn

    sudo ntpdate cn.ntp.org.cn
    

    发现时间总是差了8小时,设置一下时区

    tzselect
    

    然而设置了也没用...
    总不能手动改吧

    自动时间同步

    首先设置一下时区,然后打开ntp同步服务

    timedatectl list-timezones
    timedatectl set-timezone Asia/Shanghai
    timedatectl set-ntp true
    

    硬件时间问题

    查看硬件时间总是报错,怕不是硬件问题吧

    [tanglizi@archlinux ~]$ 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.
    
    [tanglizi@archlinux ~]$ hwclock --debug
    hwclock from util-linux 2.31.1
    System Time: 1519354149.819993
    Trying to open: /dev/rtc0
    No usable clock interface found.
    hwclock: Cannot access the Hardware Clock via any known method.
    

    好吧问题解决了,详见 这里只需要使用root权限就好(hwclock为啥不报权限不足啊,满满的误导 ``` sudo hwclock -w ```
  • 相关阅读:
    C++ CheckListBox
    TreeView查获节点并选中节点
    创建文件自动重命名
    bat
    Edit显示行号
    FindStringExact
    Extended ComboBox添加图标
    C++ Combobox输入时自动完成
    C++ ComboBox基础
    C++ Code_combobox
  • 原文地址:https://www.cnblogs.com/tanglizi/p/8461169.html
Copyright © 2011-2022 走看看