You are not logged in.

#1 2015-12-22 21:34:15

todayalemon
Member
Registered: 2013-06-09
Posts: 17

invalid or corrupted package (PGP signature) / gpg binary missing

Hello folks!

Recently I failed to complete a pacman upgrade (Syu). It was running while some weird flash monster website froze the system.

When I try an upgrade of my system now, I get consistent aborts:

(1/X) checking package integrity
error: GPGME error: Invalid crypto engine
error: gnupg: missing required signature
:: File /var/cache/pacman/pkg/XXXXXXXXX.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Tried some random things after using the Google, no success:

sudo pacman-key --init
==> ERROR: Cannot find the gpg binary required for all pacman-key operations.
sudo pacman-key --populate archlinux
==> ERROR: Cannot find the gpg binary required for all pacman-key operations.

If I disable SigLevel in /etc/pacman.conf:

#SigLevel    = Required DatabaseOptional
SigLevel = Never

I get the upgrade done with sudo pacman --Syu.

How can I get PGP verification back?

Thanks in advance!

Offline

#2 2015-12-22 21:37:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: invalid or corrupted package (PGP signature) / gpg binary missing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-12-23 14:38:02

todayalemon
Member
Registered: 2013-06-09
Posts: 17

Re: invalid or corrupted package (PGP signature) / gpg binary missing

Hey!
Thanks for the quick reply and link!

If you meant to try this (as I was reporting an unsuccessful upgrade in the first place):

 find /var/cache/pacman/pkg/ -iname "*.part" -exec rm {} \;

Did not help.

I tried the pacman -Scc switch as well. No result.


Thanks again!

Offline

#4 2015-12-23 15:02:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: invalid or corrupted package (PGP signature) / gpg binary missing

Reinstall gpg and gpgme

Online

#5 2015-12-24 17:47:45

todayalemon
Member
Registered: 2013-06-09
Posts: 17

Re: invalid or corrupted package (PGP signature) / gpg binary missing

Hey,
when I try to remove the gpgme and gnupg packages I get stuck at

error: failed to prepare transaction (could not satisfy dependencies)
:: gpgmepp: requires gpgme
:: kdepimlibs4: requires gpgme
:: pacman: requires gpgme

Shall I reinstall all the dependencies as well?

Offline

#6 2015-12-24 20:22:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: invalid or corrupted package (PGP signature) / gpg binary missing

I didn't say remove them

Online

Board footer

Powered by FluxBB