我刚刚开始使用Manjaro,但我的pacman似乎变得一团糟。
当我试图安装任何软件包时,我会得到一个类似于以下内容的错误:
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)).然而,当我运行sudo pacman-key --init时,它说:
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.发布于 2019-03-05 13:05:05
可能你的系统处于部分升级状态。
首先,不要关闭您的终端,因为很可能bash没有读行就无法工作。
其次,尝试在/var/cache/pacman/pkg中搜索readline-7.0*,或者从arch linux存档下载旧包。您需要自己提取读行并安装丢失的.so文件。
在这里阅读更多关于类似问题的信息:Arch Linux上的gnupg自从读行升级后就坏了--找不到ligroline.so.6
https://unix.stackexchange.com/questions/504493
复制相似问题