Can I have both 64 bit and 32 bit wine installed simultaneously

Questions about Wine on Linux
Locked
ralphl
Level 2
Level 2
Posts: 22
Joined: Tue Feb 26, 2008 9:46 pm

Can I have both 64 bit and 32 bit wine installed simultaneously

Post by ralphl »

I am trying to install iTunes on wine on Xubuntu 22.04. I installed wine 64 bit and iTunes64, but, although iTunes ran, it didn't run right. So I want to try the 32 bit version of iTunes under wine32. I installed wine32, but when I type "wine32" into Terminal, it says "command not found". If I type "wine iTunesSetup.exe" (32 bit ITunes), it runs for a while and then says "This iTunes installer is intended for 32-bit versions of Windows. Please download and install the 64-bit iTunes installer instead". Apparently the 32 bit iTunes I am trying to install thinks its on a 64 bit system.
1. How do I specify that iTunes32 run on wine32?
2. Is having both wine64 and wine32 on the same Xubuntu system possible?
3. Should I uninstall both wine64 and wine32 and start over?
Any help is appreciated.............
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Can I have both 64 bit and 32 bit wine installed simultaneously

Post by jkfloris »

The architecture of your Wine installation is determined by your Wineprefix. By default, this is a 64bit (WoW64) installation. You can create a 32bit prefix with the WINEARCH variable.

For example:

Code: Select all

WINEARCH=win32 WINEPREFIX=${HOME}/iTunes wine iTunesSetup.exe
ralphl
Level 2
Level 2
Posts: 22
Joined: Tue Feb 26, 2008 9:46 pm

Re: Can I have both 64 bit and 32 bit wine installed simultaneously

Post by ralphl »

Thank you for your response. That helped, but I still couldn't get iTunes to work. So I decided to try purging wine and start over. Apparently I didn't purge it correctly, since when I reinstalled wine (from wine stable as shown in the website https://wiki.winehq.org/Ubuntu), nothing worked. I couldn't even run iexplore.exe that came with the installation. iexplore just grinds for a while, but won't come up. Then it quits.
Any idea of how to completely purge wine and start over. I followed the directions here https://ubuntuhandbook.org/index.php/20 ... dows-apps/ and https://vitux.com/how-to-install-wine-on-ubuntu/.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Can I have both 64 bit and 32 bit wine installed simultaneously

Post by jkfloris »

First, let's see if your Wine installation is correct.

Code: Select all

dpkg -l | grep wine
The following packages must be present:

Code: Select all

winehq-stable
wine-stable
wine-stable-amd
wine-stable-i386:i386
If one is missing, install the package with:

Code: Select all

sudo apt install package_name
The following packages should not be present in the list:

Code: Select all

wine
wine64
wine32:i386
libwine:amd64
libwine:i386
If a package appears in the list remove the package with:

Code: Select all

sudo apt purge package_name
If all Wine packages are present, then we can check the Wineprefix (the fake Windows installation).
Rename (or remove) the default Wineprefix

Code: Select all

mv "${HOME}/.wine" "${HOME}/.wine-old"
Create a new, clean Wineprefix and install Wine-Mono and Wine-Gecko if asked.

Code: Select all

wineboot -i
There will be some err and fixme messages. Don't be scared, this is normal:

Code: Select all

wine: created the configuration directory '/home/.../.wine'
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0048:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0050:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0050:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0050:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0050:err:ole:start_rpcss Failed to open RpcSs service
0048:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hr 0x80004002
0048:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, hr 0x80004002
0048:err:ole:apartment_get_local_server_stream Failed: 0x80004002
0048:fixme:imm:ImeSetActiveContext (0x256e50, 0): stub
0048:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000256E50): stub
002c:fixme:imm:ImeSetActiveContext (0x256810, 1): stub
002c:fixme:imm:ImmReleaseContext (0000000000010048, 0000000000256810): stub
0094:fixme:file:NtLockFile I/O completion on lock not implemented yet
0094:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0094:err:mscoree:LoadLibraryShim error reading registry key for installroot
0094:err:mscoree:LoadLibraryShim error reading registry key for installroot
0094:err:mscoree:LoadLibraryShim error reading registry key for installroot
0094:err:mscoree:LoadLibraryShim error reading registry key for installroot
009c:fixme:file:NtLockFile I/O completion on lock not implemented yet
009c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
009c:err:mscoree:LoadLibraryShim error reading registry key for installroot
009c:err:mscoree:LoadLibraryShim error reading registry key for installroot
009c:err:mscoree:LoadLibraryShim error reading registry key for installroot
009c:err:mscoree:LoadLibraryShim error reading registry key for installroot
009c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
009c:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 5)
0094:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0094:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
wine: configuration in L"/home/.../.wine" has been updated.
Time to run the first program with Wine: Notepad!

