Matoking / protontricks

A wrapper that does winetricks things for Proton enabled games, requires Winetricks.
GNU General Public License v3.0
1.56k stars 35 forks source link

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

Open RaphaelDD885 opened 3 months ago

RaphaelDD885 commented 3 months ago

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):

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.
------------------------------------------------------
RaphaelDD885 commented 3 months ago

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

Matoking commented 3 months ago

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.

RaphaelDD885 commented 3 months ago

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

Matoking commented 3 months ago

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

RaphaelDD885 commented 3 months ago

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