signature verification error for wine - index files failed to download - changing mirror doesn't help

When I sudo apt-get update I get the error shown below.

W: An error occurred during the signature verification.
The repository is not updated and the previous index files will be used.
GPG error: bionic InRelease:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
W: Failed to fetch
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F
W: Some index files failed to download. They have been ignored, or old ones used instead.

So I go ahead and change my mirror as suggested by this Ask Ubuntu answer. Then I restart the computer. And I still get the same error above when I sudo apt-get update.

Let's try and reinstall the keys.

$ wget -nc && sudo apt-key add Release.key
File ‘Release.key’ already there; not retrieving. OK

And I might as well ping -c3 archive.ubuntu.com and my packet loss is 0%. What else do I need to do?

2

5 Answers

As of 2018-12-19 08:07 there is a new winehq.key keyfile as mentioned here.

Download the new repository key and add it to the list of trusted keys:

cd /tmp
wget -nc
sudo apt-key add winehq.key
sudo apt update

As mentioned by @jason-hunter in a comment, apt update will ask if you accept the changes in the repository, whereas apt-get update will show an error and fail.

0

Note that after adding the new keyfile, it is better to use apt update rather than apt-get update, as it will prompt you to accept the changes.

So in full:

wget -nc && sudo apt-key add winehq.key && sudo apt update
2

Inspecting , there's a new file winehq.key. Try using that instead, as its fingerprint seems to match the error:

# curl -sL "" | gpg --dry-run --import --verbose
gpg: pub rsa4096/818A435C5FCBF54A 2015-11-23 Sebastian Lackner (WineHQ packages) <>
gpg: Total number processed: 1
# curl -sL "" | gpg --dry-run --import --verbose
gpg: pub rsa3072/76F1A20FF987672F 2018-12-10 WineHQ packages <>
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: Total number processed: 1
0

This command worked for me:

wget -nc && apt-key add winehq.key

I recently was getting the same error too:

Err:3 bionic InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 76F1A20FF987672F

As it turns out, the pubkey needed to be added to my host. Adding the key is the last 8 digits of the key you see there F987672F. So add that to the following to add the key to your host:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv F987672F

Hope this helps!

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like