[pass] "No public key" - help?

Lenz Weber mail at lenzw.de
Sat Mar 14 15:03:24 CET 2015


So now we have your GPG call.

On 14.03.2015 14:54, Matthias Beyer wrote:
> gpg2 -e -r 20CA0F94 -o /home/m/.password-store/test.gpg --quiet
> --yes --compress-algo=none --no-encrypt-to --batch --use-agent

I can only guess it's something in the path that will call a version
of gpg that does not interpret your current ~/.gnupg keystore correctly.

Give this a try:

PATH=/nix/store/ywz91g42p1fir3davm11k5affj64s7ar-coreutils-8.23/bin:/nix/store/wb5aj7k6237p0izlflfj3kvd69a18rcy-gnused-4.2.2/bin:/nix/store/zfr75gwya5cqfk531djpbhs0gnn41n5a-getopt-1.1.4/bin:/nix/store/bmn93al17l6ysbagg5jc6bm44xr83ylg-gnupg1compat-0/bin:/nix/store/4mhm1cl2mx8x30xi7wazzyla7g86crb8-git-2.3.0/bin:/nix/store/g75lq2kmfwx5sdqni6khv04kdklh3kq9-tree-1.7.0/bin:/nix/store/4kaxf8sf2c9k1v87bkwm52869wg25f60-pwgen-2.07/bin:/nix/store/d7b58pgi42n3wi24f93w98y114cgwhhf-xclip-0.12-svn-20140209/bin:/home/m/bin:/var/setuid-wrappers:/home/m/.nix-profile/bin:/home/m/.nix-profile/sbin:/home/m/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/run/current-system/sw/bin:/run/current-system/sw/sbin:/run/current-system/sw/lib/kde4/libexec:/home/m/archive/bin
bash -c "gpg2 --version"

If it's not 2.1.*, you have your culprit.
When gpg made the transition to 2.1, the complete key storage system
moved from ~/.gnupg/pubring.gpg and ~/.gnupg/secring.gpg to
~/.gnupg/private-keys-v1.d/something

Which means older versions have no way of knowing and using this.

In that case you might need to find a way to make password-store
dependent on a newer version of gpg.


More information about the Password-Store mailing list