Wine 5.0: Need to fix broken packages

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
nova8500
Level 1
Level 1
Posts: 2
Joined: Sun May 17, 2020 6:10 am

Wine 5.0: Need to fix broken packages

Post by nova8500 »

Hi
I tried to install Wine-stable 5.0.0 and it fails because i have held broken packages.
I try to fix it in Synaptic Package Manager but i get an error message:

Code: Select all

E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
The only thing in my sources.list is this:
deb https://dl.winehq.org/wine-builds/debian/ buster main

How do i fix this problem?

User avatar
karlchen
Level 21
Level 21
Posts: 12792
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Wine 5.0: Need to fix broken packages

Post by karlchen »

Hello, nova8500.

Welcome to the Linux Mint forum. :)
Before we can give any helpful advice, we would need to know: which Linux Mint edition and version precisely are you using? LMDE 4 or Linux Mint 19.3?
Please, open a terminal window. Execute the the command line inxi -Sxxxr precisely as it has been typed here.
Mark the complete output, which inxi will display in the terminal window.
Paste it into your next reply.
Thanks.

Karl
Image
Linux Mint 19.3 64-bit Cinnamon, Total Commander 9.51 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

nova8500
Level 1
Level 1
Posts: 2
Joined: Sun May 17, 2020 6:10 am

Re: Wine 5.0: Need to fix broken packages

Post by nova8500 »

I'm using LMDE4

Code: Select all

System:
  Host: pc Kernel: 4.19.0-9-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
  Desktop: Cinnamon 4.4.8 wm: muffin 4.4.3 dm: LightDM 1.26.0 
  Distro: LMDE 4 Debbie base: Debian 10.2 buster 
Repos:
  Active apt repos in: /etc/apt/sources.list 
  1: deb https://dl.winehq.org/wine-builds/debian/ buster main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com debbie main upstream import backport
  2: deb https://deb.debian.org/debian/ buster main contrib non-free
  3: deb https://deb.debian.org/debian/ buster-updates main contrib non-free
  4: deb http://security.debian.org/ buster/updates main contrib non-free
  5: deb https://deb.debian.org/debian/ buster-backports main contrib non-free

User avatar
karlchen
Level 21
Level 21
Posts: 12792
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Wine 5.0: Need to fix broken packages

Post by karlchen »

Hello, nova8500.

Thank you very much for clarifying.
Will move the thread to the "LMDE" sub-forum. The main editions are Mint 18.x and Mint 19.x, based on Ubuntu. LMDE 4 is based on Debian directly.

Karl
Image
Linux Mint 19.3 64-bit Cinnamon, Total Commander 9.51 64-bit
Haß gleicht einer Krankheit, dem Miserere, wo man vorne herausgibt, was eigentlich hinten wegsollte. (Goethe)

Monsta
Level 10
Level 10
Posts: 3055
Joined: Fri Aug 19, 2011 3:46 am

Re: Wine 5.0: Need to fix broken packages

Post by Monsta »

It would be more helpful to see the full error message (with the "broken" package names), but in case it's about libfaudio0, there's a workaround posted at https://wiki.winehq.org/Debian.

pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Wine 5.0: Need to fix broken packages

Post by pbear »

The FAudio debacle never should have happened. Was willful disregard by the Wine developers of the chaos inevitable to ensue from requiring a dependency they knew wasn't included in Ubuntu (and its derivatives), the distribution newbies are most likely to be using. Then, they add insult to injury by giving a workaround without instructions. Just a link to an archive, and a bunch of snark.

nova8500, have you checked whether the Windows app you want to install even works in Wine. Most don't. Are you sure you need Wine 5.0? The overwhelming majority of Windows apps which do run well in Wine do fine with 4.0. That's available in repo. Use Timeshift to restore a snapshot from before your failed installation attempt, then run apt install wine. Afterwards, run winecfg.

Then, if you want the Wine Program Loader on the right-click menu, run sudo ln -s /usr/share/doc/wine/examples/wine.desktop /usr/share/applications/. Or you can get pretty much the same thing by typing “wine” into the Open With Other Application dialogue box.

pbear
Level 14
Level 14
Posts: 5206
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Wine 5.0: Need to fix broken packages

Post by pbear »

As it's virtually certain FAudio won't be backported to Buster, I worked out how to make sense of the instructions for adding it with Wine, if want to install the latest version. Again, this generally isn't necessary. The repo version (4.0) works fine for the great majority of Windows apps.

Conversely, installing per the WineHQ instructions isn't newbie-friendly. Don't blame me if this seems complicated. I said to use the repo. :) Confirming, yes, I have actually executed these instructions in LMDE 4 (twice), installed an old Windows game I keep around for testing purposes, and it runs fine. One consolation, Wine Windows Program Loader is already on the right-click menu in 5.0.

First, download two release keys, one for Wine, the other for FAudio. Add to dpkg, then delete the downloads. The new repos could be added to the official sources file, but I think it's better practice to give them one of their own.

Code: Select all

wget -nc https://dl.winehq.org/wine-builds/winehq.key
wget -nc https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key
sudo apt-key add winehq.key Release.key
rm winehq.key Release.key
sudo nano /etc/apt/sources.list.d/wine.list
This creates a new sources file and presents it for edit. Paste in:

Code: Select all

deb https://dl.winehq.org/wine-builds/debian/ buster main
deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10 ./
Hit Ctrl-O to write-out, Enter to confirm overwrite of file name, then Ctrl-X to exit.

At last, we're ready to install. FYI, it's a 198 MB download and uses almost 1.5 GB disk space.

Code: Select all

apt update
apt install winehq-stable
winecfg
For the development or staging branches (why?), replace winehq-stable with winehq-devel or winehq-staging, respectively.

Notes: Don't need --install-recommends, as already default in LMDE (a change from how Mint has been configured until now). Per gm10, don't need to add i386 architecture, as already have (to confirm, run sudo dpkg --print-foreign-architectures). Can remove release keys once added to dpkg (also gm10); by doing so now, don't have to remember later whether they need to be retained. :wink:

Post Reply

Return to “Software & Applications”