MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.71k stars 492 forks source link

missing public key breaks update #6027

Closed ulu closed 1 year ago

ulu commented 1 year ago

Details:

Expected behaviour:

Update should run without errors

Actual behaviour:

Error during apt (no public key) as shown below.

Extra details:

No extra info

Additional logs:

Hit:1 https://deb.debian.org/debian bullseye InRelease
Hit:2 https://deb.debian.org/debian bullseye-updates InRelease
Hit:3 https://deb.debian.org/debian-security bullseye-security InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Get:5 https://apt.radxa.com/buster-stable buster InRelease [2363 B]
Err:5 https://apt.radxa.com/buster-stable buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9B98116C9AA302C7
Fetched 2363 B in 3s (811 B/s)
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://apt.radxa.com/buster-stable buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9B98116C9AA302C7
W: Failed to fetch https://apt.radxa.com/buster-stable/dists/buster/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9B98116C9AA302C7
W: Some index files failed to download. They have been ignored, or old ones used instead.
ulu commented 1 year ago

Can be closed. I read https://dietpi.com/blog/?p=811#2.2.2-change-the-package-sources https://wiki.radxa.com/RockpiS/radxa-apt https://wiki.radxa.com/Rock5/FAQs#Radxa_APT_public_key_is_not_available

and mixed came to following solution:

  1. Update my sources.list by using https://dietpi.com/blog/?p=811#2.2.2-change-the-package-sources
  2. export DISTRO=bullseye-stable
  3. wget -O - apt.radxa.com/$DISTRO/public.key | sudo apt-key add –

After this all works as expected. I don't know why I had a link to raxda buster. :-(