我尝试升级詹金斯。
我使用新的方式来使用 gpg 密钥:
wget https://pkg.jenkins.io/debian-stable/jenkins.io.key
gpg --dearmor jenkins.io.key
mv jenkins.io.key.gpg /usr/share/keyrings/jenkins-keyring.asc
cat /etc/apt/sources.list.d/jenkins.list
deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/
apt键:
apt-key list | grep -i jenkins # nothing
# file /usr/share/keyrings/jenkins-keyring.asc
/usr/share/keyrings/jenkins-keyring.asc: PGP/GPG key public ring (v4) created Mon Mar 30 15:10:17 2020 RSA (Encrypt or Sign) 4096 bits MPI=0x99a14538d6e6150d...
但是当我跑步时apt update
:
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 FCEF32E745F2C3D5
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 FCEF32E745F2C3D5
W: Some index files failed to download. They have been ignored, or old ones used instead.
怎么了?
这对您来说不是问题。该密钥已过期。
您可以通过电子邮件将附加到密钥的地址发送给他们,或者等待他们注意到它并上传更新的密钥。
虽然我在 上所说的是正确的
Debian 11 (bullseye)
,但我遇到的错误与您不同。我的错误说:你的说:
再加上我们的输出之间的其他一些小的文本差异,让我认为您使用的是旧版本的 debian。我能够在 上获得相同的输出
buster
,那么您是否正在运行stretch
(deb 9)?如果你正在运行stretch
,那么你可能需要求助于apt-key add jenkins.io.key
(尽管在 jenkins 更新之前你仍然会得到 EXPKEYSIG)。存储库签名密钥已更改。
https://www.jenkins.io/blog/2023/03/27/repository-signing-keys-changing/
安装新的签名密钥,并等待更新由新密钥签名的存储库,直到 4 月 5 日。