How to install Wine 32-bit on Linux Mint 19 64-bit ?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

Good morning,

I was using Wine in Mint 18.2 and when I upgraded, wine didn't work on 32-bit EXE. It explains that I should install the package wine32 but I can't (unsatisfied dependencies). Then, I decided to remove wine and reinstall it properly.

So, I did:

Code: Select all

manoaratefy@manoaratefy-hb ~ $ sudo apt-get remove wine*
manoaratefy@manoaratefy-hb ~ $ sudo apt-get update
manoaratefy@manoaratefy-hb ~ $ sudo apt-get install wine-stable
Then, found that wine32 is still required when I launch 32-bit executable. I install it:

Code: Select all

manoaratefy@manoaratefy-hb ~ $ sudo apt-get install wine32
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package wine32 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'wine32' has no installation candidate
No installation candidate. Found on the web that I should enable i386 architecture. So:

Code: Select all

manoaratefy@manoaratefy-hb ~ $ sudo dpkg --add-architecture i386
manoaratefy@manoaratefy-hb ~ $ sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]                                                                                             
Get:2 http://archive.canonical.com/ubuntu bionic InRelease [10,2 kB]                                                                                                    
Get:3 http://archive.canonical.com/ubuntu bionic/partner i386 Packages [2 304 B]                                                                                      
Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease                                           
Ign:5 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara InRelease                
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [190 kB]           
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                                          
Hit:8 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara Release                             
Hit:10 http://archive.ubuntu.com/ubuntu bionic-backports InRelease                                       
Get:11 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara/main i386 Packages [12,9 kB]                                                  
Get:12 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1 007 kB]                                   
Get:13 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [112 kB]          
Get:14 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara/upstream i386 Packages [32,2 kB]
Get:15 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara/import i386 Packages [2 730 B]                  
Get:16 https://mirrors.ukfast.co.uk/sites/linuxmint.com/packages tara/backport i386 Packages [29,5 kB]               
Get:17 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [3 500 B]    
Get:18 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [9 156 B]                                                                                       
Get:19 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [8 531 kB]                                                                                        
Get:20 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [144 kB]                                                                                        
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [431 kB]                                                                                      
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [6 928 B]                                                                               
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [707 kB]                                                                                  
Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6 540 B]                                                                               
Get:25 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [3 472 B]                                                                               
Fetched 11,3 MB in 1min 53s (101 kB/s)                                                                                                                                  
Reading package lists... Done
manoaratefy@manoaratefy-hb ~ $ sudo apt-get install wine32
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried also to follow instructions on winehq.com (using their own repo) but no success (same issue, unmet dependencies). So, any idea to make wine correctly running for 32-bit applications?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by AndyMH »

My notes from about two years ago, don't use wine anymore, now use crossover instead. Assume it will still work:

13. Install wine from software manager. If Office 2007 is installed with either winetricks or playonlinuxordirectly from wine it will not work. This is because wine gets something wrong with office (32 bit app) in a 64 bit mint installation. Instead from a terminal enter:

Code: Select all

WINARCH=win32 WINPREFIX=~/.win32 winecfg
This creates a hidden folder win32 (prefix) in /home/andy. It also couldn’t find wine mono or gecko and installed these automatically. Funny, checking in the software manager after the event wine mono and gecko are showing not installed (maybe this is a 32bit to 64bit issue?).
  • Wine-gecko 2.21 – Wine is a compatibility layer for running Windows applications on Linux. Applications are run at full speed without the need of cpu emulation. Wine does not require Microsoft Windows, however it can use native system dll files in place of its own if they are available.
  • This package includes the Gecko rendering engine from the Mozilla project for displaying embedded web pages in Wine applications.
  • Wine-mono 0.0.8 – Wine is a compatibility layer for running Windows applications on Linux. Applications are run at full speed without the need of cpu emulation. Wine does not require Microsoft Windows, however it can use native system dll files in place of its own if they are available.
    This package includes Wine's version of the Mono project for running applications built using Microsoft's .net framework

