2

I had previously installed wine-stable, but for a particular program I wanted to run it was recommended that I run wine-staging. So I uninstalled wine-stable, and tried to install wine-staging as normal.

When I run

sudo apt install wine-staging

I get

 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 resolve the situation:

The following packages have unmet dependencies:
 wine-staging : Depends: wine-staging-amd64 (= 4.0~rc7~cosmic) but it is not going to be installed
                Depends: wine-staging-i386 (= 4.0~rc7~cosmic)
E: Unable to correct problems, you have held broken packages.

So when I try to install the dependencies, I just keep on getting further down a rabbit hole of things I need but for some unexplained reason cannot install.

So for instance, when I tried to install wine-staging-amd64, I get

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 resolve the situation:

The following packages have unmet dependencies:
 wine-staging-amd64 : Depends: libavcodec58 (>= 7:4.0) but it is not installable
                      Depends: libavutil56 (>= 7:4.0) but it is not installable
                      Depends: libvkd3d1 but it is not installable
E: Unable to correct problems, you have held broken packages.

This is mainline Ubuntu, on an installation less than a week old. I haven't done any messing with my repos, and I've spent the past hour reading all kinds of solutions that seemed to work for everybody else, but do not work for me, such as sudo dpkg --add-architecture i386. I've tried installing the .deb directly from the winehq website, but Ubuntu Software install progress just goes from 0-100 in a second like it's installed, and then presents me with the install button again with no error indicating something went wrong. With gdebi, it tells me it's got a dependency that cannot be satisfied - which is itself. I'm not a new Linux user, and I've never run into such a ridiculous web of issues trying to install a simple package. Is there something going on within the WINE project right now, or am I somehow doing something wrong? This issue is seriously testing my patience.

5
  • Just checking, for sure you have added wine repository, right?
    – LeonidMew
    Feb 5, 2019 at 21:18
  • @LeonidMew yessir. I followed step-by-step the installation guide found on winehq after installing the “normal” way didn’t work. It didn’t seem to change anything.
    – Will
    Feb 5, 2019 at 21:19
  • Important info for people who want to help out: 1) the output of apt policy wine-staging 2) Screenshot of the "other software" tab from Softtware&Updates, or other compact way to show what repos you have added. Feb 5, 2019 at 23:01
  • I ended up reinstalling Ubuntu and going through the steps on winehq once more. I’m no longer having the issue, and was able to install wine-staging with no problems. I wish I knew what I did to cause this error, or how to replicate it, but at least it’s fixed.
    – Will
    Feb 6, 2019 at 0:10
  • I've had the same problem, and for me it were some dependencies that were recently added to wine but not to the main repos of Ubuntu. This guide finally worked for me.
    – Redsandro
    Sep 30, 2019 at 12:28

2 Answers 2

2

I just fixed the exact same problem. I had the complete same output as you. I followed Vic's answer. It failed but not because his answer was inadequate but because I had multiple sources for wine in my /etc/apt/sources.list.d/additional-repositories.list. Before you do the nuclear option check to see if your additional sources list might have conflicting wine repos. If you do, remove them all and then do Vic's answer to add the correct repo|key and install what you need.

1

I had similar issue. I forgot to add the wine repository key.

$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -

then add the repository

$ sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ bionic main'

and install your flavor of wine

$ sudo apt install winehq-staging

or $ sudo apt install winehq-stable

Checkout the new version

$ wine --version
wine-4.0
3
  • How does this answer the OP question? He is asking about wine-staging not wine-stable
    – Nomi Shaw
    Mar 17, 2019 at 18:54
  • sorry, you're right. I updated my post
    – Vic
    Mar 17, 2019 at 22:43
  • This doesn't work for ubuntu 18.04
    – Freedo
    Aug 15, 2019 at 6:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .