Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I create a 32-bit Wine prefix on Ubuntu 12.04 64-bit?

share|improve this question
Thank you very much. I used it for Unity3D. Because Unity3D only work on 32-bit. – NullException Oct 14 '14 at 19:06
up vote 82 down vote accepted

To create a 32-bit WINE prefix on a 64-bit Ubuntu system, you need to open a terminal and run the following command:

WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine wineboot
  • Where WINEPREFIX is the directory for the prefix
  • This directory must not already exist or you will get an error! Please do not manually create it in Nautilus or with mkdir./
share|improve this answer
thx! I have been fighting with this for a week :(, the message could be more specific.. – Aquarius Power Apr 30 '13 at 19:23
You can use double quotes everywhere, no need for single quotes :) – Smile4ever Jan 1 '15 at 19:52
When I run this command, Wine asks for an absolute path (so /home/username/prefix32 rather than ~/prefix32 – shea Mar 16 '15 at 10:17
@shea edited the OP accordingly – shelvacu Aug 9 '15 at 22:51
Also, you can omit the quotes altogether. – Smile4ever Feb 28 at 9:39

This Is how I did it. The above answer - for me - did not work.

so first I deleted the wine folder with this command

rm -r ~/.wine

If it will tell you that directory is not empty just write sudo in front

your commend should look something like this

sudo rm -r ~/.wine

and then created 32 bit prefix with this command

WINEARCH=win32 WINEPREFIX=~/.wine winecfg
share|improve this answer
First, you shouldn't have to write sudo in the front. Also, this will delete the entire virtual windows drive. – shelvacu May 3 '14 at 8:14
That's not correct answer, because u're deleting 64bit version. You just have to create another PREFIX in order to have them both. – Heihachi Oct 16 '14 at 10:40
Where you wrote "write sudo in front", the correct solution is to add -f, as in rm -rf ~/.wine. Adding sudo won't do anything. Also, WINEPREFIX=~/.wine is redundant, since that's the default location. – Brendan Long Nov 8 '14 at 21:12

Just creating a wine32 prefix/directory (without wine64 prefix/directory) will not work. As was suggested above (but not fully written out) - and if you want to avoid the need to use winecfg (which is annyoing in automation - you need to somehow close it), here is the full solution: create a wine64, then a wine32 directory. If you use winetricks to check it (it gives a warning for wine64 directories), it will report both correctly (wine64 gives the warning, since it's 64, wine32 does not, since it's 32.). The solution;

rm -Rf ./wine   # carefull, this deletes your entire wine config (fine if you want to start afresh)

WINEPREFIX=~/.wine wineboot


WINEPREFIX=~/.wine32 WINEARCH=win32 wineboot

After this, you can:

WINEPREFIX=~/.wine32 WINEARCH=win32 your_32bit_executable.exe

WINEPREFIX=~/.wine WINEARCH= your_64bit_executable.exe   # likely, did not test.
share|improve this answer
It looks like on my Ubuntu Trusty 14.04 I did not need to delete the amd64 (win64) ./wine folder. I had 3 programs previously installed and they kept working. I did only create a specific win32 directory ./wine32 Next I installed .NET 4.0 with the command $ WINEPREFIX=~/.wine32 winetricks dotnet40 and it worked flawlessly. – Antonio Oct 13 '15 at 0:24

i had troubles with Steam installation, i had to create the 32b directory folder with the command "WINEPREFIX="$HOME/prefix32" WINEARCH=win32 wine wineboot" and it actually worked, but when i try to install other apps or games with Wine it gives me the same error msg;

"You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug."

(im very very new in ubuntu so if u have any idea how to fix this please use as much details and command explanation as possible)

share|improve this answer

I was running into the same issue.

Type WINEARCH=win32 WINEPREFIX=~/.wine winecfg

It should start to download the drivers necessary. I believe this issue is due to a problem occurring during the normal download. For me it my internet dropped as it was originally downloading the drivers.

share|improve this answer
You do never need to run wine as root! – user877329 Aug 28 '14 at 6:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.