Problem installing WINE - Debian 12 (Bookworm)

Questions about Wine on Linux
Locked
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

Problem installing WINE - Debian 12 (Bookworm)

Post by us3rs4t »

Hello, I am not new to Linux but still I am a bit of a noob. I'm still in the dance and I'm not giving up, I must install the indomitable Wine

I am running:

Debian 12 with Kernel 6.11.10+bpo-amd64

I was trying to install Wine following the official instructions. All good untill I run this command:

Code: Select all

sudo apt install --install-recommends winehq-stable
The output is:

Code: Select all

Reading package lists... Done

Building dependency tree... Done

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:

winehq-stable : Depends: wine-stable (= 9.0.0.0~bookworm-1)

E: Unable to correct problems, you have held broken packages.
I've tried the suggestions provided in the wiki help, installing the dependencies... but every time I try something, I get deeper into the loop with no way out. Most of the questions and answers I read from Saint Google don't have a correct solution.

Please help! :(
WineTaster
Level 1
Level 1
Posts: 7
Joined: Sat Jan 04, 2025 12:31 pm

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by WineTaster »

have you tried enabling the 32bit comparability on your box ?

in terminal :
sudo dpkg --add-architecture i386
desessarts
Level 4
Level 4
Posts: 196
Joined: Wed Oct 04, 2023 7:57 am

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by desessarts »

this means you forgot one of the steps, for example

Code: Select all

sudo apt update
or any

Code: Select all

sudo mkdir ...
or

Code: Select all

wget ...
do it again checking all the steps
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by jkfloris »

If you follow all steps and still get errors, post the output of:

Code: Select all

apt policy
and

Code: Select all

sudo apt install --install-recommends wine-stable-i386
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by us3rs4t »

The truth is that I have followed all the help material to the letter, I have tried to carry out the exercise of executing the commands, clearing the cache, trying to install "winehq-stable" again but without positive results.
Now install "Synaptic"; when I follow these steps...
1- Open Synaptic
2- All
3- Search for "wine-stable" or "winehq-stable"
4- Click on mark to install
5- I get the following box with the message:
Mark additional changes required? The chosen action affects other packages. The following changes are required to proceed. To be removed (shows several packages, including apache, cmake, php, etc.; and other libraries that I see are necessary for other packages to work).

Note: I use these packages on a daily basis, for this reason I am asking you to confirm if this is normal for me to request to install a package in this case winehq-stable; and not break my entire system. Or an infinite loop is created where I have to install apache2 again and uninstall "winehq-stable".
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by jkfloris »

Can you run the commands from my previous post in a terminal?
The output will probably tell us what is going wrong.
us3rs4t
Level 1
Level 1
Posts: 7
Joined: Sun Aug 13, 2023 3:02 am

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by us3rs4t »

jkfloris wrote: Mon Jan 06, 2025 12:35 pm If you follow all steps and still get errors, post the output of:

Code: Select all

apt policy

Code: Select all

100 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/debian bookworm/main all Packages
     release o=dl.winehq.org,a=stable,n=bookworm,l=winehq,c=main,b=all
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian bookworm/main i386 Packages
     release o=dl.winehq.org,a=stable,n=bookworm,l=winehq,c=main,b=i386
     origin dl.winehq.org
 500 https://dl.winehq.org/wine-builds/debian bookworm/main amd64 Packages
     release o=dl.winehq.org,a=stable,n=bookworm,l=winehq,c=main,b=amd64
     origin dl.winehq.org
 100 http://ftp.debian.org/debian stable-backports/non-free-firmware i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=non-free-firmware,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/non-free-firmware amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=non-free-firmware,b=amd64
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/non-free i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=non-free,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/non-free amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=non-free,b=amd64
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/contrib i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=contrib,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/contrib amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=contrib,b=amd64
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/main i386 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=main,b=i386
     origin ftp.debian.org
 100 http://ftp.debian.org/debian stable-backports/main amd64 Packages
     release o=Debian Backports,a=stable-backports,n=bookworm-backports,l=Debian Backports,c=main,b=amd64
     origin ftp.debian.org
 500 http://deb.debian.org/debian-security stable-security/non-free-firmware i386 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=non-free-firmware,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/non-free-firmware amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/contrib amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/main i386 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian-security stable-security/main amd64 Packages
     release v=12,o=Debian,a=stable-security,n=bookworm-security,l=Debian-Security,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/non-free-firmware amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/non-free i386 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=non-free,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/non-free amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/contrib amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/main i386 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable-updates/main amd64 Packages
     release v=12-updates,o=Debian,a=stable-updates,n=bookworm-updates,l=Debian,c=main,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free-firmware i386 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free-firmware,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free-firmware amd64 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free-firmware,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free i386 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/non-free amd64 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=non-free,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/contrib i386 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=contrib,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/contrib amd64 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=contrib,b=amd64
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/main i386 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://deb.debian.org/debian stable/main amd64 Packages
     release v=12.9,o=Debian,a=stable,n=bookworm,l=Debian,c=main,b=amd64
     origin deb.debian.org
:?:
jkfloris wrote: Mon Jan 06, 2025 12:35 pm

Code: Select all

sudo apt install --install-recommends wine-stable-i386
I have 64 bits, This command practically left me without internet connection apart from uninstalling a large number of packages necessary for my daily life
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Problem installing WINE - Debian 12 (Bookworm)

Post by jkfloris »

It is likely that you have installed a package from Bookworm backports for which you also need the 32-bit version.
These packages have a lower priority than the Debian packages. Therefore, they are not installed automatically.

I'm not entirely sure, but I think you should be able to install Wine with:

Code: Select all

sudo apt install -t bookworm-backports --install-recommends winehq-stable
If that doesn't work, post the output of the packages from Bookworm backports:

Code: Select all

dpkg -l | grep -e '~bpo'
Locked