Code: Select all

wine notepad
Notepad will launch and the following output will be shown:

Code: Select all

0100:fixme:imm:ImeSetActiveContext (0x24abf0, 1): stub
0100:fixme:imm:ImmReleaseContext (0001004E, 0024ABF0): stub
0070:fixme:imm:ImeSetActiveContext (0x25de60, 0): stub
0070:fixme:imm:ImmReleaseContext (0000000000010020, 000000000025DE60): stub
Next Internet Explorer:

Code: Select all

wine iexplore
Again, there will be some fixme messages. You can ignore them.
Should there be any other err messages besides "err:mshtml:ElementSelector_querySelectorAll QuerySelectorAll failed:", please post the full output.
ralphl
Level 2
Level 2
Posts: 22
Joined: Tue Feb 26, 2008 9:46 pm

Re: Can I have both 64 bit and 32 bit wine installed simultaneously

Post by ralphl »

Thank you again for your help. Everything worked!! There were a few more err messages, but they didn't seem to cause a problem. I haven't tried installing any other applications yet, but I want to install two: Bicycle Bridge and iTunes. Let me know if I should go ahead and try to install them on the wineprefix that was created, or should I do something else.
I enclosed the Terminal output from running wineboot -i, notepad, and iexplore.

I have some other questions which you might be able to answer:
1. I did a printenv on the wineprefix we created and ran notepad, iexpore, and did not see WINEPREFIX. Is this the default case and does it means that a 64bit version of wine is being run?
2. Some place I think I read that a 64 bit wine can also run 32bit Windows apps. Is this true? If it is true, then why would anyone want to have WINEARCH=win32?
3. Is WINEARCH=win64 a legal command to set the architecture to 64bit? If so will it run just 64bit apps, or both 32bit and 64bit apps, like the default of no WINEARCH?
4. Is WINEARCH=wow64 a legal command. If so will it run both 64bit and 32bit apps?
5. And finally, will I need to create a new WINEPREFIX in order to run a 32 bit version of iTunes?? I read that 32bit iTunes is better for an older computer with a limited graphics processor (mine is nvidia geforce 940mx).
Thank you again for your help!!!
Attachments
Terminal_Output_from_wineboot_-i.tar.gz
(2.99 KiB) Downloaded 83 times
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Can I have both 64 bit and 32 bit wine installed simultaneously

Post by jkfloris »

The default Wineprefix is 64-bit WoW64. You can use "WINEARCH=win64", but that will create the same type of prefix. A "true" 64-bit prefix is possible only if you do not install the 32-bit Wine packages. Many programs will not work, because Windows often uses 32-bit instructions. For example, almost all installers are 32-bit. Otherwise, the installer cannot detect whether it is running in a 32-bit or 64-bit environment. As far as I know, there is no "true" 64-bit Windows installation. That is why WoW64 and 64-bit are often used interchangeably.

The reason you can create a 32-bit prefix is that some programs do not work (well) in a WoW64 environment. For example, programs that only run under Windows 98 or older.

iTunes is a little odd. It should be possible to run the 32-bit version in a WoW64 environment, but the installation program prevents the installation. No idea why Apple thinks that's a good idea.

There are several known bugs for iTunes. You will probably have the best results with version 12.9.33/ 64-bit

In your terminal output, I noticed two things.

Code: Select all

0110:err:winediag:ntlm_check_version ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
Not all programs need ntlm_auth, but it doesn't hurt to install the winbind package.

Code: Select all

MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
You run Wine with the internal Intel card. I don't know exactly how you can use your Nvidia card, but there should be plenty of information on the internet.
invisible kid
Level 5
Level 5
Posts: 353
Joined: Tue Dec 24, 2019 3:23 pm

Re: Can I have both 64 bit and 32 bit wine installed simultaneously

Post by invisible kid »

I don't know if there are debian packages for nvidia's proprietary drivers, but I install them from the nvidia install scripts. You exit out of X and install via a console terminal. It builds against your kernel source. It asks if you also want to install the 32 bit drivers. I believe that's all I need to do to get it working.
Locked