apt-get update ends with “Hash Sum mismatch”

apt-get logo
Print Friendly, PDF & Email

Experience the following?:

<snipped>
...
...
Hit http://us.archive.ubuntu.com trusty-backports/multiverse Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/restricted Translation-en    
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en      
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US           
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/i18n/Translation-en  Hash Sum mismatch
 
E: Some index files failed to download. They have been ignored, or old ones used instead.

The cause is likely a corrupt package file previously downloaded. You can fix it by doing the following:

sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update

1 comment

  1. If deleting /var/lib/apt/lists/* does not work…
    (esp. if you’re behind a proxy), fix “Hash Sum Mismatch” like this:

    Create file
    */etc/apt/apt.conf.d/99fixbadproxy*
    with this content

    Acquire::http::Pipeline-Depth 0;
    Acquire::http::No-Cache true;
    Acquire::BrokenProxy true;

    See also https://gist.github.com/trastle/5722089

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.