Matoking/protontricks

Protontricks fails with warning: Unknown file arch of /home/$USER/.cache/protontricks/proton/GE-Proton9-1/bin/wineserver.

roxidd06 opened this issue · 5 comments

Describe the bug
Protontricks fails with warning: Unknown file arch of /home/$USER/.cache/protontricks/proton/GE-Proton9-1/bin/wineserver.

To Reproduce
Steps to reproduce the behavior:

  1. Run command protontricks 268500 dotnet472
  2. Command fails and error is displayed

Expected behavior
Protontricks should install dotnet472. however this issue occurs with any game and command

System (please complete the following information):

  • Distro: Debian trixie/sid
  • Protontricks installation method: pipx
  • Protontricks version: 1.11.1
  • Steam version: beta

Output using -vv:

x86_64-linux-gnu-capsule-capture-libs: warning: we are assuming "_el_fn_sh_complete" to be private, but it's just a guess
i386-linux-gnu-capsule-capture-libs: warning: we are assuming "_el_fn_sh_complete" to be private, but it's just a guess
Executing cd /usr/bin
------------------------------------------------------
warning: Unknown file arch of /home/raphael/.cache/protontricks/proton/GE-Proton9-1/bin/wineserver.
------------------------------------------------------

also occurs when running protontricks --gui or similar on any game

The "unknown file arch" warning is an upstream issue with Winetricks: see the issue report at Winetricks/winetricks#2183. There are some proposed fixes in development, but none have been merged yet.

That said, you should be able to close the warnings and continue. Is there any output afterwards once you do so? What if you run protontricks <APPID> -v? This prints a lot of output, so you'll want to use gist.github.com to post the output.

Figured out what's the problem: the Debian version of Winetricks includes an additional patch that's based on an old version of the pull request Winetricks/winetricks#2189. It's the 13_winetricks_get_file_arch__try_workaround_for_scripts_if_arch_is_unknown.patch file included in the Debian source files here.

This patch also changes the "Unknown file arch" message from a dismissable warning to an error that halts execution.

One option to workaround this might be to uninstall the distro version of Winetricks and install the upstream version using the instructions here:

https://github.com/Winetricks/winetricks?tab=readme-ov-file#manual-install

thx, sadly i wont be able to check any results this week, since im not at home.