Page 1 of 1

What's the official recommended method to fix NO_PUBKEY errors during apt-get update?

Posted: 2021-09-26 02:35
by sockscap
It's a Debian stretch server (Armbian to be specific). When I ran "apt-get update" the day before yesterday, it gave me an error: "The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9".

I searched the Internet and finally resolved the issue by running the following commands:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

Initially I tried to use "--keyserver keyring.debian.org" but it didn't work. Therefore, I did some further research, and I read from https://wiki.debian.org/SecureApt that "The current and the retired Debian archive "signing" keys are available from https://ftp-master.debian.org/keys.html."

The latter web page provides the key as ".asc" files, but I cannot find how should I do with these ".asc" files. Could someone point out the official recommended method to fix such NO_PUBKEY errors? It's a bit strange that I have to consult ubuntu keyserver to fix Debian signing key issues.

Re: What's the official recommended method to fix NO_PUBKEY errors during apt-get update?

Posted: 2021-09-26 06:33
by sunrat
Armbian is not Debian so we can't be certain how they handle their keys. I recommend asking on Armbian forums.

Topic moved to Offtopic as it's not about Debian.