Output from the above generated a number of errors as below, but didn’t affect the final outcome:

Code: Select all

andy@T430 ~ $ WINEARCH=win32 WINEPREFIX=~/.win32 winecfg
wine: created the configuration directory '/home/andy/.win32'
fixme:urlmon:DownloadBSC_OnProgress Unsupported status 3
fixme:wininet:InternetLockRequestFile STUB
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
err:mscoree:LoadLibraryShim error reading registry key for installroot
fixme:urlmon:DownloadBSC_OnProgress Unsupported status 3
fixme:wininet:InternetLockRequestFile STUB
fixme:storage:create_storagefile Storage share mode not implemented.
err:winediag:SECUR32_initNTLMSP 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.
fixme:iphlpapi:NotifyAddrChange (Handle 0x11fe8a0, overlapped 0x11fe8ac): stub
wine: configuration in '/home/andy/.win32' has been updated.
Note – winbind was not installed, don’t know if its installation would have made any difference. Installed after the event just in case.
WINBIND – Samba is an implementation of the SMB/CIFS protocol for Unix systems, providing support for cross-platform file sharing with Microsoft Windows, OS X, and other Unix systems. Samba can also function as a domain controller or member server in both NT4-style and Active Directory domains.
This package provides winbindd, a daemon which integrates authentication and directory service (user/group lookup) mechanisms from a Windows domain on a Linux system.


Winbind based user/group lookups via /etc/nsswitch.conf can be enabled via the libnss-winbind package. Winbind based Windows domain authentication can be enabled via the libpam-winbind package.

14. To install office, in a terminal:

Code: Select all

WINEPREFIX=~/.win32 wine control
This will bring up a window:

Use Add/Remove Programs to get at the setup.exe for office 2007.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

The problem is there is no setup file for my application. I have just to launch the .EXE to get it running. So, I tried this after steps you described:

Code: Select all

manoaratefy@manoaratefy-hb /media/manoaratefy/01D265B03B445870/Program Files (x86)/Anuman interactive/Us long trucks road simulator $ WINEPREFIX=~/.win32 wine ./alh.exe
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
wine: Mauvais format EXE pour Z:\media\manoaratefy\01D265B03B445870\Program Files (x86)\Anuman interactive\Us long trucks road simulator\alh.exe.
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by Pierre »

you can just add the 32bit support by:

Code: Select all

sudo dpkg --add-architecture i386 
the install wine thus:

Code: Select all

sudo apt-get install wine-stable
with the current move to 64bit - this issue could be become more common.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
kc1di
Level 18
Level 18
Posts: 8181
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by kc1di »

In mint 19.x wine has change you have to install both wine-stable and wine32 IE

Code: Select all

sudo apt install wine-stable wine32
Then the 32 bit program should load and run fine. I also recommend playonlinux to many who are not that familiar with wine It's a nice front end and will allow you to select not just 32 bit installs but install many versions of wine without effecting one another. Good luck.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

kc1di wrote: Wed Jan 30, 2019 6:22 am In mint 19.x wine has change you have to install both wine-stable and wine32 IE

Code: Select all

sudo apt install wine-stable wine32
Then the 32 bit program should load and run fine. I also recommend playonlinux to many who are not that familiar with wine It's a nice front end and will allow you to select not just 32 bit installs but install many versions of wine without effecting one another. Good luck.

Code: Select all

