NO_PUBKEY Linux Origin: Platform & cloud OSI layer 7 · Application Last updated 13 Oct 2026

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

apt can’t verify a repository’s signature because the repo’s signing key isn’t installed (or has expired/rotated).

Exact message you may see The following signatures couldn't be verified because the public key is not availableis not signed
Seen on: Linux

Meaning

Third-party repos (Docker, Node, Google Chrome, PostgreSQL) sign their indexes. Their key must be in /etc/apt/keyrings and referenced with signed-by in the source entry. apt-key is deprecated, and old keys get rotated.

Common causes

  • Repo added without importing its key
  • Key rotated by the vendor
  • Using deprecated apt-key with a keyring apt doesn’t read
  • signed-by path wrong

⚡ Quick fix

  1. Download the vendor’s current key into /etc/apt/keyrings
  2. Reference it with signed-by in the .list/.sources file
  3. Remove the repo if you no longer need it

Detailed fix by platform

Ubuntu

  1. bash
    sudo install -m 0755 -d /etc/apt/keyrings
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    echo "deb [signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list
    sudo apt update

How to diagnose

  1. Repo — Which source fails?
  2. Key — Present in /etc/apt/keyrings and signed-by correct?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

1005 — Cloudflare Error 1005: Access denied — The owner of this website has banned the autonomous system number (ASN) your IP address is in (Cloudflare)10051006 — Cloudflare Error 1006 / 1007 / 1008: Access denied — Your IP address has been banned (Cloudflare)100615281 — SQL Server Msg 15281: SQL Server blocked access to procedure 'sys.xp_cmdshell' (component 'xp_cmdshell' turned off) (SQL)15281403 Forbidden wp-admin — WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php (WordPress)403 Forbidden wp-adminAADSTS50053 — AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity (Azure)AADSTS50053ActiveModel::ForbiddenAttributesError (strong parameters) — Rails: ActiveModel::ForbiddenAttributesError (Ruby / Rails)ActiveModel::Forbidde…antiforgery token could not be decrypted — ASP.NET Core: The antiforgery token could not be decrypted / The required antiforgery cookie is not present (400 Bad Request) (.NET)antiforgery token cou…App Check — Firebase App Check: requests rejected (403 / app-check-token-is-invalid / attestation failed) (Google Cloud / Firebase)App CheckNO_PUBKEY

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.