Multiple keyring/signature errors when trying to update

I tried to do an update for the first time in months with pacman -Syu but got the error message “The file … is corrupted (invalid or corrupted package (PGP signature))”. I’ve searched multiple forum threads and each thing I have tried has just resulted in another error. The last thing I have tried is:

$ sudo pacman -S archlinux-keyring

This resulted in the following output:

$ sudo pacman -S archlinux-keyring
[sudo] password for vigenere: 
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...

Packages (3) base-3-2  manjaro-keyring-20220514-2  manjaro-system-20220727-1

Total Download Size:   0.57 MiB
Total Installed Size:  0.71 MiB
Net Upgrade Size:      0.54 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 manjaro-keyring-20220514-2-any                                                                                   548.8 KiB  2032 KiB/s 00:00 [#######################################################################################] 100%
 manjaro-system-20220727-1-any                                                                                     18.1 KiB  1129 KiB/s 00:00 [#######################################################################################] 100%
 base-3-2-any                                                                                                      14.0 KiB   877 KiB/s 00:00 [#######################################################################################] 100%
 Total (3/3)                                                                                                      580.8 KiB  1600 KiB/s 00:00 [#######################################################################################] 100%
(3/3) checking keys in keyring                                                                                                                [#######################################################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
(3/3) checking package integrity                                                                                                              [#######################################################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: manjaro-keyring: missing required signature
:: File /var/cache/pacman/pkg/manjaro-keyring-20220514-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: base: missing required signature
:: File /var/cache/pacman/pkg/base-3-2-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: manjaro-system: missing required signature
:: File /var/cache/pacman/pkg/manjaro-system-20220727-1-any.pkg.tar.xz 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.

warning: archlinux-keyring-20220927-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) archlinux-keyring-20220927-1

Total Download Size:   1.11 MiB
Total Installed Size:  1.57 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 archlinux-keyring-20220927-1-any                                                                                1136.1 KiB  3.29 MiB/s 00:00 [#######################################################################################] 100%
(1/1) checking keys in keyring                                                                                                                [#######################################################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity                                                                                                              [#######################################################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: archlinux-keyring: missing required signature
:: File /var/cache/pacman/pkg/archlinux-keyring-20220927-1-any.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.

I then tried to run:

sudo pacman-key --init

Which gave another error:

$ sudo pacman-key --init
gpg: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gpg)
chmod: cannot access '/etc/pacman.d/gnupg//trustdb.gpg': No such file or directory
gpg: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gpg)
gpg: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gpg)
==> Generating pacman master key. This may take some time.
gpg: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gpg)
==> Updating trust database...
gpg: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by gpg)
==> ERROR: Trust database could not be updated.

If there is any more information I can provide, I am happy to do so.

Hello
I had same problem System Crash during update
It was fixed for me