1

As can be seen on the title, I got the "Failed to fetch... Hash Sum mismatch" Error. I have tried this method:

  1. Deleting /var/lib/apt/lists/* does not work...
  2. Thinking, if I'm behind a proxy, I tried fixing "Hash Sum Mismatch" like this:

    By Creating a file /etc/apt/apt.conf.d/99fixbadproxy with this content

    Acquire::http::Pipeline-Depth 0;

    Acquire::http::No-Cache true;

    Acquire::BrokenProxy true;

  3. I tried several other solutions provided on askubuntu however, it doesn't work.

Have a look at my error on the terminal.

Screenshot of the Error obtained in the Terminal

2 Answers2

3

This solution finally worked out for me:

  1. sudo rm -rf /var/lib/apt/lists/*
  2. sudo apt-get update -o Acquire::CompressionTypes::Order::=gz
  3. sudo apt-get update && sudo apt-get upgrade

Source: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1785778

3

Well, this might be the issue of caches within your ISP. These packages are distributed across multiple locations for making available globally, due to such this packages sometimes not get the updates at a given time in some location so thus you faced this hash sum error.

I would recommend you to perform this action via changing proxy address/ VPN which will change the IP.