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.
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.
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.
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
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.
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.
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.
#
# 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
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.
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.
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.)
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.
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.
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
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.
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 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: