dyne / tomb

the Crypto Undertaker
https://dyne.org/software/tomb
GNU General Public License v3.0
1.34k stars 153 forks source link

Unable to forge key on ArchLinuxARM #146

Closed ghost closed 10 years ago

ghost commented 10 years ago

When using tomb forge test.tomb.key, the following occurs: Screenshot This repeats until I terminate the process from another terminal.

melon3r commented 10 years ago

Which Tomb version are you using?

ghost commented 10 years ago

The output of tomb --version is as follows:

toby@blackbox:~% tomb --version
  Tomb 1.6 - a strong and gentle undertaker for your secrets

   Copyright (C) 2007-2014 Dyne.org Foundation, License GNU GPL v3+
   This is free software: you are free to change and redistribute it
   The latest Tomb sourcecode is published on <http://tomb.dyne.org>

   This source code is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   Please refer to the GNU Public License for more details.

  System utils:

pinentry: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
main:236: can't create temp file for here document: no such file or directory
ghost commented 10 years ago

This issue also occurs when using the latest stable version (1.5.3), though the ask_password messages do not appear, only the tomb warnings.

melon3r commented 10 years ago

It looks like there's something wrong with pinentry. I see you are not running X, so you should install pinentry-curses instead of pinentry-gtk. That's probably causing the problems.

ghost commented 10 years ago

I can't seem to find a pinentry-curses package in the Arch package db. https://www.archlinux.org/packages/?sort=&q=pinentry-curses

EDIT: Nevermind. Turns out it was already installed with the pinentry package.

ghost commented 10 years ago

I tried appending pinentry-program /usr/bin/pinentry-curses to ~/.gnupg/gpg-agent.conf, but to no avail, the problem persists.

boyska commented 10 years ago

In archlinux, pinentry-curses is included in pinentry package

melon3r commented 10 years ago

Yeah, I see. I've never used Arch... Is there anything similar to the update-alternatives from Debian?

melon3r commented 10 years ago

@rossotorres Tomb calls pinentry directly, so ~/.gnupg/gpg-agent.conf has no effect.

ghost commented 10 years ago

Problem solved! A simple sudo ln -sf /usr/bin/pinentry-curses /usr/bin/pinentry did it! Thanks for the quick help, everyone! :)