Following behavior when trying to use a Nitrokey3 with gpg
% gpg --card-status
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device
Observations, cirumstances:
- Only one of my systems (Ubuntu noble) is affected. Other (Arch, another Ubuntu noble) work fine
- On the affected system a Nitrokey Pro works fine.
~/.gnupg/scdaemon.confcontains only the linedisable-ccid.- the file
41-nitrokey.rulesfrom thelibnitrokey-commonpackage is in/lib/udev/rulesand the rules are reloaded (reboot) - The current nitrokeyapp works fine
- When the key is inserted the systemd messages "Reached smartcard.target - Smart Card.` do not occur.
- When trying
gpg --card-statusthe following lines appear in the systemd logs
Aug 13 11:14:36 <hostname> gpg-agent[56998]: scdaemon[56998]: detected reader 'Nitrokey Nitrokey 3 [CCID/ICCD Interface] 00 00'
Aug 13 11:14:36 <hostname> gpg-agent[56998]: scdaemon[56998]: pcsc_connect failed: sharing violation (0x8010000b)
Aug 13 11:14:36 <hostname> gpg-agent[56995]: DBG: handle_pincache_put: flushing cache '0//'
Any more ideas on how to debug this?
Thanks