[intrepid] Wrong passphrase message when correct one is entered - due to protocol incompatibility between pinentry-qt4 and gpg-agent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pinentry-qt4 (Ubuntu) |
Fix Released
|
Low
|
Rich Johnson |
Bug Description
Binary package hint: enigmail
I installed intrepid from scratch on a different partition and copied the .gnupg folder into the new user for intrepid. When I use enigmail (within thunderbird) in intrepid, I get the following error message
OpenPGP Security Info
Error - secret key needed to decrypt message
gpg command line and output:
/usr/bin/gpg --charset utf8 --batch --no-tty --status-fd 2 -d --use-agent
gpg: NOTE: old default options file `/home/
gpg: problem with the agent - disabling agent use
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: encrypted with 2048-bit ELG-E key, ID XXXXXXXX, created 2006-11-30
"
gpg: encrypted with 2048-bit ELG-E key, ID XXXXXXXX, created 2007-11-09
"XXXXXXXXXXX <XXXXXXXXX@
gpg: public key decryption failed: bad passphrase
gpg: decryption failed: secret key not available
(e-mail addresses and key IDs are redacted)
I do enter the correct passphrase. I have tried the same in hardy and everything works still fine.
The difference to Bug #268951 is that I get a window to enter the passphrase and I am able to enter the correct one. Still I get the same result.
WORKAROUND:
use "sudo update-alternatives --config pinentry" and choose pinentry-qt instead of pinentry-qt4
Changed in pinentry-qt4: | |
status: | In Progress → Fix Released |
The problem is in the communication between the gpg-agent and the pinentry program as the following debug output shows:
2008-10-10 23:29:50 gpg-agent[10699] starting a new PIN Entry
2008-10-10 23:29:50 gpg-agent[10699] DBG: connection to PIN entry established
2008-10-10 23:29:50 gpg-agent[10699] You may want to update to a newer pinentry
2008-10-10 23:29:55 gpg-agent[10699] command get_passphrase failed: Invalid IPC response
gpg-agent[10699.6] DBG: -> ERR 67109124 Invalid IPC response <GPG Agent>
gpg-agent[10699.6] DBG: <- BYE
gpg-agent[10699.6] DBG: -> OK closing connection
2008-10-10 23:29:55 gpg-agent[10699] handler 0x82d99f8 for fd 6 terminated