gpg: selecting card failed: No such device

Viewed 2213

I have ubuntu 20.04 machine and installed gpg and related tools using below commad

sudo apt install gpg gnupg gnupg-pkcs11-scd

But when i run gpg --card-status, I get below error

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

Should I install anything else for this ?

1 Answers

Try forcing a restart of the gpg-agent with pkill 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
...
Related