apt-get 升级在 KDE Neon 18.04 上失败

apt-get 升级在 KDE Neon 18.04 上失败

我尝试将我的 KDE Neon Linux Ubuntu 18.04 发行版更新为较新的版本,最好是 22.04,但运行时sudo do-release-upgrade它告诉我

Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.

然后当我运行sudo apt-get update更新所有软件包时,它失败并显示以下输出

Get:10 https://dl.winehq.org/wine-builds/ubuntu bionic InRelease [6'263 B]       
Err:10 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 76F1A20FF987672F
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 76F1A20FF987672F
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

看起来您缺少 wine 的公钥。首先确保您有一个 /usr/share/keyrings 目录。

然后尝试这个:

sudo wget -nc -O /usr/share/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

相关内容