protontricks icon indicating copy to clipboard operation
protontricks copied to clipboard

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

Open roxithegremlin opened this issue 1 year ago • 16 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.
------------------------------------------------------

roxithegremlin avatar Mar 13 '24 19:03 roxithegremlin

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

roxithegremlin avatar Mar 13 '24 19:03 roxithegremlin

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.

Matoking avatar Mar 14 '24 17:03 Matoking

here you go https://gist.github.com/RaphaelDD885/96eab29c728f8d33da9e30736443475b

roxithegremlin avatar Mar 14 '24 17:03 roxithegremlin

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

Matoking avatar Mar 18 '24 17:03 Matoking

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

roxithegremlin avatar Mar 18 '24 20:03 roxithegremlin