1

Trying to update gives me an error saying public keys are not available: enter image description here

So I tried to import the keys using apt-key, which raises this invalid packet error: enter image description here

1 Answers1

2

So I managed to fix this myself.

Issue:

gpg keyring is damaged

Soulution:

  1. Delete /etc/apt/trusted.gpg and all .gpg files in /etc/apt/trusted.gpg.d/
  2. Download launchpad-getkeys binary and execute it as sudo
  • Got the same problem on a Raspbian and this was the only solution I found that mentioned the invalid packets. Thanks for sharing it, I hope it can help others, too. – Ntropia Jul 08 '23 at 03:32