[Mint 21] GPG error: public key is not available

Questions about Wine on Linux
Locked
User avatar
NM64
Level 1
Level 1
Posts: 6
Joined: Mon Sep 19, 2022 2:45 pm

[Mint 21] GPG error: public key is not available

Post by NM64 »

Simply put, on both a very newly-installed copy of Mint 21.0 on real hardware and the Mint 21.0 live ISO running in VirtualBox, I'm getting a "Public key not available" error when trying to install WINE.

Thing is, I've installed WINE many times and have even successfully installed it on Mint 21.0 in the past yet, for some reason, I'm running into this error now.
Again, this is even with a very fresh newly installed installation whereby, immediately after installing the OS, I went to install WINE. Similarly, when running the live ISO in VirtualBox, immediately after booting, I went to install WINE.

...yet both are running into the very same issue despite this exact process having previously worked.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: [Mint 21] GPG error: public key is not available

Post by jkfloris »

From https://wiki.winehq.org/Ubuntu#Help
W: GPG error: https://dl.winehq.org/ ... NO_PUBKEY 76F1A20FF987672F
Currently, the Wine servers are being synchronized. This means that some users still getting the older .sources file. If you get this warning, edit the winehq-<distro>.sources file and replace /usr/share/keyrings/ to /etc/apt/keyrings/.

For example: sudo sed -i s@/usr/share/keyrings/@/etc/apt/keyrings/@ /etc/apt/sources.list.d/winehq-focal.sources
So in your case that becomes

Code: Select all

sudo sed -i s@/usr/share/keyrings/@/etc/apt/keyrings@ /etc/apt/sources.list.d/winehq-jammy.sources
Locked