After one of my recent updates, I noticed that my 3rd party repos were failing to update due to the NO_PUBKEY
error from apt. I looked for hours to find a fix, but all fixes suggest using apt-key. However, that no longer works because it has been deprecated. So I manually copied one repo's keys from /usr/share/keyrings
to /etc/apt/trusted.gpg.d
as a test and that seems to work. Now everything works for that app.
My question is: is there a new function to download keys from a keyserver instead of the apt-key
function? Most sites have not realized this change and offer the apt-key
command for their repo keys and that just returns errors now. And how to update my current third party repo keys as only they have the problem? Should I manually cp
the keys as I mentioned above, or is there a more efficient solution?
EDIT: I am on 20.10. Apt-key works for 20.04 but not after that.
$ sudo apt update
Err:9 http://repo.vivaldi.com/stable/deb stable Release.gpg
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9658E8044A3AA3D6
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.vivaldi.com/stable/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9658E8044A3AA3D6
W: Failed to fetch http://repo.vivaldi.com/stable/deb/dists/stable/Release.gpg The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9658E8044A3AA3D6
W: Some index files failed to download. They have been ignored, or old ones used instead.
apt-key
being relegated, but the keys you're trying to import are EOL & relegated. Due to md5 being no longer treated as secure, any keys that used md5 were depreciated. You should provide full command & error message for specific details (instead of generic) – guiverc Nov 25 '20 at 07:05