wine32 problem on debian 10

Questions about Wine on Linux
Locked
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

wine32 problem on debian 10

Post by hgabor84 »

Hello!

I installed debian 10 on a computer and tried to install the winehq-stable package according to the official tutorial (https://wiki.winehq.org/Debian), then after running winecfg it asks me to install the wine32 package. I would have done that, but unfortunately I received error messages.

Code: Select all

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 (= 4.0-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

sudo apt install libwine:i386
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:
 libwine:i386 : Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libpulse0:i386 (>= 0.99.1) but it is not going to be installed
                Depends: libudev1:i386 (>= 183) but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libgl1:i386 but it is not going to be installed
                Recommends: libglu1-mesa:i386 but it is not going to be installed or
                            libglu1:i386
                Recommends: libgssapi-krb5-2:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libkrb5-3:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libsdl2-2.0-0:i386 (>= 2.0.9) but it is not going to be installed
                Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
                Recommends: libasound2-plugins:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Please help!

Thank you!
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: wine32 problem on debian 10

Post by jkfloris »

You must have misread something or didn't followed the steps quite right.
You are trying to install the Debian Wine packages.

* Did you enable the 32-bit architecture? The next command must give i386.

Code: Select all

dpkg --print-foreign-architectures
If not, run

Code: Select all

sudo dpkg --add-architecture i386
* Wine from WineHQ consists of 4 packages. Did you install all 4 packages?
winehq-stable
wine-stable
wine-stable-amd64
wine-stable-i386:i386


* Did you install the libfaudio0 packages from Debian backports?

Code: Select all

echo 'deb http://deb.debian.org/debian buster-backports main' > buster-backports.list
sudo mkdir -p /etc/apt/sources.list.d
sudo mv -i buster-backports.list /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install libfaudio0/buster-backports libfaudio0:i386/buster-backports
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

* Did you enable the 32-bit architecture? The next command must give i386. -> Of course, it was my first step from that webpage I linked:

Code: Select all

sudo dpkg --print-foreign-architectures
i386
I followed your command lines and after the last one:

Code: Select all

sudo apt update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://ppa.launchpad.net/ztefn/haguichi-debian/ubuntu bionic InRelease                
Hit:4 https://linux.teamviewer.com/deb stable InRelease                                     
Hit:5 http://deb.debian.org/debian buster-updates InRelease                                 
Hit:6 http://deb.debian.org/debian buster-backports InRelease         
Hit:7 https://dl.winehq.org/wine-builds/debian buster InRelease       
Reading package lists... Done                   
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Translations (main/i18n/Translation-hu) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
W: Target Translations (main/i18n/Translation-hu) is configured multiple times in /etc/apt/sources.list:23 and /etc/apt/sources.list.d/buster-backports.list:1
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: wine32 problem on debian 10

Post by jkfloris »

You had already activated debian -backports. You can delete the file /etc/apt/sources.list.d/buster-backports.list.

Code: Select all

sudo rm /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install libfaudio0/buster-backports libfaudio0:i386/buster-backports
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

Thank you, I'll try it tomorrow.
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

Code: Select all

sudo apt install libfaudio0/buster-backports libfaudio0:i386/buster-backports
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '21.02-1~bpo10+1' (Debian Backports:buster-backports [amd64]) for 'libfaudio0'
Selected version '21.02-1~bpo10+1' (Debian Backports:buster-backports [i386]) for 'libfaudio0:i386'
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:
 libfaudio0:i386 : Depends: libsdl2-2.0-0:i386 (>= 2.0.9) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Then I tried:

Code: Select all

sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: wine32 problem on debian 10

Post by jkfloris »

Do you have or did you have any other repositories enabled, besides buster-backports? deb-multimedia for example?
A 32-bit package must have the same version number as the 64-bit package.

Try to install libsdl2-2.0-0:i386. This package will probably blame an other package. Try to install that package, and so on until you found the culprit.
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

Code: Select all

# 

# deb cdrom:[Official Debian GNU/Linux Live 10.8.0 lxde 2021-02-06T12:07]/ buster main

#deb cdrom:[Official Debian GNU/Linux Live 10.8.0 lxde 2021-02-06T12:07]/ buster main

deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free

deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

deb http://deb.debian.org/debian buster-backports contrib non-free
deb-src http://deb.debian.org/debian buster-backports contrib non-free

deb https://dl.winehq.org/wine-builds/debian/ buster main 

Thats all. (folks :))

Code: Select all

sudo apt-get install libsdl2-2.0-0:i386
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:
 libsdl2-2.0-0:i386 : Depends: libpulse0:i386 (>= 0.99.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: wine32 problem on debian 10

Post by jkfloris »

We are another step closer to the solution. :)
Try to install libpulse0:i386. You will get an other unmet dependency. Try to install that dependency, an other unmet dependency etc.

(You don't have to run sudo apt-get install -f after each step.)
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

Yeah, I can feel it too. :)

libpulse0:i386 installed succesfully and after I could install another important things what you've suggested earlier:

Code: Select all

sudo apt install libfaudio0/buster-backports libfaudio0:i386/buster-backports
but wine32 and libwine:i386 packages are still missing as you can see:

Code: Select all

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 (= 4.0-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
and

Code: Select all

sudo apt-get install libwine:i386
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:
 libwine:i386 : Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                Depends: libudev1:i386 (>= 183) but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libgl1:i386 but it is not going to be installed
                Recommends: libglu1-mesa:i386 but it is not going to be installed or
                            libglu1:i386
                Recommends: libgssapi-krb5-2:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libkrb5-3:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libtiff5:i386 (>= 4.0.3) but it is not going to be installed
                Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
                Recommends: libasound2-plugins:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: wine32 problem on debian 10

Post by jkfloris »

The packages wine32 and libwine:i386 are part of the Debian Wine packages.
If you want to install Wine from WineHQ you need to install the following 4 packages:
winehq-stable
wine-stable
wine-stable-amd64
wine-stable-i386
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

I installed wine package from debian successfully after I tried again:

Code: Select all

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 (= 4.0-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
and

Code: Select all

sudo apt-get install libwine:i386
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:
 libwine:i386 : Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                Depends: libudev1:i386 (>= 183) but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libgl1:i386 but it is not going to be installed
                Recommends: libglu1-mesa:i386 but it is not going to be installed or
                            libglu1:i386
                Recommends: libgssapi-krb5-2:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libkrb5-3:i386 (>= 1.6.dfsg.2) but it is not going to be installed
                Recommends: libtiff5:i386 (>= 4.0.3) but it is not going to be installed
                Recommends: libgl1-mesa-dri:i386 but it is not going to be installed
                Recommends: libasound2-plugins:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
fargodwe

Re: wine32 problem on debian 10

Post by fargodwe »

Back when you followed thee winehq instructions for installing wine did you do the very first thing - adding the 386 architecture?
hgabor84
Level 2
Level 2
Posts: 47
Joined: Mon Nov 27, 2017 5:06 pm

Re: wine32 problem on debian 10

Post by hgabor84 »

fargodwe wrote: Mon Mar 15, 2021 5:09 pm Back when you followed thee winehq instructions for installing wine did you do the very first thing - adding the 386 architecture?
Yes.

As I found the solution for my dependency problems recently I would share here:
spoon0042 wrote: Mon Mar 15, 2021 10:59 am Yeah, you've got different versions available which confuses apt. The easiest way to fix that would be to tell it to prefer buster-backports:

Code: Select all

apt -t=buster-backports install libzstd1:i386
You may need to repeat this process for other packages.

(It's also possible to downgrade, or to get apt to always prefer buster-backports but I'm trying to avoid confusing you, heh.)
Thanks for every help!
Locked