1
0
mirror of synced 2026-05-22 20:33:16 +00:00
Files
csdn/CSDN博文备份/Jenkins更新时候提示Key错误-158233004.md
2026-02-20 04:22:21 +08:00

2.2 KiB

错误日志为:



1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7198F4B714ABFC68
W: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7198F4B714ABFC68
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ns524146:~# curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2026.key | sudo tee \



2026-02-19_15-14-07



问题和解决


上面问题的原因是 Jenkins key 安装和更新的问题。


根据文章:Jenkins 2.543 and 2.541.1: New Linux Repository Signing Keys 中的内容。


需要运行下面命令:



Jenkins 更新时候提示 Key 错误




2026-02-19_15-15-24



当运行完上面的命令后,再次更更新即可。



https://www.isharkfly.com/t/jenkins-key/18663