GPG Error Resolver

You got an EXPKEYSIG error.
Let's fix it.

Your package manager is refusing to install or update software because a GPG signing key has expired. Paste your error below and get the exact commands for your Linux distro.

terminal — bash
$

What is EXPKEYSIG?

Every software repository is signed with a GPG key. When that key expires, your package manager (apt, dnf, pacman) rejects it with an EXPKEYSIG error.

Is it dangerous?

An expired key means the authenticity of the repository can't be verified — not that packages are malicious. It's usually a vendor oversight. The fix is importing the new or renewed key.

The fix

Fetch the updated key from a keyserver or official vendor URL, import it, and run your package manager update again. Use the command builder below for your exact distro.

Recognise your error?

These are the two most common forms of the EXPKEYSIG error you'll encounter.

Short form — appears in apt / apt-get output
The following signatures were invalid: EXPKEYSIG XXXXXXXXXXXXXXXX Some App Package <package@example.com>
Long form — full GPG warning with repository URL
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://example.com/packages: The following signatures were invalid: EXPKEYSIG XXXXXXXXXXXXXXXX Some App Package <package@example.com>
The key ID is the hex string after EXPKEYSIG — for example 3B4FE6ACC0B21F32. Copy it and paste it into the command builder below to generate your fix.
Command Builder

Get your fix command

Enter the key ID from your error message, select your distro, and copy the ready-to-run commands. No registration required.

1
Accepts 8–40 hex characters. You can also paste the full error line — the key ID will be extracted automatically.
2
3
We recognise this key! View detailed page

Fix commands for Debian

Always verify commands before running them as sudo. When in doubt, check the vendor's official documentation.
Something went wrong. Please check your key ID and try again.