Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
22
rated 0 times [  22] [ 0]  / answers: 1 / hits: 26008  / 2 Years ago, mon, march 21, 2022, 7:05:51

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: 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
W: Failed to fetch https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/InRelease
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 https://dl.winehq.org/wine-builds/Release.key && 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?


More From » apt

 Answers
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 https://dl.winehq.org/wine-builds/winehq.key && sudo apt-key add winehq.key && sudo apt update

[#6509] Tuesday, March 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adedes

Total Points: 454
Total Questions: 114
Total Answers: 111

Location: Turks and Caicos Islands
Member since Fri, May 8, 2020
4 Years ago
;