How to switch from wine 32 bit to wine 64 bit in Debian 11?

Questions about Wine on Linux
Locked
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

I've just noticed i've installed the wrong bit architecture of wine. How can I switch to the 64-bit wine? I feel like i can do so much more in 64-bit (and plus my computer is also 64 bit).
I tried doing it once but I'm still stuck on 32 bit wine. I might need all the help I can get.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by jkfloris »

A created 32-bit wineprefix cannot be changed to a 64-bit prefix. However, it is possible to create a new prefix.

If you no longer need the old 32-bit prefix, rename (or delete) the (hidden) .wine folder in your home directory. A new wineprefix is automatically created when you use wine.

If you also want to keep using the old wineprefix, create a new one:

Code: Select all

WINEPREFIX="${HOME}/wine64" wine winecfg
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

Okay, thanks :D
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

Nvm, i just tried the prefix and it returned this when running winecfg

Code: Select all

002c:fixme:winediag:loader_init wine-staging 8.20 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
wine: could not load kernel32.dll, status c0000135
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by jkfloris »

That doesn't look good.
Do you get more information on what's happening with:

Code: Select all

WINEPREFIX="${HOME}/wine64" WINEDEBUG=fixme+all wine winecfg
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

I got this when running what you sent in the terminal.

Code: Select all

noahmonkeye@penguin:~/wine64/drive_c/windows$ WINEPREFIX="${HOME}/wine64" WINEDEBUG=fixme+all wine winecfg
002c:fixme:winediag:loader_init wine-staging 8.20 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
Winecfg opened, but I don't understand why just running "winecfg" returned a kernel32.dll error.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by jkfloris »

just running "winecfg"
Do you mean

Code: Select all

winecfg
# This is a short way of:
WINEPREFIX="${HOME}/.wine wine winecfg"
or

Code: Select all

WINEPREFIX="${HOME}/wine64" winecfg
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

The first one.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by jkfloris »

Can you reproduce the error with:

Code: Select all

WINEDEBUG=fixme+all winecfg
# or
WINEDEBUG=fixme+all wine winecfg
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

I tried both. They returned the kernel32.dll error.

Code: Select all

noahmonkeye@penguin:~$ WINEDEBUG=fixme+all winecfg
002c:fixme:winediag:loader_init wine-staging 8.20 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
wine: could not load kernel32.dll, status c0000135
noahmonkeye@penguin:~$ WINEDEBUG=fixme+all wine winecfg
002c:fixme:winediag:loader_init wine-staging 8.20 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
wine: could not load kernel32.dll, status c0000135
So the error can be reproduced.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by jkfloris »

This looks like an error in the default wineprefix (the .wine directory).
Maybe you can fix it with:

Code: Select all

wineboot -u
If that doesn't work, there's nothing else to do. Make a copy of the prefix and create a fresh prefix:

Code: Select all

mv ${HOME}/.wine ${HOME}/.wine-backup
wineboot
winecfg
Hffirbi
Level 2
Level 2
Posts: 13
Joined: Mon Oct 09, 2023 5:36 pm

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by Hffirbi »

Will the fresh prefix also be 64 bit or no?
also the wineboot command didn't work
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to switch from wine 32 bit to wine 64 bit in Debian 11?

Post by jkfloris »

A full wine installation creates a 64-bit prefix by default. A 32-bit prefix is created only if you use the WINEARCH variable or if you have installed only the 32-bit part of Wine.

Since creating a new prefix works and the old one does not, I wonder if you have defined a wine variable somewhere

Code: Select all

env | grep -i wine
Or that data remains in a cache/ buffer after deleting .wine.
Locked