Winetricks / winetricks

Winetricks is an easy way to work around problems in Wine
GNU Lesser General Public License v2.1
2.73k stars 398 forks source link

Cannot install MS GDI+ (gdiplus) #2104

Open Speykious opened 1 year ago

Speykious commented 1 year ago

Using the latest winetricks version and a 64-bit prefix, I cannot install GDI+. Other useful info: I'm on Arch Linux and cabextract is at version 1.11.

I get a SHA256 mismatch, and when I try to continue anyway, cabextract doesn't find any valid cabinets:

------------------------------------------------------
warning: 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 20230212-next - sha256sum: e4b10eefc4a5823dde1fb6cf53b38df2077fb96af3e571d3b5e94e70969c63a6 with wine-8.13 and WINEARCH=win64
winetricks GUI enabled, using zenity 3.44.1
Executing mkdir -p /home/speykious/.cache/winetricks
------------------------------------------------------
warning: 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 w_do_call gdiplus
/tmp/winetricks.wsW71iQf/no_win64_warnings exists, not issuing 64-bit prefix warning
Executing load_gdiplus 
grep: warning: stray \ before /
Executing mkdir -p /home/speykious/.cache/winetricks/win7sp1
Executing cd /home/speykious/.cache/winetricks/win7sp1
Downloading http://download.windowsupdate.com/msdownload/update/software/svpk/2011/02/windows6.1-kb976932-x86_c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa.exe to /home/speykious/.cache/winetricks/win7sp1
Executing cd /home/speykious
------------------------------------------------------
SHA256 mismatch!

URL: http://download.windowsupdate.com/msdownload/update/software/svpk/2011/02/windows6.1-kb976932-x86_c3516bc5c9e69fee6d9ac4f981f5b95977a8a2fa.exe
Downloaded: e6f30a5a0878deffbcc6faef01e5be7ec9407295574201bdaa417ae35d2febdf
Expected: e5449839955a22fc4dd596291aff1433b998f9797e1c784232226aba1f8abd97

This is often the result of an updated package such as vcrun2019.
If you are willing to accept the risk, you can bypass this check.
Alternatively, you may use the --force option to ignore this check entirely.

Continue anyway?
------------------------------------------------------
Executing cabextract -q --keep-symlinks -d /home/speykious/.local/share/wineprefixes/bruh/dosdevices/c:/windows/temp/_bruh -L -F x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80/gdiplus.dll /home/speykious/.cache/winetricks/win7sp1/windows6.1-KB976932-X86.exe
/home/speykious/.cache/winetricks/win7sp1/windows6.1-KB976932-X86.exe: no valid cabinets found
------------------------------------------------------
warning: Note: command cabextract -q --keep-symlinks -d /home/speykious/.local/share/wineprefixes/bruh/dosdevices/c:/windows/temp/_bruh -L -F x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80/gdiplus.dll /home/speykious/.cache/winetricks/win7sp1/windows6.1-KB976932-X86.exe returned status 1. Aborting.
------------------------------------------------------

I'll note that i seems like the obtained hash has changed every time for every download.

I've also tried to fix everything I could by looking at previous issues: removing the cache because maybe a file was corrupted there, making a brand new prefix to download it, doing a sed on the checksum, self-updating wineprefix... Nothing worked. :(

austin987 commented 1 year ago

grep: warning: stray \ before /

is suspicious; can you attach a log with winetricks -v?

Are you using firejail, by chance?

blablablerg commented 2 months ago

I am on NixOS and have the same error. I have attached a log. output.log

blablablerg commented 2 months ago

I want to add, that in console winetricks gdiplus did work for me. I still see the grep: warning: stray \ before / and some cache mismatch warnings.

Chiitoo commented 2 months ago

I still see the grep: warning: stray \ before /

This is likely a feature of grep since 3.8 [1].

Regular expressions with stray backslashes now cause warnings, as
their unspecified behavior can lead to unexpected results.
For example, '\a' and 'a' are not always equivalent
<https://bugs.gnu.org/39678>.  Similarly, regular expressions or
subexpressions that start with a repetition operator now also cause
warnings due to their unspecified behavior; for example, *a(+b|{1}c)
now has three reasons to warn.  The warnings are intended as a
transition aid; they are likely to be errors in future releases.
  1. https://lists.gnu.org/archive/html/info-gnu/2022-09/msg00001.html
LordXerus commented 1 month ago

I think it only crashes in the GUI mode; winetricks -q gdiplus worked for me as well.