-
Notifications
You must be signed in to change notification settings - Fork 5
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
sh: 0: Can't open winetricks #20
Comments
Depending on the location of the If you run env WINEARCH=win32 sh $(which winetricks) arch=32 prefix=supermemo17 supermemo17.verb Else, just provide the path to winetricks.
env WINEARCH=win32 sh ./winetricks arch=32 prefix=supermemo17 supermemo17.verb
env WINEARCH=win32 sh /home/me/some/directory/winetricks arch=32 prefix=supermemo17 supermemo17.verb |
$ which winetricks $ env WINEARCH=win32 sh /usr/bin/winetricks arch=32 prefix=supermemo17 $ sh /usr/bin/winetricks prefix=supermemo17 supermemo17.verb It looks like supermemo17.verb was updated at some point because I when I redownloaded it now, I got a different hash, but the same error message when I ran the above command. $ sha256sum supermemo17.verb |
I need more time to investigate. There is no syntax error in the verb file unless
The sha256sum displayed by Winetricks is of the winetricks script itself, and it is helpful in identifying the version when troubleshooting. Suggestion: bypass Winetricks's architecture-choosing method completely. Maybe there's some oddity when you have a 64-bit default prefix. # clean up from previous tries
rm -rf ~/.local/share/wineprefixes/supermemo17
env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb |
Same error message: $ rm -rf ~/.local/share/wineprefixes/supermemo17 $ env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb I posted the sha256 hash of the supermemo.verb so you could confirm it is the same as the version you have, since I thought maybe the supermemo.verb was causing the error message. |
Thanks again. OK. Let's see where it fails. Please follow along: # clean up from previous tries
rm -rf ~/.local/share/wineprefixes/supermemo17
# remove your copy of the verb
rm supermemo17.verb
# grab the supermemo17.verb file byte-for-byte
wget https://raw.githubusercontent.com/alessivs/supermemo-wine/master/verbs/supermemo17.verb -O supermemo17.verb
# send me this output
echo $SHELL
# debug the failure spot: send me the lines above the error message for context
set -x
env WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefixes/supermemo17 sh /usr/bin/winetricks supermemo17.verb |
Just included the complete output. The formatting was strange when I didn't include it in the code brackets, so re-posting:
|
the problem is that wget command does not download the verb file but html file.
try downloading the verb file by web browser
|
Thanks for the catch, @biogogotop. Instructions amended. |
$ env WINEARCH=win32 sh winetricks arch=32 prefix=supermemo17
sh: 0: Can't open winetricks
$ uname -rom
5.4.0-42-generic x86_64 GNU/Linux
$ wine --version
wine-5.0 (Ubuntu 5.0-3ubuntu1)
$ winetricks --version
20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d
I see there is a closed issue with a similar error message but that user is using a different linux distribution so not sure if the solution is the same.
The text was updated successfully, but these errors were encountered: