📖 ~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 update fails with repository Release file invalid, expired, or not signed errors, preventing updates.

Environment & Reproduction

Ubuntu 18.04 machines using outdated mirrors, incorrect system time, or retired third-party repositories.

Root Cause Analysis

Repository metadata validation fails due to clock skew, bad mirror state, or unsupported repository endpoints.

Quick Triage

Check date -u, timedatectl status, and re-run apt update to identify which repository is failing.

Step-by-Step Diagnosis

Review apt source files and verify each URL manually with curl -I to confirm availability and signature metadata.

Illustrative mockup for ubuntu-18-04-lts — ubuntu1804-release-file-invalid-diagnose.webp
Diagnosing apt repository metadata and expiration errors — Illustrative mockup — Progressive Robot

Solution – Primary Fix

Correct system time via timedatectl set-ntp true, replace bad mirrors, remove dead PPAs, then run sudo apt clean && sudo apt update.

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 — ubuntu1804-release-file-invalid-fix.webp
Switching to valid mirrors and refreshing apt metadata — Illustrative mockup — Progressive Robot

Solution – Alternative Approaches

Temporarily switch to old-releases.ubuntu.com for legacy content when standard mirrors no longer serve required indexes.

Verification & Acceptance Criteria

apt update completes with no Release file or signature errors and package lists are refreshed.

Rollback Plan

Revert source list backups if package availability worsens after mirror changes.

Prevention & Hardening

Use stable official mirrors, monitor NTP sync, and periodically audit third-party apt source entries.

NO_PUBKEY, InRelease is not valid yet, and repository does not have a Release file.

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

Ubuntu apt mirror documentation, man sources.list, and apt-secure(8).

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.