Can't run Wine commands on Linux

Questions about Wine on Linux
Locked
Special Right Now
Level 1
Level 1
Posts: 6
Joined: Fri Mar 11, 2022 5:06 pm

Can't run Wine commands on Linux

Post by Special Right Now »

So I just installed the stable build for wine. My architecture is aarch64 and I have a lenovo chromebook and use linux commands on Terminal.

When I try to run commands on wine such as winecfg on Terminal, it comes back with this:
/usr/bin/winecfg: 46: exec: /usr/bin/wine: Exec format error

Now I'm no expert at Terminal and I don't know why this is happening. Is someone willing to help?
Attachments
Screenshot 2022-03-11 5.56.06 PM.png
Screenshot 2022-03-11 5.56.06 PM.png (7.54 KiB) Viewed 2234 times
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't run Wine commands on Linux

Post by jkfloris »

So I just installed the stable build for wine.
How did you install Wine?
The packages from WineHQ are only for amd64 and i386, so you can't these on aarch64.
Special Right Now
Level 1
Level 1
Posts: 6
Joined: Fri Mar 11, 2022 5:06 pm

Re: Can't run Wine commands on Linux

Post by Special Right Now »

Whoops my bad! I can use sudo dpkg add i386. I want to know how to change my architecture though.
Special Right Now
Level 1
Level 1
Posts: 6
Joined: Fri Mar 11, 2022 5:06 pm

Re: Can't run Wine commands on Linux

Post by Special Right Now »

I installed it from WineHQ. Is there a way I can change my architecture on linux from aarch64 to i386?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Can't run Wine commands on Linux

Post by jkfloris »

Your CPU defines the architecture. To run amd64/i386 programs on an ARM system, you need an emulator.
If you want to run Windows ARM programs, you can use Debian's Wine packages. Unfortunately, these are a bit older.
Special Right Now
Level 1
Level 1
Posts: 6
Joined: Fri Mar 11, 2022 5:06 pm

Re: Can't run Wine commands on Linux

Post by Special Right Now »

Thanks for the advice! Because I don't really want older wine packages I will try to do a sudo apt install wine instead. Would you reccomend 32 bit or 64 bit?
New Klet
Level 1
Level 1
Posts: 8
Joined: Mon Mar 14, 2022 6:55 am

Re: Can't run Wine commands on Linux

Post by New Klet »

Wine 64 can run 32bit exe, but the opposite is not possibe
Locked