box86 icon indicating copy to clipboard operation
box86 copied to clipboard

cannot run wine on box86

Open edemark opened this issue 3 years ago • 9 comments

Hi I get this error: /wine/bin/wine: 1: Syntax error: "(" unexpected I am trying to run wine (on box86). I have a lenovo chromebook duet so i am working in debian bullseye in crostini vm. Compiled Box86 using instruction for pi. It seems to work I can run Rochardx86 (though I get segfault entering on the first level but welcom screen, setting screen etc. works). Followed the guide on installing wine and "installation" went on ok. thanks

edemark avatar Mar 16 '22 18:03 edemark

this error appears when binfmt integration isn't working. I don't know how binfmt integration can work on crostini (but if it "just works", than don't forget to restart systemd binfmt deamon)

ptitSeb avatar Mar 16 '22 18:03 ptitSeb

image So there is the problem. Any ideas what causes this error or how to find out its origin? Thanks

edemark avatar Mar 16 '22 19:03 edemark

Hi I have just found this (already fixed) bug report so there is the answer I will try it out later today and will report back https://bugs.chromium.org/p/chromium/issues/detail?id=1193426

edemark avatar Mar 16 '22 19:03 edemark

Hi I have just found this (already fixed) bug report so there is the answer I will try it out later today and will report back https://bugs.chromium.org/p/chromium/issues/detail?id=1193426

Did it end up working for you? I have tried using a privileged Container as mentioned in the bug report, but systemd-binfmt still wont start.

Triory avatar Mar 31 '22 21:03 Triory

Hi yes sorry i should have got back on the issue. No, it did not work for me either. :( it must be something related to running x86 in the virtual machine. Mark

On Thu, Mar 31, 2022 at 4:34 PM Triory @.***> wrote:

Hi I have just found this (already fixed) bug report so there is the answer I will try it out later today and will report back https://bugs.chromium.org/p/chromium/issues/detail?id=1193426

Did it end up working for you? I have tried using a privileged Container as mentioned in the bug report, but systemd-binfmt still wont start.

— Reply to this email directly, view it on GitHub https://github.com/ptitSeb/box86/issues/588#issuecomment-1085142846, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYIIEMJU2BHQ56ZBYNUGKDDVCYK4TANCNFSM5Q4W3IYQ . You are receiving this because you authored the thread.Message ID: @.***>

edemark avatar Apr 01 '22 04:04 edemark

Systemd-binfmt didn't start until I sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc

then do

echo ':x86:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/box86:' | sudo tee /proc/sys/fs/binfmt_misc/register

then I restart systemd-binfmt with sudo systemctl restart systemd-binfmt as per usual and it works, for me, anyway.

theyseemebowlin avatar Apr 01 '22 13:04 theyseemebowlin

@theyseemebowlin Are you talking about Crostini or Crouton here? Because I don't understand where to run the commands, since the Crostini container doesn't have the privileges to mount that location.

Triory avatar Apr 15 '22 10:04 Triory

ah, I was talking about Crostini, sorry for the confusion

theyseemebowlin avatar Apr 16 '22 01:04 theyseemebowlin

now I just use this to help run wine instead, then grab the latest pre-compiled version of wine from here, untar it, and rename it to wine.

theyseemebowlin avatar Apr 16 '22 01:04 theyseemebowlin

Bin-fmt integration is not dirrectly part of box86. So I will close this ticket.

Note that you can now run i386 bash with box86. That way, you can have a bash prompt directly in "x86 world", making the need for bin-fmt optionnal. You can have more details about that there: https://box86.org/2022/09/running-bash-with-box86-box64/

ptitSeb avatar Oct 12 '22 19:10 ptitSeb