Error Message with public Key

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Isegrimm
Newbie
Newbie
Posts: 1
Joined: Sun Aug 18, 2024 1:29 am

Error Message with public Key

Post by Isegrimm »

Good morning ...

After a full upgrade of Debian/trixie I get the following error message:

Code: Select all

[09:23:57][isegrimm@T-A-K-A-Y-A:/etc/apt/keyrings]$ doas apt update
OK:1 https://dl.winehq.org/wine-builds/debian trixie InRelease
OK:2 https://deb.debian.org/debian unstable InRelease                                             
Fehl:1 https://dl.winehq.org/wine-builds/debian trixie InRelease                                  
  Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 76F1A20FF987672F
OK:3 https://packages.siduction.org/fixes unstable InRelease              
OK:4 https://ftp.gwdg.de/pub/linux/siduction/extra unstable InRelease
Aktualisierung für 20 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
Warning: https://dl.winehq.org/wine-builds/debian/dists/trixie/InRelease: The key(s) in the keyring /etc/apt/keyrings/winehq-archive.key are ignored as the file has an unsupported filetype.
Warning: https://dl.winehq.org/wine-builds/debian/dists/trixie/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/winehq-archive_key.gpg are ignored as the file has an unsupported filetype.
Warning: Während der Überprüfung der Signatur trat ein Fehler auf. Das Depot wurde nicht aktualisiert und die vorherigen Indexdateien werden verwendet. GPG-Fehler: https://dl.winehq.org/wine-builds/debian trixie InRelease: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 76F1A20FF987672F
Warning: https://deb.debian.org/debian/dists/unstable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/winehq-archive_key.gpg are ignored as the file has an unsupported filetype.
Warning: https://packages.siduction.org/fixes/dists/unstable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/winehq-archive_key.gpg are ignored as the file has an unsupported filetype.
Warning: https://ftp.gwdg.de/pub/linux/siduction/extra/dists/unstable/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/winehq-archive_key.gpg are ignored as the file has an unsupported filetype.
Warning: Fehlschlag beim Holen von https://dl.winehq.org/wine-builds/debian/dists/trixie/InRelease Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 76F1A20FF987672F
Warning: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.

How can I fix it?
finotti
Level 2
Level 2
Posts: 10
Joined: Sat Oct 30, 2021 3:16 pm

Re: Error Message with public Key

Post by finotti »

I was having the same problem. (I also just updated my Debian Sid installation.) I think the problem is that the key needs to be "dearmored". Here is how I solved it: first, move to the folder/directory where your key is located (/etc/apt/keyrings for me). Then

Code: Select all

gpg --dearmor winehq-archive.key
The file winehq-archive.key.gpg is created. Backup the original (just in case) and then rename the .gpg:

Code: Select all

mv winehq-archive.key winehq-archive.key-bac
mv winehq-archive.key.gpg winehq-archive.key
For me, it worked after that.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Error Message with public Key

Post by dimesio »

Apparently it's not necessary to dearmor, the file just needs to be renamed to .asc (and also rename it in /etc/apt/sources.list.d/winehq-trixie.sources. )

See https://bugs.winehq.org/show_bug.cgi?id=57501 for more info.
Locked