APT倉庫密鑰過期修復 The following signatures were invalid
APT倉庫密鑰過期修復 The following signatures were invalid
Debian/Ubuntu系統使用使用sudo apt install 安裝軟件時報錯:
xxxx:/mnt/var$ sudo apt update
Hit:1 https://fast-mirror.isrc.ac.cn/revyos/revyos-base sid InRelease
Get:2 https://fast-mirror.isrc.ac.cn/revyos/revyos-kernels revyos-kernels InRelease [5,806 B]
Get:3 https://fast-mirror.isrc.ac.cn/revyos/revyos-addons revyos-addons InRelease [9,442 B]
Get:4 https://fast-mirror.isrc.ac.cn/revyos/revyos-gles-21 revyos-gles-21 InRelease [9,446 B]
Err:1 https://fast-mirror.isrc.ac.cn/revyos/revyos-base sid InRelease
The following signatures were invalid: EXPKEYSIG xxxxxxxxxxxx Han Gao <gaohan@iscas.ac.cn>
Err:2 https://fast-mirror.isrc.ac.cn/revyos/revyos-kernels revyos-kernels InRelease
The following signatures were invalid: EXPKEYSIG xxxxxxxxxxxx Han Gao <gaohan@iscas.ac.cn>
Err:3 https://fast-mirror.isrc.ac.cn/revyos/revyos-addons revyos-addons InRelease
The following signatures were invalid: EXPKEYSIG xxxxxxxxxxxx Han Gao <gaohan@iscas.ac.cn>
Err:4 https://fast-mirror.isrc.ac.cn/revyos/revyos-gles-21 revyos-gles-21 InRelease
The following signatures were invalid: EXPKEYSIG xxxxxxxxxxxx Han Gao <gaohan@iscas.ac.cn>
Fetched 24.7 kB in 3s (8,655 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
42 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://fast-mirror.isrc.ac.cn/revyos/revyos-base sid InRelease: The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://fast-mirror.isrc.ac.cn/revyos/revyos-kernels revyos-kernels InRelease: The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://fast-mirror.isrc.ac.cn/revyos/revyos-addons revyos-addons InRelease: The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://fast-mirror.isrc.ac.cn/revyos/revyos-gles-21 revyos-gles-21 InRelease: The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: Failed to fetch https://mirror.iscas.ac.cn/revyos/revyos-base/dists/sid/InRelease The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: Failed to fetch https://mirror.iscas.ac.cn/revyos/revyos-kernels/dists/revyos-kernels/InRelease The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: Failed to fetch https://mirror.iscas.ac.cn/revyos/revyos-addons/dists/revyos-addons/InRelease The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: Failed to fetch https://mirror.iscas.ac.cn/revyos/revyos-gles-21/dists/revyos-gles-21/InRelease The following signatures were invalid: EXPKEYSIG 2FB3A9E77911527E Han Gao <gaohan@iscas.ac.cn>
W: Some index files failed to download. They have been ignored, or old ones used instead.
問題核心是多個倉庫的GPG密鑰已過期(EXPKEYSIG),導致APT無法驗證倉庫簽名。以下是完整解決方案:
導入新密鑰
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys xxxxxxxxxxxx # 將 xxxxxxxxxxxx 替換為你的id
sudo apt update # 刷新APT緩存

浙公網安備 33010602011771號