You are not logged in.

#1 2023-01-04 15:43:04

piezoelement
Member
Registered: 2023-01-04
Posts: 3

pass shows "gpg: error getting version from 'scdaemon': Not supported"

I'm trying to use pass program in my custom scripts, and get output "gpg: error getting version from 'scdaemon': Not supported" and also my password.
I never used smart cards and doesn't have any card readers, but for a while I've got an error "gpg: selecting card failed: No such device".
I solved it by adding the line in gpg-agent.conf

disable-scdaemon

But it shows another error message "gpg: error getting version from 'scdaemon': Not supported".

gpg.conf

keyid-format short
throw-keyids
no-emit-version
no-comments

gpg-agent.conf

pinentry-program /usr/bin/pinentry-tty
max-cache-ttl 60480000
default-cache-ttl 60480000
allow-preset-passphrase
disable-scdaemon

gpg version: 2.2.40
pass version: v1.7.4

Offline

#2 2023-01-05 04:04:15

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: pass shows "gpg: error getting version from 'scdaemon': Not supported"

Does it work not in a script? That is, if you just try using pass at the command line? If not, that's where you want to troubleshoot first. If so, what's in the script?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2023-01-05 08:18:37

piezoelement
Member
Registered: 2023-01-04
Posts: 3

Re: pass shows "gpg: error getting version from 'scdaemon': Not supported"

Ok, in scripts it's work properly, that was my fault.
But gpg always throw an error. And I want to know what is the reason for this error, since this has not happened before.
2023-01-05-12-59.png

Offline

#4 2023-01-06 01:52:10

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: pass shows "gpg: error getting version from 'scdaemon': Not supported"

What do

$ gpgconf --list-components
$ pacman -Qo /usr/lib/gnupg/scdaemon 

return?
Please don't post images of text.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2023-01-06 10:02:14

piezoelement
Member
Registered: 2023-01-04
Posts: 3

Re: pass shows "gpg: error getting version from 'scdaemon': Not supported"

$ gpgconf --list-components

gpg:OpenPGP:/usr/bin/gpg
gpgsm:S/MIME:/usr/bin/gpgsm
gpg-agent:Private Keys:/usr/bin/gpg-agent
scdaemon:Smartcards:/usr/lib/gnupg/scdaemon
dirmngr:Network:/usr/bin/dirmngr
pinentry:Passphrase Entry:/usr/bin/pinentry
$ pacman -Qo /usr/lib/gnupg/scdaemon

/usr/lib/gnupg/scdaemon is owned by gnupg 2.2.40-1

Offline

Board footer

Powered by FluxBB