Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcrun2019 sha256sum mismatch #61

Closed
chappjo opened this issue May 22, 2020 · 37 comments
Closed

vcrun2019 sha256sum mismatch #61

chappjo opened this issue May 22, 2020 · 37 comments
Labels
bug Something isn't working not our bug Issue is too far out of the scope of the project

Comments

@chappjo
Copy link

chappjo commented May 22, 2020

I'm new to GitHub, so sorry if I make any basic mistakes.

Description:

After running the command:
"lutris -i "$HOME/Downloads/modorganizer2.yml"
Lutris starts up, and I go through the installation procedure, I set the install directory to /home/user/games/mod-organizer-2, then I selected Skyrim, and then steam with proton. After this the program goes through extracting/downloading some files. A little while later it fails and I get an error message:
"Error while installing winetricks, please run Lutris from a terminal and check the logs"

In the terminal, the last line reads:
"sha256sum mismatch! Rename /home/user/.cache/winetricks/vcrun2019/vc_redist.x86.exe and try again."

I tried renaming it, and trying again. As well as downloading my own vc_redist.x86.exe from here, and putting it in the "/home/user/.cache/winetricks/vcrun2019/" folder (I did rename it to match the same case).

Notes

I have run Skyrim from steam before, and I have set it's proton version to 5.0-7.
This happened before and after I installed winetricks.
I don't have SKSE installed.
My package manager says everything is up to date.
I have another issue with the program freezing partway though extracting the files. To get around this I have to try installing it 2-4 times before it completes successfully.

System:

Manjaro

More of the log:

# workaround to stop installation if command fails
echo "success" > '/home/user/.cache/lutris/installer/mod-organizer-2/successful-prefix-preparation'
Initial process has started with pid 41971
Game is considered started.
Searching for game in library '/home/user/.steam/steam'
Found game
Installing script extender...
Executing mkdir -p /home/user/.steam/steam/steamapps/compatdata/72850
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20200412-next - sha256sum: ff7c503db776c75caea6f3119e77bef37ed0e30b63f00cd04043805dba1e8d14 with wine-5.8 and WINEARCH=win64
Executing w_do_call vcrun2019
Executing mkdir -p /home/user/.steam/steam/steamapps/compatdata/72850
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vcrun2019 
Executing cd /home/user/.cache/winetricks/vcrun2019
Downloading https://aka.ms/vs/16/release/vc_redist.x86.exe to /home/user/.cache/winetricks/vcrun2019
--2020-05-22 21:24:29--  https://aka.ms/vs/16/release/vc_redist.x86.exe
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving aka.ms (aka.ms)... 23.38.229.99
Connecting to aka.ms (aka.ms)|23.38.229.99|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.visualstudio.microsoft.com/download/pr/d60aa805-26e9-47df-b4e3-cd6fcc392333/A06AAC66734A618AB33C1522920654DDFC44FC13CAFAA0F0AB85B199C3D51DC0/VC_redist.x86.exe [following]
--2020-05-22 21:24:31--  https://download.visualstudio.microsoft.com/download/pr/d60aa805-26e9-47df-b4e3-cd6fcc392333/A06AAC66734A618AB33C1522920654DDFC44FC13CAFAA0F0AB85B199C3D51DC0/VC_redist.x86.exe
Resolving download.visualstudio.microsoft.com (download.visualstudio.microsoft.com)... 192.229.232.200, 2606:2800:147:ff8:129b:22eb:20b:1347
Connecting to download.visualstudio.microsoft.com (download.visualstudio.microsoft.com)|192.229.232.200|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14413048 (14M) [application/octet-stream]
Saving to: ‘vc_redist.x86.exe’

     0K .......... .......... .......... .......... ..........  0%  520K 27s
 [Download progress, cut out to save space]
 14050K .......... .......... .....                           100% 28.4M=5.2s

2020-05-22 21:24:36 (2.64 MB/s) - ‘vc_redist.x86.exe’ saved [14413048/14413048]

Executing cd /home/user/games/mod-organizer-2
------------------------------------------------------
sha256sum mismatch! Rename /home/user/.cache/winetricks/vcrun2019/vc_redist.x86.exe and try again.
------------------------------------------------------
@rockerbacon
Copy link
Owner

