Gpg: Problem with the agent: No pinentry

From FVue
Jump to: navigation, search


When trying to use gpg, I receive this error:

gpg: problem with the agent: No pinentry


The problem is caused because I have specified use-agent in my ~/.gnupg/gpg.conf. This will startup a gpg-agent daemon when I enter my X session and this gpg-agent will store gpg passphrases. Gpg-agent uses a separate 'pinentry' program for safe entering of passphrases. Apparently this pinentry program isn't installed.

Search for available pinentry programs:

sudo apt-cache search pinentry

Choose pinentry-gtk2 for Ubuntu (Gnome), pinentry-qt for Kubuntu (KDE) or pinentry-curses for console. Install the pinentry program:

sudo apt-get install pinentry-gtk2


  • Ubuntu-7.10 (Gutsy Gibbon)


blog comments powered by Disqus