Ubuntu – winetricks sha1sum mismatch rename and try again

winewinetricks

I just started using Ubuntu, and I'm trying to get Wine up and running. By using Winetricks I'm trying to install some software and I keep getting this error message:
it says

sha1sum mismatch! Rename /home/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE and try again.

I don't know what it wants me to rename. I'm confused by this error screen.
Does anyone have a fix for this?

Thanks!

Best Answer

The most conservative approach to this issue is to do exactly as the error command suggests and rename the file with this single command:

mv -v /home/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE \
      /home/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE_bak

And this might be enough. However if the issue recurs you can try an updated copy of winetricks:

sudo apt-get remove winetricks
wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks 
sudo mv -v winetricks /usr/local/bin

And then you will have access to the newest version of winetricks which should not contain the 'shasum mismatch' error. The latest version that I have tested (after downloading and installing in this manner) is shown as follows:

andrew@ilium~$ winetricks --version
20191224-next - sha256sum: d8ac5e46ad4351faf3a3c6879044d059488001f3dd9364a5651c9e041cb97326
andrew@ilium~$ 

If this does not work out for you for whatever reason, and you wish to return to the Repository version of winetricks use the following commands in a Terminal screen:

sudo rm /usr/local/bin/winetricks
sudo apt-get install winetricks

And your system will then have returned to default: the Repository version of winetricks...

References: