📖 ~1 min read
Table of contents
Symptom & Impact
apt cannot trust repository metadata and refuses index updates.
Environment & Reproduction
Appears after adding external apt repositories without proper keyrings.
sudo apt update
Root Cause Analysis
Missing, expired, or unreferenced repository signing keys cause verification failure.
Quick Triage
Find the failing repository and current keyring references.
grep -R '^deb' /etc/apt/sources.list /etc/apt/sources.list.d
ls -l /etc/apt/keyrings
Step-by-Step Diagnosis
Map apt errors to source list entries and verify signature pathing.
sudo apt update
apt-cache policy

Solution – Primary Fix
Install repository keyring to /etc/apt/keyrings and use signed-by in source entry.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo install -d -m 0755 /etc/apt/keyrings
sudo apt update

Solution – Alternative Approaches
Disable untrusted repository until validated by operations policy.
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
Verification & Acceptance Criteria
apt update runs without NO_PUBKEY or unsigned repository errors.
sudo apt update
apt policy
Rollback Plan
Remove the added source list and keyring if provenance cannot be confirmed.
sudo rm -f /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-noble.list
Prevention & Hardening
Use per-repository signed-by and avoid deprecated apt-key workflows.
Related Errors & Cross-Refs
May appear with certificate trust failures and invalid release metadata warnings.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu secure apt repository and key management documentation.
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.