Invalid or corrupted gpg errors @ pacstrap /mnt base

Arch Linux卸载软件时不小心将关键依赖一并卸载了。

用LIVE-CD优盘修复系统的时候发现标题所示错误。

Note:请先挂载根分区和启动分区

先将以下文件里的国内镜像源去注释,再进行更新

更新

进行时间同步:

更新keyring:

网上有人是用以下方法解决的

I was stuck with this error for a while. Changed my choice of mirror several times, but still always the error. Finally I ran

Then the next time I ran pacstrap it worked (using a different mirror than when I originally had the problem). Thanks to https://bbs.archlinux.org/viewtopic.php?id=142798 for suggesting that solution

对我不管用,我是在/etc/pacman.conf里[core]下面添加如下参数

添加后就是这样了

之后执行前面的更新命令再安装就可以了,我安装的软件是属于core下的,如果是其他类型的,在对应类型下方添加TrustAll应该也是可以的

最后运行

成功安装后reboot重启,整个过程不用arch-chroot到/mnt