Happened to me on Kubuntu 14.04. I ran hp-setup without sudo. It asked me to enter my login password most likely to get sudo rigths anyway. On subsequent restart my ~/.gnupg/pubring.gpg and also backup ~/.gnupg/pubring.gpg~ were owned by root. Chown to my user restored the functionality back.
I do not see any information added even though I reported this via ubuntu-bug. hplip version 3.14.3-0ubuntu3.2 Linux *** 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to hplip in Ubuntu. https://bugs.launchpad.net/bugs/1018122 Title: sudo hp-setup breaks gpg Status in “hplip” package in Ubuntu: Confirmed Bug description: runned sudo hp-setup, configured network all-in-one printer/scanner, installed the drivers that it asked to install and end up getting an error doing "gpg --list-keys" and mutt failing to sign emails. After some digging found out that pubring.gpg and pubring.gpg~ on ~/.gnupg/ had root.root owner. btw, if i shouldn't run that with sudo there is a documentation bug here: https://help.ubuntu.com/community/ScanningHowTo#LAN- based_scanners ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: hplip 3.12.2-1ubuntu3 [modified: var/lib/hp/hplip.state] ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18 Uname: Linux 3.2.0-25-generic x86_64 ApportVersion: 2.0.1-0ubuntu8 Architecture: amd64 Date: Tue Jun 26 15:48:12 2012 InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) Lpstat: device for Hewlett-Packard-HP-LaserJet-CM1415fnw: hp:/net/HP_LaserJet_CM1415fnw?zc=dhcppc0 device for HP_LaserJet_CM1415fnw: hp:/net/HP_LaserJet_CM1415fnw?zc=dhcppc0 device for HP_LaserJet_CM1415fnw_fax: hpfax:/net/HP_LaserJet_CM1415fnw?zc=dhcppc0 MachineType: LENOVO 1024DDU Papersize: letter PpdFiles: HP_LaserJet_CM1415fnw_fax: HP Fax2 hpcups Hewlett-Packard-HP-LaserJet-CM1415fnw: HP LaserJet cm1415fnw pcl3, hpcups 3.12.2 HP_LaserJet_CM1415fnw: HP LaserJet 2410 Foomatic/Postscript ProcEnviron: TERM=xterm PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-25-generic root=UUID=a1e29e70-552e-4ef4-a20e-f750fd241d35 ro quiet splash vt.handoff=7 SourcePackage: hplip UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 10/21/2011 dmi.bios.vendor: LENOVO dmi.bios.version: 45CN38WW dmi.board.asset.tag: Base Board Asset Tag dmi.board.name: Emerald Lake dmi.board.vendor: LENOVO dmi.board.version: FAB1 dmi.chassis.asset.tag: Asset Tag dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: 0.1 dmi.modalias: dmi:bvnLENOVO:bvr45CN38WW:bd10/21/2011:svnLENOVO:pn1024DDU:pvrIdeapadZ570:rvnLENOVO:rnEmeraldLake:rvrFAB1:cvnLENOVO:ct10:cvr0.1: dmi.product.name: 1024DDU dmi.product.version: Ideapad Z570 dmi.sys.vendor: LENOVO To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1018122/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp