Software⏱️ 2 min read📅 2026-06-03

How to Fix: "no public key available" on apt-get update

Apt-get update error: no public key available

Quick Answer: Run "sudo apt-key adv --keyserver keyserver.ubuntu.com fetch" to download the GPG key, then try updating again.

When encountering the "no public key available" error on apt-get update, it is often due to a missing or corrupted package signing key. This issue can be resolved by updating the package index and adding the necessary keys.

⚠️ Common Causes

  • Missing or corrupted package signing key

🚀 How to Resolve This Issue

Method 1: Adding the GPG Key

  1. Step 1: Open a terminal as root and run the command `sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys `

Method 2: Updating Package Index

  1. Step 1: Run the command `sudo apt update` to refresh the package index and check if the key is available.

✨ Wrapping Up

In conclusion, updating the package signing key and refreshing the package index can resolve the "no public key available" error on apt-get update. Regularly checking for updates and running `sudo apt update` can help prevent this issue.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions