MacGPG: gpg: selecting card failed: Operation not supported by device
This subject is related to these discussions:
After rebooting my Macbook today, after a GPG tools update i started being unable to use gpg with my yubikey. I get the following errors:
gpg: selecting card failed: Operation not supported by device
gpg: OpenPGP card not available: Operation not supported by device
From all other perspectives the key looks fine: the OS recognizes it, ykman lists it, etc.
Attaching screenshot of installed version.
I'm not sure what is the problem here as I haven't tried debugging it deep enough, but from my googling this looks like a common regression in gnupg
Comments are currently closed for this discussion. You can start a new one.
|?||Show this help|
|ESC||Blurs the current field|
|r||Focus the comment reply box|
|^ + ↩||Submit the comment|
You can use
Command ⌘ instead of
Control ^ on Mac
1 Posted by John on 17 Jun, 2021 02:10 PM
Wanted to add this here, this is the log from scdaemon:
2 Posted by John on 17 Jun, 2021 02:17 PM
You can close this discussion as solved, I was able to locate the problem.
For some reason scdaemon was looking at a USB smart card reader I have for the PGP keys. Since the reader had no card inserted it was failing and not checking the Yubikey.
Solution is to either remove the reader, or to add the following in
After this it started working.
Apologies for the noise.
Support Staff 3 Posted by Steve on 17 Jun, 2021 09:47 PM
thanks for reporting the problem and also sharing your solution. As this discussion is public maybe it will help others running into a similar situation.
Glad this is already solved for you. I'm closing this discussion. Should you need further assistance or have questions you can re-open this discussion here or open a new one any time.
Steve closed this discussion on 17 Jun, 2021 09:47 PM.