$ pacman -S tmux
resolving dependencies...
looking for conflicting packages...
Packages (2) libevent-2.1.12-2 tmux-3.3.a-1
Total Download Size: 0.53 MiB
Total Installed Size: 1.53 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
libevent-2.1.12-2-x86_64 164.3 KiB 113 KiB/s 00:01 [#########################################################] 100%
tmux-3.3.a-1-x86_64 380.1 KiB 222 KiB/s 00:02 [#########################################################] 100%
Total (2/2) 544.4 KiB 309 KiB/s 00:02 [#########################################################] 100%
(2/2) checking keys in keyring [#########################################################] 100%
(2/2) checking package integrity [#########################################################] 100%
error: libevent: signature from "David Macek <********@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/libevent-2.1.12-2-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.
********@gmail.com>
対処法
pacman のdatabaseをsyncするとエラーは出なくなります。以下のようにup to dateとなるように何度か実行します。
$ pacman -Sy
:: Synchronizing package databases...
clangarm64 is up to date
mingw32 is up to date
mingw64 is up to date
ucrt64 is up to date
clang32 is up to date
clang64 is up to date
msys is up to date