manoaratefy@manoaratefy-hb ~ $ sudo apt install wine-stable wine32
[sudo] password for manoaratefy: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
wine-stable is already the newest version (3.0-1ubuntu1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
User avatar
kc1di
Level 18
Level 18
Posts: 8181
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by kc1di »

are you running 19 or 19.1? I believe there was a problem with wine in 19. So you may want to upgrade to 19.1 if that is the case.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

I'm using 19. Let me upgrade to 19.1 and re-check.
Lemonjuice

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by Lemonjuice »

I recommend PlayOnLinux, this can create a 32bit prefix in the click of a few buttons.
https://www.playonlinux.com/en/
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

kc1di wrote: Wed Jan 30, 2019 3:27 pm are you running 19 or 19.1? I believe there was a problem with wine in 19. So you may want to upgrade to 19.1 if that is the case.
Still have the same issue after upgrading.
User avatar
kc1di
Level 18
Level 18
Posts: 8181
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by kc1di »

At this point I'd try Playonlinux. When you get it install and run it go to tools and manage wine version and install the wine version you want.
When you use it to install the program you want it will give you the choice of either 32 or 64 bit.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

kc1di wrote: Fri Feb 01, 2019 5:38 pm At this point I'd try Playonlinux. When you get it install and run it go to tools and manage wine version and install the wine version you want.
When you use it to install the program you want it will give you the choice of either 32 or 64 bit.
I tried PlayOnLinux (following this topic to run standalone .exe) but it says:

Code: Select all

Error in POL_Wine
Wine seems to have crashed

If your program is running, just ignore this message
thatsafact

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by thatsafact »

I had similar issues, but what EXE are you trying to run?
User avatar
Pierre
Level 21
Level 21
Posts: 13227
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by Pierre »

thatsafact wrote: Sat Feb 02, 2019 2:48 am I had similar issues, but what EXE are you trying to run?
yeah - what is the Windows Program Name ?
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
kc1di
Level 18
Level 18
Posts: 8181
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by kc1di »

if it will let you click beyond the error and see if it lets you continue the install.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
manoaratefy
Level 1
Level 1
Posts: 26
Joined: Thu Dec 13, 2018 1:58 am
Location: Madagascar
Contact:

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by manoaratefy »

thatsafact wrote: Sat Feb 02, 2019 2:48 am I had similar issues, but what EXE are you trying to run?
Something I developed myself.

I might found the issue preventing from wine32 to be installed. I was using deb.sury.org repo to get some custom PHP versions and it seems that the PHP package use libpcre3 which is also used by wine32. But the PHP from deb.sury.org use its own version, incompatible with wine32 from the official repo. I'm trying to remove libpcre3 and replace it with the official version (so, I'll have to reinstall also my custom PHP versions).
User avatar
kc1di
Level 18
Level 18
Posts: 8181
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by kc1di »

That would do it. Hope you can get it sorted - Good Luck.
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
Halbarad
Level 1
Level 1
Posts: 31
Joined: Tue Feb 05, 2019 2:30 pm

Re: How to install Wine 32-bit on Linux Mint 19 64-bit ?

Post by Halbarad »

Sorry for replying so late, I hope it may be of help to someone.
There are several typos in AndyMH's reply. The command for generating a Wine 32 bit prefix is:

Code: Select all

WINEARCH=win32 WINEPREFIX="~/.newprefix32/" winecfg
or equivalently

Code: Select all

WINEARCH=win32 WINEPREFIX="/home/YOURUSERNAME/.newprefix32/" winecfg
Always remember the "E" after "WIN"... except in "win32" that is. Instead of ".newprefix32" you can use the name you like. And surely, replace "YOURUSERNAME" with your user name ;-)

To launch winetricks for your 32 bits prefix:

Code: Select all

WINEPREFIX="/home/YOURUSERNAME/.newprefix32/" winetricks
To launch a program:

Code: Select all

WINEPREFIX="/home/YOURUSERNAME/.newprefix32/" wine 'UNIX_PATH_TO_EXE_IN_YOUR_DRIVE_C/PROGRAM.EXE'
The path to program is e.g.:

Code: Select all

/home/USERNAME/.newprefix32/drive_c/Program Files (x86)/WHATEVER.EXE
Expressions in capitals have to be replaced. Remember to enclose the path to the program between single quotes.
I think it's convenient to have an alias added to ~/.bashrc or to ~/.bash_aliases for the WINEPREFIX part, or you can write short bash files and possibly link to them from the desktop.

I should perhaps say that I find both Wine and Winetricks seriously buggy and I prefer to use a virtual machine.
EDIT: browsing online, there are lots of good advice for installing Microsoft stuff with Wine.
Locked

Return to “Software & Applications”