kmail: cannot sign emails after upgrading to Intrepid Ibex

Bug #297976 reported by Oernie on 2008-11-14
This bug affects 10 people
Affects Status Importance Assigned to Milestone
kdepim (Ubuntu)

Bug Description

Binary package hint: kdepim

After upgrading my Kubuntu to from Hardy Heron to Intrepid Ibex (KDE 3.5.10 -> KDE 4.1.2), I cannot sign emails any more. Kmail/Kontact does not ask for the passphrase and hence returns the error message "Signieren fehlgeschlagen: Bad passphrase" (~Signing failed: Bad passphrase).

Oernie (arne-henningsen) wrote :

I have the same problem on another computer where Intrepid Ibex has been newly installed (no upgrade): Kmail does not ask for a passphrase and hence, I cannot sign my emails :-( Is there a workaround until this bug has been fixed?

Volker Lanz (vl-fidra) wrote :

This is a configuration problem. There's a howto about the topic here:

Matthew Carpenter (matt-eisgr) wrote :

pinentry-qt is missing.
apt-get install pinentry-qt
I would think this should be installed automatically with kgpg.

Oernie (arne-henningsen) wrote :

Thanks for the hint. pinentry-qt was indeed not installed. However, installing this did not solve the problem :-( Following the instructions on (suggested above by Volker Lanz) also did not solve the problem:
$ echo "test" | gpg -ase -r 0xDEADBEEF | gpg
works but kmail still does not ask for a passphrase :-( :-( :-(

I can confirm the bug with kde4.2.1 as provided by "deb intrepid main" in /etc/apt/sources.list. I reacently upgraded for 8.04 to 8.10.

There are at least theses 2 bug reports, which seem to be related:

Temporary workaround (see link in comment 3 and 4):
End kmail (or whatever is supposed to ask for the passphrase) and from a console:
$ eval "$(gpg-agent --daemon)"
$ kmail

Permanent Workaround (untested):
Put "$(gpg-agent --daemon)" into /.kde/env/

In my humble opinion, all the bug reports, including this one, are assigned to the wrong packages (kdepim, gnupg, enigmail). As nobody with another desktop environment than KDE seems to have a problem (??), some KDE-package (kdebase* or kdelibs*) might be more appropriate.

As the issue seems to be unsolved for more than 3 months and the bug renders the system unusable for sending signed and reading encrypted mails for a 'normal' user, being a regression from 8.04, one might consider to change the importance of the bug.

Some system information:
gnupg 1.4.9-3ubuntu1
gnupg-agent 2.0.9-3.1
gnupg2 2.0.9-3.1
gpgsm 2.0.9-3.1
gpgv 1.4.9-3ubuntu1
kdebase-bin 4:4.2.1-0ubuntu1~intrepid2
kdebase-data 4:4.2.1-0ubuntu1~intrepid2
kdelibs-bin 4:4.2.1a-0ubuntu1~intrepid1
kdelibs5 4:4.2.1a-0ubuntu1~intrepid1
kdepimlibs5 4:4.2.1-0ubuntu1~intrepid1
pinentry-qt 0.7.5-2ubuntu1
pinentry-qt4 0.7.3+svn799201-1ubuntu1
# update-alternatives --display pinentry
 link currently points to /usr/bin/pinentry-qt4
$ im-switch -l
Your input method setup under en_GB locale as below.
No private "~/.xinput.d/en_GB or ~/.xinput.d/all_ALL" is defined.
The system wide default is pointed by "/etc/alternatives/xinput-all_ALL" .

Alvin (alvind) wrote :

Let's start by confirming the bug. It's also present in Jaunty (KDE 4.2.4)

Changed in kdepim (Ubuntu):
status: New → Confirmed

I reconfirm the bug for KDE 4.3rc1, I installed with kdepim_4.2.95a-0ubuntu1~jaunty~ppa1_all.deb under Jaunty from backports.

To make matters worse, the permanent workaround described in does not work anymore. However, the temporary workaround still works.

MartaW (wajda-marta) wrote :

I confirm the bug for Kmail 1.12.2 using KDE 4.3.2. It also appeared for me on newly installed Ubuntu 9.10 and Kmail with default settings.

LimCore (limcore) wrote :

Happens on another box, clean 9.10 amd64 install, with:
kmail 4:4.3.2-0ubuntu6

Happens at random.
Sometimes restart of system makes this go away, sometimes not.

LimCore (limcore) wrote :

Starting eval "$(gpg-agent --daemon)" helps, for the "other box" (box "jumpi") - it seems it happens when users are logged in via ssh -X instead of normally starting gnome DM; Perhaps this is causing the problem too?

LimCore (limcore) wrote :

This bug makes it harder to use OpenPGP signatures - security related bug then.

security vulnerability: no → yes
security vulnerability: yes → no
emil.s (emil.s) wrote :

Just made it working! :)


pinentry-program /usr/bin/pinentry-qt
default-cache-ttl 1800

eval "$(gpg-agent --daemon)"


pinentry-qt4 didn't work here.
If you have kleopatra installed, you can "debug" with it's selftest.

Matthew Carpenter (matt-eisgr) wrote :

This problem bit me again when upgrading to Kubuntu Natty 11.04

The problem is that /usr/bin/pinentry-qt is now replaced by /usr/bin/pinentry-qt4

This must be updated in the gpg-agent.conf file "pinentry-program" entry.

tags: added: eol intrepid natty

Thanks for taking the time to report this bug to help make Kubuntu better. Intrepid/Natty reached EOL a while ago.

Please see this document for currently supported Kubuntu releases:

Unfortunately this means that there will be no more bugfixes for Intrepid/Natty.

It is also recommended that you upgrade, if you have not already.

P.S.: This bug-report is now marked as "invalid" in order to allow the bug-bot to close it.

Please feel free to report any other bugs you may find, and thanks for your understanding.

Changed in kdepim (Ubuntu):
status: Confirmed → Invalid
summary: - kmail: cannot sign emails after upgradind to intrepid ibex
+ kmail: cannot sign emails after upgrading to Intrepid Ibex
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers