Broken packages while installig Wine Stable

Questions about Wine on Linux
Post Reply
Vanquishvictor
Newbie
Newbie
Posts: 2
Joined: Tue Jun 11, 2019 12:03 pm

Broken packages while installig Wine Stable

Post by Vanquishvictor » Tue Jun 11, 2019 12:18 pm

Hi,

I am trying to install Wine on Linux 19.04, via this site. I follow all the steps all seems good until 'add the repository', of Ubuntu 19.04, and I get:

The following packages have unmet dependencies.
winehq-stable : Depends: wine-stable (= 4.0.1~disco)
E: Unable to correct problems, you have held broken packages.

I have no idea what it's getting at. I have attached an image of the terminal, for more information.

Any help would be appreciated.

Many thanks,

Victor
Attachments
Screenshot from 2019-06-11 18-14-17.jpg
Error in Terminal

Cybermax
Level 4
Level 4
Posts: 194
Joined: Fri Dec 01, 2017 5:26 pm

Re: Broken packages while installig Wine Stable

Post by Cybermax » Wed Jun 12, 2019 2:11 am

There should be no huge reason to use the WineHQ package of wine-stable for Disco. They are both 4.0.1, and i imagine it COULD be some package conflicts between Ubuntu "wine-stable" and "wineHQ wine-stable" perhaps?

Vanquishvictor
Newbie
Newbie
Posts: 2
Joined: Tue Jun 11, 2019 12:03 pm

Re: Broken packages while installig Wine Stable

Post by Vanquishvictor » Thu Jun 13, 2019 12:27 pm

Thanks for the response. Should I try and uninstalling Wine and start fresh?

jkfloris
Level 6
Level 6
Posts: 704
Joined: Thu Aug 14, 2014 10:10 am

Re: Broken packages while installig Wine Stable

Post by jkfloris » Sat Jun 15, 2019 11:26 am

According to your screenshot(1), you are mixing two different Ubuntu versions (bionic and disco) this is not supported.
Do you have other repo's enabled?

Code: Select all

grep -R '^deb' /etc/apt/sources.list*
(1) Please, copy and paste the text on the forum instead of a screenshot.

pomuxera23
Newbie
Newbie
Posts: 1
Joined: Mon Jul 08, 2019 7:35 am

Re: Broken packages while installig Wine Stable

Post by pomuxera23 » Mon Jul 08, 2019 7:51 am

I had the same issue and it turned out I had some amd64 packages in a different version than i386 was supposed to be installed and apparently they have to match exactly. I tracked them down by trying to install each blocked dependency until the leaf where I was either still blocked or apt wanted to remove half of my system. Flag --simulate was helpful. Also trying different package managers (apt, aptitude) as they can show different output. Then just dpkg -l | grep package and compare the version with apt show package:i386. After finding a culprit pin it to the Ubuntu repo in /etc/apt/preferences.d/wine like this:

Code: Select all

Package: libgd3:amd64
Pin: origin archive.ubuntu.com 
Pin-Priority: 1001

Package: libssl1.1:amd64
Pin: origin archive.ubuntu.com
Pin-Priority: 1001
and apt update; apt upgrade

In my case 2 libraries were installed from ppa:ondrej/php. After pinning them to Ubuntu they "downgraded" to the same versions their i386 alternatives were at and I was able to install Wine.

Post Reply