Aptexit code > 0

E: Hash Sum mismatch

$E: Hash Sum mismatch Hashes of expected file: - SHA256:...

Analysis

The downloaded package file is corrupted or doesn't match the metadata (often due to caching proxies or bad mirrors).

Common Triggers

  • Unstable internet connection.
  • Corrupted local apt cache.
  • Bad mirror.

Debug Checks

  • $Check internet connectivity.

Resolution

1
Clean cache: sudo apt-get clean && sudo apt-get update.
2
Delete lists: sudo rm -rf /var/lib/apt/lists/* then update.

Metadata

Tool
Apt
Severity
High
Tags
#apt#linux#network