vcrun2019 sha256sum mismatch
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.
------------------------------------------------------
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.
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?
@chappjo I'm running into the same problem. Could you provide the link to the Internet Archive versions you downloaded?
@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.
Thank you @chappjo. I followed the same steps as you and successfully got Mod Organizer 2 installed.
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.
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.
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)
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 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.
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.
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.
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 - https://github.com/rockerbacon/lutris-skyrimse-installers/issues/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
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.
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.
A recent Lutris release should have fixed the problem. See the Lutris issue for details.
Visual C++ 2019 was updated a few days ago (05/08). People will start experiencing this problem again.
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.
Lovely over-moderation here, someone is tidying up their little corner of the internet. Well, it's not as simple as the VC++ update, and https://github.com/rockerbacon/lutris-skyrimse-installers/issues/137 has plenty of further bugs. I'd do the work of pasting them over, but since someone enjoys moderation and tidying up maybe they can do that for me.
$HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update
worked perfectly thanks, everything else mentioned here before fails now
Upon doing a fresh install of Skyrim on a new Distro and trying to re-install the lutris scripts here, this issue seems to have reared it's ugly head once again. I have tried running the "$HOME/.local/share/lutris/runtime/winetricks/winetricks --self-update" command just as i did the last time to fix this issue, but it doesn't seem to work now. Did something with Visual Studio update again wich screwed up the previous method of fixing this problem?
This PR will fix vc_redist checksums for the 2020-09-29 update.
Pardon my ignorance, but how does one actually implement this fix? Or is this something that we just have to wait to be bundled into the latest Winetricks release?
Pardon my ignorance, but how does one actually implement this fix? Or is this something that we just have to wait to be bundled into the latest Winetricks release?
Winetricks always validates the checksum and there's no way to bypass it. As it stands, the only thing that can be done is to wait for Winetricks to update the checksum or to modify the script and update it yourself.
I opened issue 1627 in Winetricks to try and discuss a more permanent solution to this recurring problem.
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
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!
Sorry but there's gotta be a better way for you folks. Not even running Linux right now on my main PC, but good lord...
On Friday, October 9, 2020, KorgiSilvercloud [email protected] wrote:
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!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rockerbacon/lutris-skyrimse-installers/issues/61#issuecomment-706029990, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJ7EMRDRJXKRGTUVNKKALLSJ26LTANCNFSM4NHUWHIQ .
-- Merc [email protected] Yeah.
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'?
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-updateI'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.
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.