Broken update: libFLAC.so.12 required but cannot be installed

Hi, I just upgraded my Fedora 43 OS, first I got this warning at the end:

>>> Scriptlet output:
>>> /usr/lib/sysusers.d/colord.conf:2: Conflict with earlier configuration for user 'colord' in /usr/lib/sysusers.d/colord-sysusers.conf:1, ignoring line.
>>> /usr/lib/sysusers.d/setup.conf:2: Conflict with earlier configuration for user 'bin' in /usr/lib/sysusers.d/20-setup-users.conf:2, ignoring line.
>>> /usr/lib/sysusers.d/setup.conf:3: Conflict with earlier configuration for user 'daemon' in /usr/lib/sysusers.d/20-setup-users.conf:3, ignoring line.
>>>
>>> Running %triggerin scriptlet: systemd-0:258.4-1.fc43.x86_64
>>> Finished %triggerin scriptlet: systemd-0:258.4-1.fc43.x86_64
>>> Scriptlet output:
>>> /usr/lib/sysusers.d/colord.conf:2: Conflict with earlier configuration for user 'colord' in /usr/lib/sysusers.d/colord-sysusers.conf:1, ignoring line.
>>> /usr/lib/sysusers.d/setup.conf:2: Conflict with earlier configuration for user 'bin' in /usr/lib/sysusers.d/20-setup-users.conf:2, ignoring line.
>>> /usr/lib/sysusers.d/setup.conf:3: Conflict with earlier configuration for user 'daemon' in /usr/lib/sysusers.d/20-setup-users.conf:3, ignoring line.
>>>
Complete!

Okay so I did another dnf upgrade

But now I keep getting this and I seem to have a broken installation:

╰─❯ sudo dnf upgrade
Updating and loading repositories:
 keybase                                                                                                                                                                                                          100% |   7.2 KiB/s |   3.5 KiB |  00m00s
 Sublime Text - x86_64 - Stable                                                                                                                                                                                   100% |   9.5 KiB/s |   4.6 KiB |  00m00s
>>> repomd.xml GPG signature verification error: Error during parsing OpenPGP packets: Parsing an OpenPGP packet:
Repositories loaded.
Problem 1: package gstreamer1-plugins-good-1.26.11-1.fc42.i686 from updates requires libFLAC.so.12, but none of the providers can be installed
  - cannot install both flac-libs-1.4.3-6.fc42.i686 from fedora and flac-libs-1.5.0-5.fc43.i686 from @System
  - cannot install the best update candidate for package gstreamer1-plugins-good-1.26.10-1.fc43.i686
  - cannot install the best update candidate for package flac-libs-1.5.0-5.fc43.i686
 Problem 2: package gstreamer1-plugins-good-1.26.11-1.fc42.i686 from updates requires libFLAC.so.12, but none of the providers can be installed
  - problem with installed package
  - cannot install both flac-libs-1.4.3-6.fc42.i686 from fedora and flac-libs-1.5.0-5.fc43.i686 from @System
  - gstreamer1-plugins-good-1.26.10-1.fc43.i686 from @System has inferior architecture
  - gstreamer1-plugins-good-1.26.0-1.fc42.i686 from fedora has inferior architecture
  - installed package libsndfile-1.2.2-10.fc43.i686 requires libFLAC.so.14, but none of the providers can be installed
  - cannot install both gstreamer1-plugins-good-1.26.11-1.fc42.x86_64 from updates and gstreamer1-plugins-good-1.26.10-1.fc43.x86_64 from @System
  - cannot install both gstreamer1-plugins-good-1.26.11-1.fc42.x86_64 from updates and gstreamer1-plugins-good-1.26.0-1.fc42.x86_64 from fedora
  - cannot install the best update candidate for package libsndfile-1.2.2-10.fc43.i686
  - cannot install the best update candidate for package gstreamer1-plugins-good-1.26.10-2.fc42.x86_64

Package                                                                               Arch               Version                                                                                Repository                                            Size
Skipping packages with conflicts:
 flac-libs                                                                            i686               1.4.3-6.fc42                                                                           fedora                                           744.7 KiB
 gstreamer1-plugins-good                                                              x86_64             1.26.0-1.fc42                                                                          fedora                                             7.3 MiB
 gstreamer1-plugins-good                                                              x86_64             1.26.11-1.fc42                                                                         updates                                            7.4 MiB
Skipping packages with broken dependencies:
 gstreamer1-plugins-good                                                              i686               1.26.11-1.fc42                                                                         updates                                            8.0 MiB

Nothing to do.

How can I remedy this?

You’re getting some updates from f43 and some from f42.

Have you had a failed update to f43?

Nope. I also have never had any issue and 44 is already available. So not sure how that happened. How can I check/fix this?

I’d first run sudo dnf repolist --all to check what repos you have enabled and what version dnf thinks they are.

Then I’d run a sudo dnf check which I would hope produces no output. If it does then you have issues to fix in addition to this weirdness. This is may take a while depending on how many packages to have installed and how fast your machine and disks are.

Once you’ve ascertained what the root cause is, you can then begin the corrective actions.

The file /usr/lib/sysusers.d/20-setup-users.conf probably should not exist since it appears the content is in /usr/lib/sysusers.d/setup.conf

This line seems to indicate the file /usr/lib/sysusers.d/colord.conf exists and contains 2 lines, I only have the file /usr/lib/sysusers.d/colord-sysusers.conf and it only contains one line
I expect you can remove the colord.conf file to eliminate that issue.

Neither /usr/lib/sysusers.d/colord.conf nor /usr/lib/sysusers.d/20-setup-users.conf appear to be provided by any rpm contained in fedora 44 or 43.

To recover from a potential failed upgrade from f42 to f43 (as mentioned by @anothermindbomb above) there is one command that possibly will ensure the upgrade is complete and clean.
sudo dnf distro-sync --releasever=43 --allowerasing --best --skip-broken --setopt protected_packages=
That command should be able to ensure that everything currently installed matches the latest versions available with f43, and should eliminate the issue of trying to install both f43 and f42 packages at the same time. It has the added benefit of also eliminating duplicates if there are any.

Okay that was it. I had a BUNCH of 42 packages installed. The distro-sync helped me resolve everything. Thanks guys!