📖 ~1 min read
Table of contents
Symptom & Impact
`apt update` reports `Hash Sum mismatch`, `Failed to fetch`, or `Clearsigned file isn’t valid`, preventing package installation.
Environment & Reproduction
Common on fresh installs, regionally overloaded mirrors, or unstable network/proxy paths.
Root Cause Analysis
Mirror inconsistency, stale local lists, proxy tampering, or partial downloads create checksum divergence between index and package files.
Quick Triage
Confirm internet path and DNS resolution first, then validate repository lines in sources configuration.
Step-by-Step Diagnosis
Run `ping -c 4 archive.ubuntu.com`, inspect `/etc/apt/sources.list`, and check logs with `sudo journalctl -n 100 -u systemd-resolved` for DNS anomalies.

Solution – Primary Fix
Clear lists with `sudo rm -rf /var/lib/apt/lists/*`, switch to a reliable mirror, then run `sudo apt update` again.
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
Temporarily force IPv4 (`Acquire::ForceIPv4`) or use a local apt-cacher-ng mirror in controlled environments.
Verification & Acceptance Criteria
Repository refresh completes with no fetch/hash errors and package install tests succeed.
Rollback Plan
Revert mirror changes to previous entries, restore backup sources file, and retry after mirror status normalizes.
Prevention & Hardening
Use geographically appropriate mirrors, avoid transparent proxies, and monitor recurrent hash mismatch events.
Related Errors & Cross-Refs
`Temporary failure resolving`, TLS handshake errors, and expired Release file signatures.
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 mirror status pages, apt-secure docs, and `man sources.list`.
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.