Article 6E6EV Deleted keys in /etc/apt/trusted.gpg, now I'm getting Warnings about signature verification and don't know what to do

Deleted keys in /etc/apt/trusted.gpg, now I'm getting Warnings about signature verification and don't know what to do

by
Astircake
from LinuxQuestions.org on (#6E6EV)
I'm brand new to linux, running Ubuntu 22.04 jammy and after installing Wine I ran "sudo apt-get update"
I got the "apt-key deprecation" error and deleted the old keys, now when I run "sudo apt-get update && sudo apt-get upgrade" I get a LOT of warnings :eek:

I don't know where to go to get the new keys, or how to determine which are useful.
I had 4 of them: WineHQ packages <wine-devel@winehq.org>; Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com>; Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>; Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>.

I'm scared of looking up more solutions and screwing something up for real :doh:

The warnings I'm getting all amount to basically this, just different keys listed:

Err:2 http://br.archive.ubuntu.com/ubuntu jammy-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 871920D1991BC93C


But in the end I get:

W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gjs libgjs0g
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments