我嘗試將我的 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