Ask Your Question

How do I update wine with a Public Key

asked 2019-03-18 17:44:55 -0500

So recently I wanted to Upgrade from Fedora 27 to 28, but I keep running into this error

     warning: /var/lib/dnf/system-upgrade/WineHQ-d7e087c5c78f9c16/packages/wine-staging-common-4.0.rc7-4.1.i686.rpm: Header V4 RSA/SHA256 Signature, key ID f987672f: NOKEY
    Importing GPG key 0x5FCBF54A:
     Userid     : "Sebastian Lackner (WineHQ packages) <>"
     Fingerprint: 4A9E 0F43 60DC 0D17 956D 904E 818A 435C 5FCB F54A
     From       :
    Is this ok [y/N]: y
    Key imported successfully
    Import of key(s) didn't help, wrong key(s)?
    Public key for wine-staging-common-4.0.rc7-4.1.i686.rpm is not installed. Failing 

package is: wine-staging-common-1:4.0.rc7-4.1.i686
 GPG Keys are configured as:
Public key for wine-staging64-4.0.rc7-4.1.x86_64.rpm is not installed. Failing package is: wine-staging64-1:4.0.rc7-4.1.x86_64
 GPG Keys are configured as:
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

So then I went to WineHQ and found out I need to update my Public key, but it turns out, I can't actually do that, because the command I need to install the key, doesn't work at all

sudo apt-key add winehq.key
sudo: apt-key: command not found

Does anyone have any solutions to this, I'd like to upgrade to Fedora 28 with Wine working

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-19 01:09:52 -0500

villykruse gravatar image

updated 2019-03-19 01:43:36 -0500

You should remove the wine packages you have at the moment and then do the upgrade.

If you want to install wine from WineHQ, to to wine fedora page and run

dnf config-manager --add-repo

When you the install for example wine-stable64, the public key will take care if itself when you accept it during installation.

You can also install wine from the fedora repository

dnf install wine.x86_64
edit flag offensive delete link more

Question Tools


Asked: 2019-03-18 17:44:55 -0500

Seen: 91 times

Last updated: Mar 19 '19