Ubuntu 18.04.1 LTS 更新问题 sudo apt-get update

Ubuntu 18.04.1 LTS 更新问题 sudo apt-get update

你好,我在 ubuntu 的新更新中遇到了问题,有人能帮我解决吗,我遇到了这个错误

~$ sudo apt-get update
Hit:1 http://si.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://si.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Hit:3 http://si.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]    
Get:5 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [4689 B]       
Err:5 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
Reading package lists... Done
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

看起来您在添加winehq存储库时没有导入 GPG 密钥:

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

尝试使用此命令导入它们:

wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -

然后做一个sudo apt-get update

错误应该已经消失。

相关内容