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
Broken packages while installig Wine Stable
-
- Newbie
- Posts: 2
- Joined: Tue Jun 11, 2019 12:03 pm
Re: Broken packages while installig Wine Stable
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?
-
- Newbie
- Posts: 2
- Joined: Tue Jun 11, 2019 12:03 pm
Re: Broken packages while installig Wine Stable
Thanks for the response. Should I try and uninstalling Wine and start fresh?
Re: Broken packages while installig Wine Stable
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?
(1) Please, copy and paste the text on the forum instead of a screenshot.
Do you have other repo's enabled?
Code: Select all
grep -R '^deb' /etc/apt/sources.list*
-
- Newbie
- Posts: 1
- Joined: Mon Jul 08, 2019 7:35 am
Re: Broken packages while installig Wine Stable
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:
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.
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
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.