A SHA256 checksum is a method for verifying the integrity of files. If the checksum fails it is because the downloaded file was corrupted somehow.

This doesn't seem to be a issue with this project:

  • The project does not maintain files downloaded by Winetricks nor the checksums Winetricks uses. The Winetricks binaries used are provided by Lutris
  • The project uses the builtin extract features from Lutris

My guess is there may be something wrong with your system libraries responsible for handling compression. That can cause both problems described - if the Winetricks download uses any form of compression it could could corrupt files.

You won't be able to get much help here. I recommend you go to the Lutris project and report the extraction bug there, maybe they'll be able to find the cause. You should also go to Manjaro forums to see if other people have had the same problem as you.

@rockerbacon rockerbacon added the not our bug Issue is too far out of the scope of the project label May 22, 2020
@chappjo
Copy link
Author

chappjo commented May 23, 2020

Thanks for your help, I've managed to fix it. I think the problem was caused because winetricks hasn't been updated with the hashes for the latest version of the vcrun2019 x86 and x64 installers.

To get around this issue I downloaded the older versions of the installers that winetricks was expecting from the internet archive, and put them in the winetricks cache (/home/user/.cache/winetricks/vcrun2019 IIRC). I then ran your installer again and it worked, after a few tries.

This didn't fix the freezing issue during the extraction.

Should I close the issue?

@VagabondAzulien
Copy link

@chappjo I'm running into the same problem. Could you provide the link to the Internet Archive versions you downloaded?

@chappjo
Copy link
Author

chappjo commented May 24, 2020

@VagabondAzulien

You can get the x86
here

and the x64
here

Rename both of them so that the "VC" is lowercase, and put them in the /home/user/.cache/winetricks/vcrun2019 directory.

@VagabondAzulien
Copy link

Thank you @chappjo. I followed the same steps as you and successfully got Mod Organizer 2 installed.

@rockerbacon
Copy link
Owner

Since the affected user found a solution, I'll close this issue. If someone corrects me and confirms the bug is on the installer's side I'll reopen it.

This was referenced May 27, 2020
@rockerbacon
Copy link
Owner

Reopening the issue because many users are reporting this. While there's nothing I can do on my end (at least that I know of), it serves as reference for people who come across the problem.

@rockerbacon rockerbacon reopened this May 28, 2020
@rockerbacon rockerbacon added the bug Something isn't working label May 30, 2020
@freddfx
Copy link

freddfx commented May 30, 2020

The way i worked around this was to use a git compiled version of winetricks and change the reference in modorganizer2.yaml (should be around line 318) from the lutris version to the git version (in my case /usr/bin/winetricks)

@brandonegbert
Copy link

The way i worked around this was to use a git compiled version of winetricks and change the reference in modorganizer2.yaml (should be around line 318) from the lutris version to the git version (in my case /usr/bin/winetricks)

That's what I ended up doing. It may be reasonable to try to fallback to the system version of Winetricks if the Lutris one fails.

@rockerbacon
Copy link
Owner

The way i worked around this was to use a git compiled version of winetricks and change the reference in modorganizer2.yaml (should be around line 318) from the lutris version to the git version (in my case /usr/bin/winetricks)

That's what I ended up doing. It may be reasonable to try to fallback to the system version of Winetricks if the Lutris one fails.

The reason the Lutris version is used by default is that it will be the most up to date one in most systems.

The SHA updated was merged into the master branch of Winetricks in May 20th but the latest release is from April 12th. Falling back to system wouldn't do much in situations like this one.

@brandonegbert
Copy link

sudo winetricks --self-update seemed to fix the system one for me though I'm not sure that would be the best guidance for every user that encounters the issue.

@SysGh-st
Copy link

This did not change the issue on my end: sudo winetricks --self-update
As far as I understand it, this scripts downloads one version of vc_redist.x86.exe, but expects an older version of it.
I checked both versions, and yes. they're different. I guess one should update the sha256 checksum to match the newer updated vc_redist packages.

@spannerman79
Copy link

spannerman79 commented Jun 15, 2020

The reason the Lutris version is used by default is that it will be the most up to date one in most systems.

@rockerbacon perhaps have two installers? One pointing to /usr/bin/winetricks and the other using lutris defualt packaged winetricks? That way those that do keep a more up to date system won't have to go digging like i have (reference - #81 )

