修复yaourt pacman gpg错误

1
2
3
4
5
6
7
8
9
10
11
12
# !/bin/sh 

sudo rm -R /etc/pacman.d/gnupg/

su
rm -R /root/.gnupg/

sudo gpg --refresh-keys

sudo pacman-key --init && pacman-key --populate archlinux manjaro
sudo pacman-key --refresh-keys
sudo pacman -Syyu

操作流程是从原路径中删除系统原来的gpg文件,然后重新从软件仓库下载新gpg文件.