今天开始,突然无法正常通过 ALHP 源更新,提示 signature from "ALHP Buildbot <[email protected]>" is invalid:
$ LANG=C sudo pacman -Syu
error: core-x86-64-v4: signature from "ALHP Buildbot <[email protected]>" is invalid
error: extra-x86-64-v4: signature from "ALHP Buildbot <[email protected]>" is invalid
error: core-x86-64-v3: signature from "ALHP Buildbot <[email protected]>" is invalid
error: extra-x86-64-v2: signature from "ALHP Buildbot <[email protected]>" is invalid
error: multilib-x86-64-v4: signature from "ALHP Buildbot <[email protected]>" is invalid
:: Synchronizing package databases...
<略>
error: core-x86-64-v4: signature from "ALHP Buildbot <[email protected]>" is invalid
error: extra-x86-64-v4: signature from "ALHP Buildbot <[email protected]>" is invalid
error: core-x86-64-v3: signature from "ALHP Buildbot <[email protected]>" is invalid
error: extra-x86-64-v2: signature from "ALHP Buildbot <[email protected]>" is invalid
error: multilib-x86-64-v4: signature from "ALHP Buildbot <[email protected]>" is invalid
error: failed to synchronize all databases (unexpected error)
$ pacman-key --list-keys [email protected]
gpg: 注意:信任度数据库不可写入
pub ed25519 2025-05-09 [SC] [有效至:2027-05-09]
BC3993A9EBDD40E5C242D72F0FE58E8D1B980E51
uid [ 完全 ] ALHP Buildbot <[email protected]>
sub cv25519 2025-05-09 [E] [有效至:2027-05-09]
$ sudo gpg --homedir /etc/pacman.d/gnupg --list-keys [email protected]
gpg: 警告:家目录‘/etc/pacman.d/gnupg’的权限位不安全
pub ed25519 2025-05-09 [SC] [有效至:2027-05-09]
BC3993A9EBDD40E5C242D72F0FE58E8D1B980E51
uid [ 完全 ] ALHP Buildbot <[email protected]>
sub cv25519 2025-05-09 [E] [有效至:2027-05-09]
$ timedatectl timesync-status
Server: 198.18.0.177 (cn.pool.ntp.org)
Poll interval: 17min 4s (min: 32s; max 34min 8s)
Leap: normal
Version: 4
Stratum: 2
Reference: 647A24C4
Precision: 1us (-23)
Root distance: 46.493ms (max: 5s)
Offset: +10.989ms
Delay: 148.699ms
Jitter: 110.186ms
Packet count: 43
Frequency: +80.551ppm- 执行
sudo rm -rf /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate。依然报错; - 执行
sudo pacman-key --refresh-keys。提示「未改变」:
gpg: 公钥 CF66D153D884358F 在其签名之后的 16 秒生成
<前略>
gpg: 拉取‘[email protected]’通过 WKD 时出现错误: 常规错误
gpg: error reading key: 常规错误
gpg: 正在更新 1 把密钥,从 hkps://keyserver.ubuntu.com
gpg: 密钥 0FE58E8D1B980E51:“ALHP Buildbot <[email protected]>” 未改变
gpg: 处理的总数:1
gpg: 未改变:1
gpg: 拉取‘[email protected]’通过 WKD 时出现错误: 无数据
gpg: error reading key: 无数据
gpg: 正在更新 1 把密钥,从 hkps://keyserver.ubuntu.com
gpg: 密钥 E3D0D2CD3952E298:“Archlinux CIE Repos (Build 2020/2021) <[email protected]>” 未改变
gpg: 处理的总数:1
gpg: 未改变:1
<后略>
- 编辑
/etc/pacman.d/alhp-mirrorlist切换镜像源。仍然报错(另外,上面的错误信息在执行后一瞬间就出现了,所以不太像是服务器那端的错误); - 重新安装
alhp-keyring。未能安装:
$ yay -S alhp-keyring
AUR Explicit (1): alhp-keyring-20250509-1
<中略>
-> alhp-keyring-20250509-1 已生成 -- 跳过构建
==> 正在创建软件包:alhp-keyring 20250509-1 (2025年10月22日 星期三 14时58分40秒)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系
==> 警告: 使用现存的 $srcdir/ 树
==> 源代码已就绪。
错误:core-x86-64-v4: 来自 "ALHP Buildbot <[email protected]>" 的签名无效
错误:extra-x86-64-v4: 来自 "ALHP Buildbot <[email protected]>" 的签名无效
错误:core-x86-64-v3: 来自 "ALHP Buildbot <[email protected]>" 的签名无效
错误:extra-x86-64-v2: 来自 "ALHP Buildbot <[email protected]>" 的签名无效
错误:multilib-x86-64-v4: 来自 "ALHP Buildbot <[email protected]>" 的签名无效
错误:数据库 'core-x86-64-v4' 无效 (无效或已损坏的数据库 (PGP 签名))
错误:数据库 'extra-x86-64-v4' 无效 (无效或已损坏的数据库 (PGP 签名))
错误:数据库 'core-x86-64-v3' 无效 (无效或已损坏的数据库 (PGP 签名))
错误:数据库 'extra-x86-64-v2' 无效 (无效或已损坏的数据库 (PGP 签名))
错误:数据库 'multilib-x86-64-v4' 无效 (无效或已损坏的数据库 (PGP 签名))
正在加载软件包...
警告:alhp-keyring-20250509-1 已经为最新 -- 重新安装
错误:无法准备事务处理 (无效或已损坏的数据库)
-> 安装时出错: [/home/w568w/.cache/yay/alhp-keyring/alhp-keyring-20250509-1-any.pkg.tar.zst] - exit status 1
- 先在
/etc/pacman.conf中禁用签名等级SigLevel = Never,再yay -Scc清空缓存,然后yay -S alhp-keyring重新构建、安装,最后恢复签名等级。pacman -Syu仍然报一样的错误。