[Archlinux] zig: signature from .... is unknown trust

`pacman -Syu` 的時候遇到了:

 error: zig: signature from "Daurnimator <quae@daurnimator.com>" is unknown trust


:: File /var/cache/pacman/pkg/zig-0.8.0-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. 


更新 keyring (`sudo pacman-key --refresh-keys`):

gpg: refreshing 125 keys from hkp://p80.pool.sks-keyservers.net                        

gpg: keyserver refresh failed: No name                                                                                                                                        

==> ERROR: A specified local key could not be updated from a keyserver. 

這時更換一下 keyserver:

https://wiki.archlinux.org/title/Pacman/Package_signing#Change_keyserver

換成 ubuntu 的 keyserver: `/etc/pacman.d/gnupg/gpg.conf`

```
keyserver hkp://keyserver.ubuntu.com

```
再清理 cache: sudo pacman -Sc

然後再一次 `sudo pacman-key --refresh-keys`

結果遇到:
==> ERROR: A specified local key could not be updated from a keyserver.

再更新一下 keyring
`sudo pacman -S archlinux-keyring`

再 refresh 一次:`sudo pacman-key --refresh-keys`

結果依舊:
==> ERROR: A specified local key could not be updated from a keyserver.

^ 不要鳥他 我沒有解決

直接 `sudo pacman -Syu` 完成。

EOF



留言

這個網誌中的熱門文章

[Antergos] disable touchpad

[Editor] 入坑 Atom => Markdown 轉 PDF