You are not logged in.
I just installed archlinux and I have had some problems with the gpg command. The keyserver was never able to find the key. I read in the arch linux forum that one soluttion could be downgrading gnupg to a lower version , and so I did that. The problem is that I used this page https://archive.org/download/archlinux_pkg_gnupg which seem to have corrupted files. now I get this error:
NOTE: I looked for the versions in other places such like archlinux archive , downgrade command , etc, but they don't have the version I had so I trusted this page called internet archive.
[alu@archPC Downloads]$ sudo pacman -U /home/alu/Downloads/gnupg-2.1.14-1-x86_64.pkg.tar.xz
[sudo] password for alu:
loading packages...
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: '/home/alu/Downloads/gnupg-2.1.14-1-x86_64.pkg.tar.xz': invalid or corrupted package (PGP signature)
I downloaded a bunch of files in this page , many versions with their signatures and so on . none seems be to working.
After realizing that it was not going to let me install some things on the internet, (because it turns out that you need pgp to install some things, I think)
I have tried to go back to the updated version , so I did this :
[alu@archPC ~]$ sudo pacman -S gnupg
[sudo] password for alu:
:: gnupg is in IgnorePkg/IgnoreGroup. Install anyway? [Y/n] y
resolving dependencies...
looking for conflicting packages...
Packages (1) gnupg-2.2.27-1
Total Download Size: 2.41 MiB
Total Installed Size: 9.88 MiB
Net Upgrade Size: 1.60 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
gnupg-2.2.27-1-x... 2.4 MiB 10.0 MiB/s 00:00 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [######################] 100%
error: GPGME error: Invalid crypto engine
error: gnupg: missing required signature
:: File /var/cache/pacman/pkg/gnupg-2.2.27-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
In summary , what could be a way to reinstall gpg (note that the above message says even though gnupg-2.2.27-1-x86_64.pkg.tar.zst is corrupted was my original version when I installed archlinux and was working perfectly . so I think is a little confusing for me to figure out what is the problem.
thank you all.
Last edited by brandon_izarnotegui (2021-03-04 20:10:21)
Offline
That was a very bad idea. There are buggy keyservers but you can switch which keyserver to use rather than downgrading gpg. Since you effectively broke pacman by doing this, follow https://wiki.archlinux.org/index.php/Pa … an_upgrade
Last edited by V1del (2021-03-04 20:13:08)
Offline