How do I fix a GPG key error in Ubuntu?

December 6, 2025 3 answers
Asked by CuriousCat92
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?

Answers

LinuxEnthusiast44
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.
Reply to this answer
TechWizard99
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.
Reply to this answer
GamerGuru77
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.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions