【问题标题】:gpg: selecting card failed: No such devicegpg:选择卡失败:没有这样的设备
【发布时间】:2021-11-24 16:09:54
【问题描述】:

我有 ubuntu 20.04 机器并使用下面的命令安装了 gpg 和相关工具

sudo apt install gpg gnupg gnupg-pkcs11-scd

但是当我运行gpg --card-status 时,我得到以下错误

gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device

我应该为此安装其他东西吗?

【问题讨论】:

    标签: gnupg ubuntu-20.04


    【解决方案1】:

    尝试使用 pkill gpg-agent 强制重启 gpg-agent

    ➜ gpg --card-status
    gpg: selecting card failed: Service is not running
    gpg: OpenPGP card not available: Service is not running
    
    ➜ pkill gpg-agent
    
    ➜ gpg --card-status
    Reader ...........: Yubico YubiKey OTP FIDO CCID
    ...
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-08
      • 1970-01-01
      • 2023-04-10
      相关资源
      最近更新 更多