I tried everything, but I don‘t get Enigmail running – though i installed it several times in different (Linux-)OS before. Thanks in advance for helping!
The problem:
1. I can import keys and get a list of the public keys, but I don't get the secret keys imported/working.
2. I can open the window for generating a key, but as soon as I klick on the "generate"-button it says that the key-generation failed and that I should check the logfile (see below).
3. Therefore I can't encrypt or decrypt any message
I exported all of my keys from Debian-Xfce. The secret keys are included in that file: I can import them successfully to gpg2 via the console. But it doesn't work in Enigmail
What have I tried out?
I did everything explained in troubleshooting (resolving issues with GnuPG/gpg-agent): https://enigmail.net/index.php/en/faq-en?view=topic&id=14
Outcomes/Infos:
* Pinentry seems to work (graphical version)
* gpg-connect-agent is in use. It says: D 2.2.12 OK (that refers to step 4 of the troubleshooting)
* The file $HOME/.gnupg/gpg.conf was not existing. It now contains a "use-agent" line. (chown rights: 600, like for the gpg-agent.conf:
* The file $HOME/.gnupg/gpg-agent.conf was not existing. I created it and it now contains these lines:
gpg-agent[5446]:WARNUNG:"--use-standard-socket"isteineveralteteOption-siehatkeineWirkung.*## translation: --use-standard-socket is an outdated version. It doesn't have any effect ##*gpg-agent[5446]:enableddebugflags:cacheipcgpg-agent[5446]:DBG:chan_4<-OKPleasedtomeetyou,process5446gpg-agent[5446]:DBG:chan_4->BYEgpg-agent:Eingpg-agentläuftbereits-einweitererwirdnichtgestartet*## translation: a gpg-agent runs already - anotherone is not going to be started ##*gpg-agent:secmemusage:0/65536bytesin0blocksmanuel@XXXXXXXXXX:~$
I tried killing the process by running "killall gpg-agent" again. It works - because when I then enter "killall gpg-agent" once more it says: "gpg-agent: no process found" (translated from German). But when I then insert the above line for debugging gpg-agent the same message as above appears. I therefore cannot do the step for debugging...
I would be very reliefed if one of you can help me out and knows a solution! I've read a lot of posts in Forums, but I've never written one. So please let me know if you need more information.
All the best,
Manuel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Patrick,
you'll find the Enigmail logfile in the attachement. I first imported all of the keys (no failure message). Then I tried to generate a new key - did not work. To secure privacy I made the keys and mails anonymous. Because it were too many keys I decided to delete some lines with the same pattern but personal data (would have been too much work to make all lines with exactly the same pattenr anonymous). If it though destroyed some important info for you, I can send you the file with personal data in a private message or something like that
Furthermore: In the gpg-agent.conf I inserted these two lines (because the debugging mode didn't work - see above):
But: the logfile didn't change while I ran Enigmail. My guess: It somehow didn't start the gpg-agent - otherwise the logfile would have changed, wouldn't it? But: I don't know ;-)
The problem with snap is that it does not use your home directory, but other paths. According to the log file, your Gnupg home directory is in /home/manuel/snap/thunderbird/common/.gnupg
But this will likely not work well (there's at least one more user having reported the same problem). You might want to set a global environment variable GNUPGHOME.
But does that mean that Enigmail is likely to not work at all?
I now tried the following (I've not worked with environment variables before, let me know if anything is wrong):
- Creating the file /etc/systemd/system.conf.d/20-environment-variables.conf
- I inserted the following - and tried out both options (each after restarting):
But does that mean that Enigmail is likely to not work at all?
No, I don't think so. This log is more complete and allows me to tell you exactly what is wrong. GnuPG is provided in the Thunderbird-snap package. However, what is provided does not work. GnuPG in snap is installed in /snap/thunderbird/48/usr/bin/gpg but it tries to start /usr/bin/gpg-agent which does obviously not exist.
I'd suggest you install GnuPG via your Linux distribution, i.e. not as snap package. Then restart Thunderbird. Looking at the log file, I think this should fix the issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Patrick,
I've not had time during the last weeks to care for it. But now I managed. AND: It worked! :-) Thank you so much for your time, I'm really glad that it helped & worked. You found the problem, but:
GnuPG was not installed in snap (see below). It's not available via snap for me. I had to uninstall Thunderbird as a whole (remove it from snap) and reinstall it via apt (not in snap). Then both (thunderbird+GnuPG) were not installed in snap and now it works.
Again: Thanks a lot! :-)
Here's the terminal-print of snap - showing that only Thunderbird was installed via snap, GnuPG not. (before reinstallation)
Dear supporters,
I tried everything, but I don‘t get Enigmail running – though i installed it several times in different (Linux-)OS before. Thanks in advance for helping!
The problem:
1. I can import keys and get a list of the public keys, but I don't get the secret keys imported/working.
2. I can open the window for generating a key, but as soon as I klick on the "generate"-button it says that the key-generation failed and that I should check the logfile (see below).
3. Therefore I can't encrypt or decrypt any message
I exported all of my keys from Debian-Xfce. The secret keys are included in that file: I can import them successfully to gpg2 via the console. But it doesn't work in Enigmail
My system:
* Ubuntu 19.10 with Gnome 3.34.2
* Thunderbird 68.4.1
* Enigmail 2.1.5
* gpg / gpg-agent / gpg2 version: 2.2.12
* libgcrypt 1.8.1
* pinentry-gnome3 1.1.0
Some lines from the Enigmail-logfile (let me know if you need more):
What have I tried out?
I did everything explained in troubleshooting (resolving issues with GnuPG/gpg-agent): https://enigmail.net/index.php/en/faq-en?view=topic&id=14
Outcomes/Infos:
* Pinentry seems to work (graphical version)
* gpg-connect-agent is in use. It says: D 2.2.12 OK (that refers to step 4 of the troubleshooting)
* The file $HOME/.gnupg/gpg.conf was not existing. It now contains a "use-agent" line. (chown rights: 600, like for the gpg-agent.conf:
* The file $HOME/.gnupg/gpg-agent.conf was not existing. I created it and it now contains these lines:
The only step that didn't work
is step 7 from troubleshooting. I tried the following
but it says:
I tried killing the process by running "killall gpg-agent" again. It works - because when I then enter "killall gpg-agent" once more it says: "gpg-agent: no process found" (translated from German). But when I then insert the above line for debugging gpg-agent the same message as above appears. I therefore cannot do the step for debugging...
I would be very reliefed if one of you can help me out and knows a solution! I've read a lot of posts in Forums, but I've never written one. So please let me know if you need more information.
All the best,
Manuel
Can you post the part of the log where I can see what happens if you import secret keys and/or create a new key?
Hey Patrick,
you'll find the Enigmail logfile in the attachement. I first imported all of the keys (no failure message). Then I tried to generate a new key - did not work. To secure privacy I made the keys and mails anonymous. Because it were too many keys I decided to delete some lines with the same pattern but personal data (would have been too much work to make all lines with exactly the same pattenr anonymous). If it though destroyed some important info for you, I can send you the file with personal data in a private message or something like that
Furthermore: In the gpg-agent.conf I inserted these two lines (because the debugging mode didn't work - see above):
But: the logfile didn't change while I ran Enigmail. My guess: It somehow didn't start the gpg-agent - otherwise the logfile would have changed, wouldn't it? But: I don't know ;-)
If you need anything else - just tell me :-)
The problem with snap is that it does not use your home directory, but other paths. According to the log file, your Gnupg home directory is in /home/manuel/snap/thunderbird/common/.gnupg
But this will likely not work well (there's at least one more user having reported the same problem). You might want to set a global environment variable GNUPGHOME.
But does that mean that Enigmail is likely to not work at all?
I now tried the following (I've not worked with environment variables before, let me know if anything is wrong):
- Creating the file /etc/systemd/system.conf.d/20-environment-variables.conf
- I inserted the following - and tried out both options (each after restarting):
I did not know which of the above directories you meant for setting the GNUPGHOME...
But: I tried "snap list" in a terminal. It doesn't list gpg or anything like that. Why is it though using the snap-directory?
If you think that it's the fault of snap: Is it possible to newly install Enigmail, GPG, Thunderbird or whatever neccessary without snap?
In the attachment you'll find the current logfile. It didn't work after the changes.
In another logfile (trying to read an encrypted message) it said:
and:
(I didn't insert that file here because it contained the mail addresses so often that I didn't now how to get it anonymous...)
Greetings and thanks!
Last edit: Manuel Wiemann 2020-02-20
No, I don't think so. This log is more complete and allows me to tell you exactly what is wrong. GnuPG is provided in the Thunderbird-snap package. However, what is provided does not work. GnuPG in snap is installed in
/snap/thunderbird/48/usr/bin/gpg
but it tries to start/usr/bin/gpg-agent
which does obviously not exist.I'd suggest you install GnuPG via your Linux distribution, i.e. not as snap package. Then restart Thunderbird. Looking at the log file, I think this should fix the issue.
Dear Patrick,
I've not had time during the last weeks to care for it. But now I managed. AND: It worked! :-) Thank you so much for your time, I'm really glad that it helped & worked. You found the problem, but:
GnuPG was not installed in snap (see below). It's not available via snap for me. I had to uninstall Thunderbird as a whole (remove it from snap) and reinstall it via apt (not in snap). Then both (thunderbird+GnuPG) were not installed in snap and now it works.
Again: Thanks a lot! :-)
Here's the terminal-print of snap - showing that only Thunderbird was installed via snap, GnuPG not. (before reinstallation)