祥磊部落

随机出现的你

Debian - SURY源W: An error occurred during the signature verification

今天登录N年前的服务器执行apt-get update时出现了:

《Debian - SURY源W: An error occurred during the signature verification》

Get:8 https://packages.sury.org/php stretch InRelease [6,760 B]
Err:8 https://packages.sury.org/php stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
Fetched 6,760 B in 0s (6,886 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org/php stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Failed to fetch https://packages.sury.org/php/dists/stretch/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743
W: Some index files failed to download. They have been ignored, or old ones used instead.

这是因为DPA更新了签名密钥。

 

解决方法

更新APT签名密钥即可

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg

 

 

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据