Search code examples
gnupgubuntu-20.04

gpg: selecting card failed: No such device


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 ?


Solution

  • It seems like pcscd.service is inactive by default, have you tried (re)starting it?

    sudo service pcscd restart