Trouble running 64-bit only on Ubuntu 24.04

Questions about Wine on Linux
Post Reply
RNMixon
Newbie
Newbie
Posts: 3
Joined: Thu Jun 19, 2025 5:28 pm

Trouble running 64-bit only on Ubuntu 24.04

Post by RNMixon »

Should I be able to run a 64-bit windows application on 64-bit Ubuntu 24.04.2?

We've only installed the "wine" package from Ubuntu repositories.

Everything I try and run keeps nagging me with:
it looks like wine32 is missing, you should install it.
multiarch needs to be enabled first. as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32:i386"
It is not clear if (or I'm wishfully thinking) this is a suggestion or required. We are running on a small embedded device with only an 8GB SDD for a hard drive. We have the space to install 64-bit wine, but not enough room for wine32.

The reason I ask - we have a diagnostics program that is rarely needed but critical when it is. We converted it from win32 to win64 hoping that would do the trick. We do not really have the skills/time to convert it to a pure Linux app at this time.

Our first attempts (other than the wine32 nag) suggested we were missing DLLs. One was from the "Microsoft Visual C++ Redistributable" so we tried to install that. Here is what we get:

Code: Select all

n2kowner@host:~$ wine VC_redist.x64.exe 
it looks like wine32 is missing, you should install it.
multiarch needs to be enabled first.  as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32:i386"
0110:err:environ:init_peb starting L"Z:\\home\\n2kowner\\VC_redist.x64.exe" in experimental wow64 mode
wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Internal error.

n2kowner@host:~$
Any suggestion/ideas are appreciated.

Thank you much - Richard
RNMixon
Newbie
Newbie
Posts: 3
Joined: Thu Jun 19, 2025 5:28 pm

Re: Trouble running 64-bit only on Ubuntu 24.04

Post by RNMixon »

Bump.

This seems like a pretty basic question for Wine on Linux. What am I missing?

I know I’m using the Ubuntu repackaging, but I thought the capabilities would be the same.

Please let me know if there’s additional information needed or I need to post elsewhere.

Thank you - Richard
User avatar
morgwai
Level 2
Level 2
Posts: 15
Joined: Sun Jan 26, 2025 7:10 am

Re: Trouble running 64-bit only on Ubuntu 24.04

Post by morgwai »

I'm not an expert, but AFAIK 64 bit packages in most distros expect 32bit variants to be available and will not work correctly otherwise. I think you would need to build your own 64bit Wine binary with WoW64 (Windows-on-Windows) support explicitly disabled. Also you must be 100% sure that the program you want to run does not depend on any 32 dlls (which is rare as far as I understand).
User avatar
KenSharp
Level 4
Level 4
Posts: 161
Joined: Mon Jul 13, 2009 8:52 pm

Re: Trouble running 64-bit only on Ubuntu 24.04

Post by KenSharp »

wine: failed to load L"\\??\\C:\\windows\\syswow64\\ntdll.dll" error c0000135
Something in your setup is looking for the 32-bit ntdll. If you are 100% certain that your application is not using 32-bit, one of its dependencies might be.
0110:err:environ:init_peb starting L"Z:\\home\\n2kowner\\VC_redist.x64.exe" in experimental wow64 mode
This is the likely culprit.
vc_redist.x64.exe: PE32 executable (GUI) Intel 80386, for MS Windows
I don't know which version of the VC redist it is trying to install, but here with 2019 you can see that the installer itself is 32-bit.

If you can extract the needed DLLs and supply them to the program without needing the installer, you might be able to stay pure 64-bit, but bear in mind 32-bit dependencies can pop-up all over.
RNMixon
Newbie
Newbie
Posts: 3
Joined: Thu Jun 19, 2025 5:28 pm

Re: Trouble running 64-bit only on Ubuntu 24.04

Post by RNMixon »

KenSharp Thank you much. I should have though of that - we ran into the same issue, our installer was 32-bit even though what it was installing was 64-bit.

Now I'm trying to locate the DLLs for the VC redistributable on my system, have multiple version of Visual Studio and the redistributable too. Fun.

Thanks again - Richard
Post Reply