Edit: In Lutris I have even set "prefer system librarys" which should use the system installed winetricks - which it does if I manually add a game by hand and use winetricks within Lutris.

Delete winetricks located in ~/.local/share/lutris/runtime/winetricks/ and either create a symlink or copy your updated copy of winetricks into there. Make sure its chmod +x

@rockerbacon
Copy link
Owner

Update on this:

I've opened issue #2981 on Lutris to see if they're willing to update their provided version of Winetricks. I'd open a pull request but they removed it from the main project in version 5.5 and I can't seem to find it anywhere else.

If things remain as-is for much longer I'll default to system Winetricks and instruct users to update at the game selection menu.

@spannerman79
Copy link

If things remain as-is for much longer I'll default to system Winetricks and instruct users to update at the game selection menu.

I think this would be the more preferred method. Even in lutris I have it set to use system libs by default but yet even lutris (obviously) fails at this.

@rockerbacon
Copy link
Owner

A recent Lutris release should have fixed the problem. See the Lutris issue for details.

@roof98
Copy link

roof98 commented Oct 7, 2020

can confirm that it is still happening. Trying @chappjo 's fix did not work. Neither did --self-update

EDIT: using $HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update appears to let me install. Having another issue which I will investigate on its own

@KorgiSilvercloud
Copy link

It does appear that the "$HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update" command now works again, I was able to re-install MO2 without issue this time. Thanks to whoever on the winetricks team updated the checksum!

@mercster
Copy link

mercster commented Oct 9, 2020 via email

@ShneekeyTheLost
Copy link

Can confirm that it's still a problem. Running winetricks --self-update doesn't work, but "$HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update" does work.

I guess this means that Lutris is using their own version of winetricks instead of the system's version. I'm betting they do this for dependency reasons. Which means every time winetricks updates, this problem will crop up again. This should probably be put somewhere a bit more prominent so newbies can figure out the workaround easier, since it will be a recurring problem as long as Lutris decides to use their own version of winetricks instead of using the system's.

Maybe a note on the page that says 'if you have an error about a checksum mismatch, check this thread for workaround'?

@RossDanbyGamer
Copy link

As soon as this PR is merged, people will be free to update Lutris Winetricks with the command:

$HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update

I'll inform the Lutris team of the update but it may take some time until it gets released.

Thanks for the fix, installation succeeded after running this command.

@pblack476
Copy link

pblack476 commented Nov 26, 2020

After running $HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update the insaller proceeds further but then I get a new error:

command wine vc_redist.x86.exe /q returned status 231. Aborting.

@spannerman79
Copy link

@pblack476 while it is slightly related to this issue tracker the actual issue is over at lutris. Incorrect issue tracker

@rockerbacon
Copy link
Owner

After running $HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update the insaller proceeds further but then I get a new error:

command wine vc_redist.x86.exe /q returned status 231. Aborting.

Check #158

@soredake
Copy link

soredake commented Dec 18, 2020

I've asked lutris admins to update winetricks version in runtime.

@vondriago
Copy link

vondriago commented Jul 9, 2021

For those still having problems with the vcrun2019 and dotnet40 install for Mod Organizer 2, enter this:

sudo winetricks --self-update

Then enter (I install my WINE bottles in /opt, you may have yours elsewhere so adjust accordingly):

$ WINEPREFIX=/opt/WineBottles/ModOrg2 winetricks vcrun2019 dotnet40

The above solved my problem completely. Smooth install on Fedora.

@guysmoilov
Copy link

This is happening again in October 23 2021, I contributed a fix in Winetricks/winetricks#1837 which you can copy locally to make this work.

@rahatr1
Copy link

rahatr1 commented Mar 1, 2022

i found the actual simple solution!!

run these commands on your terminal.

  1. winetricks --self-update

  2. winetricks vcrun2019

you're good to go!

@spannerman79
Copy link

gg to necro an old issue @Rahat-M

By default lutris doesn't use system installed winetricks as it uses its own. It wasn't until after that it no longer bundled in winetricks.

So that "solution" doesn't work. Especially now since this repo no longer uses lutris

@rockerbacon please close this issue - as it no longer applies to the current state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not our bug Issue is too far out of the scope of the project
Projects
None yet
Development

No branches or pull requests