📖 ~1 min read
Table of contents
Symptom & Impact
Repository indexes are rejected, preventing updates and package installs.
Environment & Reproduction
Appears after adding third-party repositories without a proper keyring.
sudo apt update
Root Cause Analysis
The repository signing key is missing, expired, or not referenced via signed-by.
Quick Triage
Identify the failing source list entry and key identifier.
grep -R '^deb' /etc/apt/sources.list /etc/apt/sources.list.d
sudo apt update
Step-by-Step Diagnosis
Confirm keyring paths and repository metadata signatures.
ls -l /etc/apt/keyrings
apt-cache policy

Solution – Primary Fix
Install the correct keyring file and bind repository with signed-by.
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 repositories and continue with official Ubuntu archives.
sudo add-apt-repository --remove
Verification & Acceptance Criteria
apt update completes without NO_PUBKEY or unsigned repository errors.
sudo apt update
apt policy
Rollback Plan
Remove newly added source and keyring if package provenance is uncertain.
sudo rm -f /etc/apt/sources.list.d/.list
Prevention & Hardening
Use signed-by per repository and avoid legacy apt-key workflows.
Related Errors & Cross-Refs
May co-occur with certificate trust errors and invalid release file warnings.
Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.
View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu secure apt repository signing and key management docs.
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.