Issue
Trying to update gives me an error saying public keys are not available:
So I tried to import the keys using apt-key, which raises this invalid packet error:
Solution
So I managed to fix this myself.
Issue:
gpg keyring is damaged
Soulution:
- Delete /etc/apt/trusted.gpg and all .gpg files in /etc/apt/trusted.gpg.d/
- Download launchpad-getkeys binary and execute it as sudo
Answered By - Prajyot Chemburkar