How to apt install wine 32 bits?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
fernandomngl
Newbie
Newbie
Posts: 2
Joined: Sat Jul 27, 2019 8:48 am

How to apt install wine 32 bits?

Post by fernandomngl » Sat Jul 27, 2019 8:57 am

Hello,
I have one small shell script which I've used to install Wine into Ubuntu systems, and I've wrote it like this:

wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install -y --install-recommends winehq-stable -o APT::Install-Suggests="true"

But now, in Ubuntu 18.04 I've had problems while running legacy software it would give me the message "dll not found" while the needed dll was into same folder.

After some trial and error I've found that uninstalling it and manually installing the i386 deb's fixed the issue (when it gave me the error that the .wine folder was 64 bit wine installation I tested moving it and running winecfg again and it worked)

How do I write this command to be i386 install: sudo apt-get install -y --install-recommends winehq-stable -o APT::Install-Suggests="true"

Thank you!

jkfloris
Level 6
Level 6
Posts: 664
Joined: Thu Aug 14, 2014 10:10 am

Re: How to apt install wine 32 bits?

Post by jkfloris » Sun Jul 28, 2019 2:42 am

Did you enable the 32 bit architecture?

Code: Select all

sudo dpkg --add-architecture i386 
The winehq-stable package depends on wine-stable:i386.
In other words: When you install winehq-stable it will also install the 32 bit packages.

If you want to create a 32 bit Wine prefix read:
https://wiki.winehq.org/FAQ#How_do_I_cr ... _system.3F

fernandomngl
Newbie
Newbie
Posts: 2
Joined: Sat Jul 27, 2019 8:48 am

Re: How to apt install wine 32 bits?

Post by fernandomngl » Sun Jul 28, 2019 7:59 am

This worked perfectly!
Thank you!

Post Reply