I have a strange issue with using a Yubikey 5 with gpg on Solus Budgie stable.
If I boot Solus, login, open a terminal and then call gpg --card-status, I get the error:
gpg: selecting card failed: No such device
gpg: OpenPGP card not available: No such device
I can access the Yubikey with both ykman and Yubikey-Authenticator without any issue.
I search the web and asked ChatGpt (a lot) and tried all the troubleshooting and suggested workarounds, no success.
In the troubleshooting I found that there is some issue with shared access from the gpg scdaemon in this case.
2025-11-01 19:00:36 scdaemon[7007] detected reader 'Yubico YubiKey OTP+FIDO+CCID 00 00'
2025-11-01 19:00:36 scdaemon[7007] pcsc_connect failed: sharing violation (0x8010000b)
There are two "scd" processes running, /usr/sbin/pcscd --foreground --auto-exit as root and scdaemon --multi-server under my user account.
Then I tried something else: I logged off from the Budgie desktop and switched to pure terminal login.
Surprise: now the command gpg --card-status worked!
And more surprisingly, if I log-off from the terminal and login to Budgie again, it still works there now (until the next reboot). The same two "scd" processes are running as before, but no "sharing violation" in scdaemon process anymore.
To test if any of my user configs is causing the issue, I tried creating a new user account, but that user faces the same issue as with my regular account. So it seems nothing of my custom settings like auto-starts.
One thing I noticed is that Budgie login starts the pcscd process, while the raw terminal login doesn't. So I suspect that the process which triggers pcscd at Budgie login blocks access for gpgp scdaemon if it is not already running.
Does anyone else use a Yubikey 5 with gpg on Solus budgie and can share some experience?