📖 ~1 min read
Table of contents
Symptom & Impact
apt update fails repository signature validation and blocks secure package installs.
Environment & Reproduction
Ubuntu 18.04 with external repositories added without proper keyring configuration.
Root Cause Analysis
Repository signing key is missing, expired, or not linked via signed-by keyring.
Quick Triage
Identify failing repository and key ID from apt output.
Step-by-Step Diagnosis
Review source entries, keyring files, and key expiration state for trust path validation.

Solution – Primary Fix
Install correct vendor key into a dedicated keyring and update repository signed-by config.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Disable unneeded repositories or mirror trusted packages internally.
Verification & Acceptance Criteria
apt update completes with valid signatures and no NO_PUBKEY errors.
Rollback Plan
Revert repository and keyring changes if package source integrity cannot be confirmed.
Prevention & Hardening
Track key expiry, rotate keys proactively, and avoid legacy apt-key workflows.
Related Errors & Cross-Refs
The following signatures could not be verified, EXPKEYSIG, and repository not signed.
Related tutorial: View the step-by-step tutorial for Ubuntu 18.04 LTS.
View all Ubuntu 18.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Debian and Ubuntu secure apt guidance for repository signing and key management.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.