Error Codes Wiki

Linux APT Hash Sum Mismatch Error Fix

Warninglinux package

About Linux APT Hash Sum Mismatch Error Fix

APT "Hash Sum mismatch" error occurs when downloaded package data does not match expected checksums. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.

Here are the key things to understand: Error: Hash Sum mismatch. Tool: apt / apt-get. Package index files are corrupted. Cannot update or install packages. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.

The most common reasons this occurs include: Mirror is out of sync. Network proxy caching stale data. ISP transparent proxy interference. Corrupted local package cache. Identifying the root cause is the first step toward finding the right solution.

To resolve this, follow these recommended steps: Clear APT cache: sudo apt clean. Remove lists: sudo rm -rf /var/lib/apt/lists/*. Update again: sudo apt update. Try a different mirror in /etc/apt/sources.list. Disable proxy temporarily. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.

This article is part of our Linux Error Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.

Quick Answer

Is it safe to delete apt lists?

Yes — apt update will regenerate them from scratch.

Overview

APT "Hash Sum mismatch" error occurs when downloaded package data does not match expected checksums.

Key Details

  • Error: Hash Sum mismatch
  • Tool: apt / apt-get
  • Package index files are corrupted
  • Cannot update or install packages

Common Causes

  • Mirror is out of sync
  • Network proxy caching stale data
  • ISP transparent proxy interference
  • Corrupted local package cache

Steps

  1. 1Clear APT cache: sudo apt clean
  2. 2Remove lists: sudo rm -rf /var/lib/apt/lists/*
  3. 3Update again: sudo apt update
  4. 4Try a different mirror in /etc/apt/sources.list
  5. 5Disable proxy temporarily

Tags

linuxlinux-packagelinux apt hash sum mismatchubuntuterminal

More in Linux Package

Frequently Asked Questions

Yes — apt update will regenerate them from scratch.