Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

gpg: public key decryption failed: No pinentry

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Abbott
n00b
n00b
Posts: 21
Joined: Mon Mar 23, 2020 7:35 am

gpg: public key decryption failed: No pinentry

  • Quote

Post by Abbott » Tue Feb 23, 2021 2:47 am

I updated my laptop on Saturday and now I am having problems with pinentry. If I try to use gpg, I get the error in the Subject:

Code: Select all

aquarius% gpg -d ~/.password-store/gentoo.org/Abbott.gpg 
gpg: encrypted with 4096-bit RSA key, ID XXXXXXX, created yyyy-mm-dd
      "xxxxx (gpg2 key for pass) <xxxxx@gmail.com>"
gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key
aquarius% 
I can see that pinentry-gnome3 is installed in /usr/bin/ and selected with eselect, I can run pinentry and get "OK Pleased to meet you", and I have tried the solutions listed in other threads I found searching the forums here and here. What is wrong with pinentry?
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Tue Feb 23, 2021 3:07 am

Is "gpg: encrypted with 4096-bit RSA key" what you are expecting. I don't use a key. I encrypt with AES256 and don't see anything about a key.

For troubleshooting pinentry, try switching to another interface, curses or tty.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Tue Feb 23, 2021 3:15 am

You may want to doublecheck that the pinentry symlink is really set how you intend.

Code: Select all

$ ls /usr/bin/pine* -l
lrwxrwxrwx 1 root root     15 Feb 25  2019 /usr/bin/pinentry -> pinentry-curses*
-rwxr-xr-x 1 root root  68944 Jan 25 13:34 /usr/bin/pinentry-curses*
-rwxr-xr-x 1 root root  81520 Jan 25 13:34 /usr/bin/pinentry-gnome3*
-rwxr-xr-x 1 root root 123408 Jan 25 13:34 /usr/bin/pinentry-qt*
lrwxrwxrwx 1 root root     11 Jan 25 13:34 /usr/bin/pinentry-qt5 -> pinentry-qt*
-rwxr-xr-x 1 root root  64616 Jan 25 13:34 /usr/bin/pinentry-tty*
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
VTimofeenko
n00b
n00b
User avatar
Posts: 15
Joined: Thu Feb 04, 2021 10:26 pm

  • Quote

Post by VTimofeenko » Tue Feb 23, 2021 4:09 am

Double-check that the pinentry specified in gpg-agent.conf is one of the installed ones. TK pinentry was recently dropped.

Is dbus actually running? Can you echo $DBUS_SESSION_BUS_ADDRESS in the same shell where gpg fails?

Also, ".password-store" hints at usage of app-admin/pass. Did you use the default keyring when initializing the password store? You can override GPG_HOME when creating the password store.
Top
Abbott
n00b
n00b
Posts: 21
Joined: Mon Mar 23, 2020 7:35 am

  • Quote

Post by Abbott » Tue Feb 23, 2021 5:35 am

VTimofeenko wrote:Double-check that the pinentry specified in gpg-agent.conf is one of the installed ones. TK pinentry was recently dropped.
This was my problem. My ~/.gnupg/gpg-agent.conf had

Code: Select all

pinentry-program /usr/bin/pinentry-gtk-2
which must have been removed in my last update and --depclean. Changing it to /usr/bin/pinentry-gnome3 has fixed everything. Thank you for the help
Top
Post Reply

5 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic