apt update 最后报错
$ sudo apt update
报错
......
91 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: http://repo.mysql.com/apt/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
W: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/focal/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 467B942D3A79BD29
重点:
NO_PUBKEY 467B942D3A79BD29
缺少公钥?
重新获取公钥并加入到 apt 信任密钥
-
获取 gpg 公钥
$ sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29gpg: key 467B942D3A79BD29: public key "MySQL Release Eng