I am running Debian bullseye on amd64 and followed the instructions on https://wiki.winehq.org/Debian to install winehq-staging. Architecture i386 packages were added, but I always get:
The following packages have unmet dependencies:
winehq-staging : Depends: wine-staging (= 7.17~bullseye-1)
E: Unable to correct problems, you have held broken packages.
The following packages have unmet dependencies:
libasound2-plugins:i386 : Depends: libavcodec58:i386 (>= 7:4.2)
Depends: libavutil56:i386 (>= 7:4.0) but it is not installable
libavresample4:i386 : Depends: libavutil56:i386 (= 7:4.3.4-0+deb11u1) but it is not installable
E: Unable to correct problems, you have held broken packages.
In aptitude it shows me a lot of packages I apparently need to uninstall. It looks like there are some conflicting i386 packages that cannot be installed in parallel to the default amd64 packages?
I already searched the web for solutions to this but couldn't find any helpful information on this so I hope someone can help me now to resolve this
Thanks in advance!
The version numbers of the 32 and 64 bit packages should be the same. Usually this is the case on Debian, but after using packages from backports or a third-party repository, this can go wrong.
I think I fixed it. While the first option was to uninstall several packages including libavutil56, there were other options aptitude suggested. I cycled through these options and there was one where only some backport i386 packages needed to be installed. After installing them I could install winehq-staging as well. No idea why this wasn't the first solution in the first place.
No idea why this wasn't the first solution in the first place.
By default, the Debian backport repository gets a low preference number. Because of this, apt(itude) does not automatically install packages from backports.