我不太明白如何从其他帖子中修复这些问题。有人能帮我吗?
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.
答案1
当您收到公钥错误时,密钥本身就是 NO_PUBKEY 的最后 8 位数字。
要安装它,请运行以下行
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 5FCBF54A
然后重新运行
sudo apt update
希望这可以帮助!
答案2
这告诉您,您的 Wine 存储库未使用代码签名,并且拒绝更新,因为它不知道如何验证来自该存储库的软件包。
您可以通过添加他们的来自 winehq.org 的代码签名密钥:
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
rm Release.key