尝试 sudo apt-get update GPG 时出错,没有签名存储库

Art*_*ice 4 updates apt gnupg

我不太明白如何从其他帖子中修复这些内容。有人能帮我吗?

W: GPG error: https://dl.winehq.org/wine-builds/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 818A435C5FCBF54A
E: The repository 'https://dl.winehq.org/wine-builds/ubuntu bionic InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)

Ter*_*nce 6

当您收到公钥错误时,密钥本身就是 NO_PUBKEY 的最后 8 位数字。

要安装它,请运行以下行

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 5FCBF54A
Run Code Online (Sandbox Code Playgroud)

然后重新运行你的

sudo apt update
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助!