Problem with the agent, gpg2

Charly Avital shavital at mac.com
Sun Nov 15 17:13:46 CET 2009


Mario Castelán Castro wrote the following on 11/14/09 11:31 PM:
> November 14th 2009 for gnupg-users at gnupg.org subject "Problem with the
> agent, gpg2"
> 
> Hi, I sucefulle compiled and installed GNU PG 2.0.12 but when i do
> some operation than requires a password i get a message like the
> following.
> 
> Someone can tellme how to fix it?.
> 
> marioxcc at Q6600-0:~/emacs$ gpg2 --clearsign
> 
> You need a passphrase to unlock the secret key for
> user: "Mario Xerxes Castelan Castro <mariocastelancastro at gmail.com>"
> 1024-bit DSA key, ID 32E27388, created 2009-08-07
> 
> gpg: problem with the agent: Not supported
> gpg: no default secret key: General error
> gpg: [stdin]: clearsign failed: General error
> 
> marioxcc at Q6600-0:~/emacs$ gpg2 -c
> gpg: problem with the agent: Not supported
> gpg: error creating passphrase: Operation cancelled
> gpg: symmetric encryption of `[stdin]' failed: Operation cancelled


I can only guess that gpg-agent has not been properly installed, in
spite of your successful compilation and installation.

Is gpg-agent pointing to the right pinentry program?  It probably
defaulted to one under /usr/local/ but I suspect that yours lives
under /usr/ - edit ~/.gnupg/gpg-agent.conf as appropriate and restart
gpg-agent.

A work around (not the orthodox solution I'm afraid) would be to enter
in ~/.gnupg/gpg-agent.conf a line that should point to the real location
of pinentry in your system.

Something like:
pinentry-program "path to pinentry"

Charly







More information about the Gnupg-users mailing list