Unable to update wine because of broken dependencies - Fedora 41

After updating to Fedora 41, I can’t update wine anymore because of broken dependencies.

Here’s what I get after typing sudo dnf update in the terminal:

Updating and loading repositories:
Repositories loaded.
Problem 1: cannot install the best update candidate for package wine-staging-common-1:9.17-1.1.i686
  - nothing provides libavcodec.so.60 needed by wine-staging-common-1:9.21-1.1.i686 from WineHQ
  - nothing provides libavcodec.so.60(LIBAVCODEC_60) needed by wine-staging-common-1:9.21-1.1.i686 from WineHQ
  - nothing provides libavformat.so.60 needed by wine-staging-common-1:9.21-1.1.i686 from WineHQ
  - nothing provides libavformat.so.60(LIBAVFORMAT_60) needed by wine-staging-common-1:9.21-1.1.i686 from WineHQ
  - nothing provides libavutil.so.58 needed by wine-staging-common-1:9.21-1.1.i686 from WineHQ
  - nothing provides libavutil.so.58(LIBAVUTIL_58) needed by wine-staging-common-1:9.21-1.1.i686 from WineHQ
 Problem 2: cannot install the best update candidate for package wine-staging64-1:9.17-1.1.x86_64
  - nothing provides libavcodec.so.60()(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavcodec.so.60(LIBAVCODEC_60)(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavformat.so.60()(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavformat.so.60(LIBAVFORMAT_60)(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavutil.so.58()(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavutil.so.58(LIBAVUTIL_58)(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
 Problem 3: package winehq-staging-1:9.21-1.1.x86_64 from WineHQ requires wine-staging64 = 1:9.21-1.1, but none of the providers can be installed
  - cannot install the best update candidate for package winehq-staging-1:9.17-1.1.x86_64
  - nothing provides libavcodec.so.60()(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavcodec.so.60(LIBAVCODEC_60)(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavformat.so.60()(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavformat.so.60(LIBAVFORMAT_60)(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavutil.so.58()(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ
  - nothing provides libavutil.so.58(LIBAVUTIL_58)(64bit) needed by wine-staging64-1:9.21-1.1.x86_64 from WineHQ

Package                       Arch     Version                        Repository            Size
Skipping packages with broken dependencies:
 wine-staging-common          i686     1:9.21-1.1                     WineHQ           636.9 MiB
 wine-staging64               x86_64   1:9.21-1.1                     WineHQ           752.9 MiB
 winehq-staging               x86_64   1:9.21-1.1                     WineHQ            62.2 KiB

Let me know If there’s anything else I can provide that is useful, thanks.

Could be the WineHQ repo is causing you problems. I always had problems with WineHQ and Fedora. Try removing your WineHQ wine staging package (along with the WineHQ repository) and just use Fedora’s wine staging package instead. Probably not what you want (Fedora 41 was at wine staging 9.15 last time I tried it) but worth a try to see if that clears up the conflicts.

I’d make sure your WineHQ repo is pointing at Fedora 41; guessing but maybe it was hard-coded to 40/previous before upgrading, and F41 has different dependencies.

1 Like