SOLVED: Hash Sum mismatch when doing apt-get update or install

To solve the Hash Sum mismatch we recommend the following three commands:

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

If the error persists ensure the RAM is correctly working.