我在网上到处都是,在这里陷入了困境。我看过其他关于此的帖子,但没有找到任何解决方案。
这就是循环。我尝试运行 apt-get update,它说:
root@linode (apt ): apt-get update
Hit:1 http://repo.mysql.com/apt/debian jessie InRelease
Hit:2 https://packages.sury.org/php bullseye InRelease
Hit:3 https://deb.nodesource.com/node_14.x bullseye InRelease
Hit:4 http://httpredir.debian.org/debian bullseye InRelease
Err:1 http://repo.mysql.com/apt/debian jessie InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8C718D3B5072E1F5
Hit:5 http://apt-longview.linode.com bullseye InRelease
Hit:6 http://httpredir.debian.org/debian bullseye-updates InRelease
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: http://repo.mysql.com/apt/debian jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8C718D3B5072E1F5
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/jessie/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8C718D3B5072E1F5
W: Some index files failed to download. They have been ignored, or old ones used instead.
所以我这样做:
root@linode (apt ): gpg --keyserver keyring.debian.org --recv-keys 8C718D3B5072E1F5
root@linode (apt ): gpg --export 8C718D3B5072E1F5 | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian jessie InRelease: The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <[email protected]>
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/jessie/InRelease The following signatures were invalid: EXPKEYSIG 8C718D3B5072E1F5 MySQL Release Engineering <[email protected]>
如何更新此密钥以便更新我的 mysql 安装?
我在 debian 11.5 非常感谢,这让我发疯。