Trying to install: unmet dependencies > broken packages

Questions about Wine on Linux
Post Reply
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Trying to install: unmet dependencies > broken packages

Post by mr.matt.eastwood »

Hello, Wine community!

A few months ago, Wine broke on my laptop, as did Steam with Proton. I didn't have time to deal with it, so I purged everything related to both programs as well as any leftover configs. Today, I find myself needing Wine again, so I've been trying to install it on my Linux Mint machine - system specs: https://termbin.com/6c6o

I followed these instructions to the letter: https://wiki.winehq.org/Ubuntu

I get this far:

Code: Select all

$ sudo apt install --install-recommends winehq-staging
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-staging : Depends: wine-staging (= 9.4~jammy-1)
E: Unable to correct problems, you have held broken packages.
When I try to install wine-staging, I get this:

Code: Select all

The following packages have unmet dependencies:
 libpoppler118:i386 : Depends: liblcms2-2:i386 (>= 2.7) but it is not installable
E: Unable to correct problems, you have held broken packages.
When I try to install liblcms2-2:i386, I get more unmet dependencies.

Code: Select all

The following packages have unmet dependencies:
 mintsources : Depends: mint-common (>= 2) but it is not going to be installed
               Depends: gir1.2-gtk-3.0 but it is not going to be installed
               Depends: gir1.2-vte-2.91 but it is not going to be installed
               Depends: gir1.2-xapp-1.0 but it is not going to be installed
 smtube : Depends: smplayer (>= 0.7.0) but it is not going to be installed or
                   mplayer but it is not going to be installed or
                   mpv but it is not installable or
                   vlc but it is not going to be installed or
                   dragonplayer but it is not going to be installed or
                   totem but it is not going to be installed or
                   gnome-mplayer but it is not installable
          Recommends: youtube-dl but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I tried:
  • Installing the dependencies listed above, they're already the newest versions
  • Upgrading from Mint 21.1 to Mint 21.3
  • Fixing broken packages through

    Code: Select all

    sudo apt install -f
    and

    Code: Select all

    sudo dpkg --configure -a
    and

    Code: Select all

    sudo apt update --fix-missing
  • Fixing broken packages in Synaptic via Edit > Fix broken packages
  • Updating the whole system, including held packages
  • Using Bottles (flatpak). It sets up a bottle, but won't let me select executables unless I tell it to show all files in a folder, and when I try to execute them, nothing happens. When I try to execute a program using bottles from the CLI, nothing happens either, I just land on a new line with no output.
I'm out of ideas. The only thing I managed to pull off was to install Wine 6.x using the wine-installer package that comes with the OS. But that's pretty old, seeing we're at 9.4.

Any help would be greatly appreciated! I don't even know why Wine-Staging broke on my system a few months ago, it was perfectly fine one day and the next time I checked, everything was borked.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Trying to install: unmet dependencies > broken packages

Post by jkfloris »

What versions of libpoppler118 and liblcms2-2 are available for your system?

Code: Select all

apt policy libpoppler118:{amd64,i386} liblcms2-2:{amd64,i386}
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Re: Trying to install: unmet dependencies > broken packages

Post by mr.matt.eastwood »

This is what the command tells me:

Code: Select all

$ apt policy libpoppler118:{amd64,i386} liblcms2-2:{amd64,i386}
libpoppler118:
  Installed: 22.02.0-2ubuntu0.3
  Candidate: 22.02.0-2ubuntu0.3
  Version table:
 *** 22.02.0-2ubuntu0.3 500
        500 http://ftp.uni-mainz.de/ubuntu jammy-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        100 /var/lib/dpkg/status
     22.02.0-2 500
        500 http://ftp.uni-mainz.de/ubuntu jammy/main amd64 Packages
libpoppler118:i386:
  Installed: (none)
  Candidate: 22.02.0-2ubuntu0.3
  Version table:
     22.02.0-2ubuntu0.3 500
        500 http://ftp.uni-mainz.de/ubuntu jammy-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     22.02.0-2 500
        500 http://ftp.uni-mainz.de/ubuntu jammy/main i386 Packages
liblcms2-2:
  Installed: 2.14-0build2~jammy
  Candidate: 2.14-0build2~jammy
  Version table:
 *** 2.14-0build2~jammy 500
        500 https://ppa.launchpadcontent.net/ubuntuhandbook1/apps/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     2.12~rc1-2build2 500
        500 http://ftp.uni-mainz.de/ubuntu jammy/main amd64 Packages
liblcms2-2:i386:
  Installed: (none)
  Candidate: 2.12~rc1-2build2
  Version table:
     2.12~rc1-2build2 500
        500 http://ftp.uni-mainz.de/ubuntu jammy/main i386 Packages
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Trying to install: unmet dependencies > broken packages

Post by jkfloris »

From your system specs:

Code: Select all

  Active apt repos in: /etc/apt/sources.list.d/ubuntuhandbook1-apps-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/ubuntuhandbook1-apps-jammy.gpg] https: //ppa.launchpadcontent.net/ubuntuhandbook1/apps/ubuntu jammy main
You only have the 64-bit packages enabled for these (and other) repositories.
Add the 32-bit repository as well

Code: Select all

# add i386 to arch
deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/ubuntuhandbook1-apps-jammy.gpg] https://....
# or remove arch=amd64
deb [signed-by=/etc/apt/keyrings/ubuntuhandbook1-apps-jammy.gpg] https://....
And try to reinstall Wine.
User avatar
mr.matt.eastwood
Level 2
Level 2
Posts: 15
Joined: Fri Sep 03, 2021 8:38 am

Re: Trying to install: unmet dependencies > broken packages

Post by mr.matt.eastwood »

Wow, that did it! I would never have found this out on my own. Do you know how this restriction might have gotten there?
Post Reply