Skip to content
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

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

Open
roxithegremlin opened this issue Mar 13, 2024 · 9 comments

Comments

@roxithegremlin
Copy link

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
Copy link
Author

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

@Matoking
Copy link
Owner

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.

@roxithegremlin
Copy link
Author

@Matoking
Copy link
Owner

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

@roxithegremlin
Copy link
Author

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

@iBrokeYourGui
Copy link

Hi!
Ubuntu 24.04
Manual installation winetricks from https://github.com/Winetricks/winetricks?tab=readme-ov-file#manual-install
Then install package protontricks_1.12.0-1_all.deb

protontricks --no-bwrap --gui
Executing cd /usr/bin
winetricks GUI enabled, using zenity 4.0.1
------------------------------------------------------
warning: Unknown file arch of /home/$USER/.cache/protontricks/proton/Proton 9.0/bin/wineserver.
------------------------------------------------------

@CrispyHanako
Copy link

CrispyHanako commented Jan 24, 2025

Glad to see I wasn't the only one having this problem today.

CachyOS
Installation of protonticks and winetricks from the Cachy repo via yay

protontricks --no-bwrap --gui
Executing cd /usr/bin
winetricks GUI enabled, using zenity 4.0.3
------------------------------------------------------
warning: Unknown file arch of /home/crispy/.cache/protontricks/proton/Proton Experimental/bin/wineserver.
------------------------------------------------------
warning: Unknown file arch of /home/crispy/.cache/protontricks/proton/Proton Experimental/bin/wine.
------------------------------------------------------

@CrispyHanako
Copy link

An addendum to my last post, I did a clean install of Arch (via archinstall) on a new machine with nothing on it except for the requirements to run protontricks, winetricks, steam, etc. All of which were installed via flatpaks when possible. I didn't get any errors this time but now I get stuck in a loop of "what do you want to do with this wineprefix" (install windows dll or component) and "what would you like to install". I select what I want to install and it starts the loop over again. I've legitimately clicked through this about 10 loops and it will not go away.

@Matoking
Copy link
Owner

Matoking commented Jan 26, 2025

The "unknown file arch" error should be fixed assuming you're running the development version of Protontricks and Winetricks. A fix was added to both fairly recently.

The warning is only related to a check that Winetricks performs, and any other problems (eg. looping menus) are unrelated. The looping menu in particular is related to Winetricks and is probably out of scope for Protontricks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants