I've just started using Manjaro Linux, but my pacman appears to have become messed up.
When I try to install any package, I get an error along the lines of this:
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: lemonbar-xft: missing required signature
:: File /var/cache/pacman/pkg/lemonbar-xft-269.00a3fe6-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
However, when I run sudo pacman-key --init
it says:
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
chmod: cannot access '/etc/pacman.d/gnupg//trustdb.gpg': No such file or directory
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
==> Updating trust database...
gpg: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
==> ERROR: Trust database could not be updated.