Installing winehq on Debian

Questions about Wine on Linux
Locked
JoeKing
Newbie
Newbie
Posts: 3
Joined: Sun Sep 11, 2022 10:36 am

Installing winehq on Debian

Post by JoeKing »

Hi,

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:

Code: Select all

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.
When trying to install wine-staging it says:

Code: Select all

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!
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing winehq on Debian

Post by jkfloris »

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.

What is the output of:

Code: Select all

apt policy libavutil56:i386 libavutil56
JoeKing
Newbie
Newbie
Posts: 3
Joined: Sun Sep 11, 2022 10:36 am

Re: Installing winehq on Debian

Post by JoeKing »

jkfloris wrote: Tue Sep 13, 2022 4:41 amWhat is the output of:

Code: Select all

apt policy libavutil56:i386 libavutil56

Code: Select all

libavutil56:i386:
  Installed: (none)
  Candidate: 7:4.3.4-0+deb11u1
  Version table:
     7:4.3.4-0+deb11u1 500
        500 http://ftp.de.debian.org/debian bullseye/main i386 Packages
        500 http://security.debian.org/debian-security bullseye-security/main i386 Packages
libavutil56:
  Installed: 7:4.3.4-0+deb11u1
  Candidate: 7:4.3.4-0+deb11u1
  Version table:
 *** 7:4.3.4-0+deb11u1 500
        500 http://ftp.de.debian.org/debian bullseye/main amd64 Packages
        500 http://security.debian.org/debian-security bullseye-security/main amd64 Packages
        100 /var/lib/dpkg/status
If I try installing libavutil56:i386 I get a lot of conflicts. Apparently it cannot be installed in parallel to the amd64 version?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Installing winehq on Debian

Post by jkfloris »

If I try installing libavutil56:i386 I get a lot of conflicts.
Can you post the output of this?

With a little luck it will show which package is the culprit, if you are unlucky you will have to check all the dependencies manually.
JoeKing
Newbie
Newbie
Posts: 3
Joined: Sun Sep 11, 2022 10:36 am

Re: Installing winehq on Debian

Post by JoeKing »

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.

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

Re: Installing winehq on Debian

Post by jkfloris »

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.
Locked