Hash sum mismatch when apt-get update Ubuntu 20.04 VM with Multipass

In my case with the same problem the following solution worked:

sudo su -
mkdir /etc/gcrypt
echo all >> /etc/gcrypt/hwf.deny
apt-get update

My environment
Windows 10.0.19041.508
Vagrant 2.2.10
VirtualBox 6.1.14r140239
ubuntu/focal64 Vagrant Box

I've found the answer and the explanation here:
askubuntu.com/questions/1235914/hash-sum-mismatch-error-due-to-identical-sha1-and-md5-but-different-sha256

I tried to install Docker (get-docker.sh) in the VM and got very similar error: "Failed to fetch https://download.docker.com ... Hash Sum mismatch". So I think this type of issues are not related to the VM, but to the Windows 10 host machine. I changed Hyper-V launch type to off and rebooted the system:

bcdedit /set hypervisorlaunchtype off

I'm not really understand why but both of the problems are gone.


This worked for me:

sudo apt-get clean

sudo rm -r /var/lib/apt/lists/*

This worked for me: i went to system updater and changed update from local server to update from main server, then i ran sudo apt update and it worked. i hope it works for you too