Skip to content

Instantly share code, notes, and snippets.

@tatumroaquin
Last active January 2, 2022 03:55
Show Gist options
  • Save tatumroaquin/7403622741041819ba4a05e322e300fb to your computer and use it in GitHub Desktop.
Save tatumroaquin/7403622741041819ba4a05e322e300fb to your computer and use it in GitHub Desktop.

WSL2 Common Problems Fixes

Hash Sum Mismatch

  • when performing the standard sudo apt update and installing a package often you might see an error message that stating it failed to fetch the package due to checksum mismatch
  • upon further researh on the ubuntu forms, the issues seems to be related to SHA256 optimization introduced from libcrypt20

gcrypt solution:

sudo su -
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get update -o Acquire::CompressionTypes::Order::=gz
mkdir /etc/gcrypt
echo all >> /etc/gcrypt/hwf.deny
  • the /etc/gcrypt/hwf.deny file disables specific hardware features of the the gcrypt component of gnupg.
  • essentially this solution disable the optimization causing the checksum mismatch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment