오랜만에 아치에 들어와서 패키지 업데이트를 하니 아래와 같이 에러가 발생했다.
$ pacman -Syu
...
Do you want to delete it? [Y/n] y
error: speech-dispatcher: signature from "Alexander Epaneshnikov <email@alex19ep.me>" is unknown trust
:: File /var/cache/pacman/pkg/speech-dispatcher-0.11.1-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: vim-runtime: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/vim-runtime-8.2.4464-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: vim: signature from "Levente Polyak (anthraxx) <levente@leventepolyak.net>" is unknown trust
:: File /var/cache/pacman/pkg/vim-8.2.4464-1-x86_64.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)
Errors occurred, no packages were upgraded.
-> error installing repo packages
자세히 찾아보진 않았지만 해결책은 간단했다. 그냥 keyring package를 업데이트 해주니 해결 다.
$ sudo pacman -S archlinux-keyring
p.s) 좋은 방법은 아니겠지만 위처럼 y를 많이 눌러야 할때 $ yes | pacman -Syu
같은 명령어도 가능하다.