I'm experiencing a GPG key error while trying to update my Ubuntu system, specifically for some Bionic Beaver items related to Security, Updates, and Backports. The error message states that it can't verify the signature due to a missing public key: 'NO_PUBKEY 3B4FE6ACC0B21F32'. I've tried using the command `sudo gpg --keyring hkp://keyserver.ubuntu.com/80 --recv-keys 3B4FE6ACC0B21F32`, but it's giving me multiple errors, indicating that the key couldn't be retrieved. I've spent hours looking for solutions, but I'm feeling stuck. Is there something I'm missing or doing wrong?
3 Answers
I totally understand your frustration! It sounds like you're stuck in a cycle. If you're on 22.04, but still getting Bionic updates, that’s odd. Your system may still be pointing to outdated repositories. Make sure you're fully updated before the upgrade process. You might want to check your /etc/apt/sources.list file to ensure it's pointing to the correct repositories. If you're really stuck, you could consider a clean install of 22.04 or 24.04.
First off, double-check that your system date and time are correct. This can interfere with GPG key verification. Also, since you're on Ubuntu 18.04 (Bionic Beaver), keep in mind that it's reached end-of-life since 2023. You should consider upgrading to 22.04 or 24.04. While there are ways to bypass the key verification, I wouldn’t recommend that due to potential security risks.
It definitely sounds like you're in a bit of a catch-22. If you're seeing that you have items that need updates, try running `sudo apt update` and then `sudo apt upgrade`. Make sure there are no issues with the sources. If you keep having problems with the keys, consider removing the offending repositories from your sources list temporarily until you get this sorted out.

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures