Affected versions: 18.04 LTS

πŸ“– ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

apt rejects repository metadata as untrusted and update process stops.

Environment & Reproduction

Happens with third-party repos on Ubuntu 18.04 after signing key rotation.

Root Cause Analysis

Outdated keyring entries fail signature verification due to expiration or revocation.

Quick Triage

Identify the failing key ID and repository from apt output before making changes.

Step-by-Step Diagnosis

Inspect trusted keyrings, check key expiry details, and validate repository signature chain.

Illustrative mockup for ubuntu-18-04-lts β€” gpg_expired_problem
Expired GPG key blocks apt updates β€” Illustrative mockup β€” Progressive Robot

Solution – Primary Fix

Import renewed key via secure channel, update signed-by configuration, and refresh apt metadata.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Illustrative mockup for ubuntu-18-04-lts β€” gpg_expired_solution
Updated signing key restores repository trust β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

Temporarily disable nonessential failing repositories while planning key migration.

Verification & Acceptance Criteria

apt update completes with no signature warnings and packages install successfully.

Rollback Plan

Revert repository entries if key replacement introduces trust or compatibility issues.

Prevention & Hardening

Track key expiry dates and automate key lifecycle maintenance.

Often appears with failed metadata fetch and mirror deprecation events.

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

See apt-secure documentation and vendor key management recommendations.

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.