Update error with DNF5 & selinux-policy-targeted

After trying to update the transaction get stuck on conflicts of files.
Transaction failed: Rpm transaction failed.

  • file /usr/share/man/man5/cert9.db.5.gz from install of nss-3.108.0-1.fc41.i686 conflicts with file from package nss-3.107.0-1.fc41.x86_64
  • file /usr/share/man/man5/key4.db.5.gz from install of nss-3.108.0-1.fc41.i686 conflicts with file from package nss-3.107.0-1.fc41.x86_64
  • file /usr/share/man/man5/pkcs11.txt.5.gz from install of nss-3.108.0-1.fc41.i686 conflicts with file from package nss-3.107.0-1.fc41.x86_64
  • file /usr/share/doc/libtasn1/AUTHORS from install of libtasn1-4.20.0-1.fc41.i686 conflicts with file from package libtasn1-4.19.0-9.fc41.x86_64
  • file /usr/share/doc/libtasn1/NEWS from install of libtasn1-4.20.0-1.fc41.i686 conflicts with file from package libtasn1-4.19.0-9.fc41.x86_64
  • file /usr/share/doc/libtasn1/README.md from install of libtasn1-4.20.0-1.fc41.i686 conflicts with file from package libtasn1-4.19.0-9.fc41.x86_64
  • file /usr/share/licenses/libtasn1/COPYING from install of libtasn1-4.20.0-1.fc41.i686 conflicts with file from package libtasn1-4.19.0-9.fc41.x86_64
  • file /usr/share/doc/gnutls/AUTHORS from install of gnutls-3.8.9-2.fc41.i686 conflicts with file from package gnutls-3.8.8-3.fc41.x86_64
  • file /usr/share/doc/gnutls/NEWS from install of gnutls-3.8.9-2.fc41.i686 conflicts with file from package gnutls-3.8.8-3.fc41.x86_64
  • file /usr/share/doc/gnutls/README.md from install of gnutls-3.8.9-2.fc41.i686 conflicts with file from package gnutls-3.8.8-3.fc41.x86_64
  • file /usr/share/man/man5/k5identity.5.gz from install of krb5-libs-1.21.3-4.fc41.i686 conflicts with file from package krb5-libs-1.21.3-3.fc41.x86_64
  • file /usr/share/man/man5/k5login.5.gz from install of krb5-libs-1.21.3-4.fc41.i686 conflicts with file from package krb5-libs-1.21.3-3.fc41.x86_64
  • file /usr/share/man/man5/krb5.conf.5.gz from install of krb5-libs-1.21.3-4.fc41.i686 conflicts with file from package krb5-libs-1.21.3-3.fc41.x86_64
  • file /usr/share/doc/libxcrypt/README from install of libxcrypt-4.4.38-6.fc41.i686 conflicts with file from package libxcrypt-4.4.38-3.fc41.x86_64
  • file /usr/share/licenses/libxcrypt/LICENSING from install of libxcrypt-4.4.38-6.fc41.i686 conflicts with file from package libxcrypt-4.4.38-3.fc41.x86_64
  • file /usr/share/man/man5/crypt.5.gz from install of libxcrypt-4.4.38-6.fc41.i686 conflicts with file from package libxcrypt-4.4.38-3.fc41.x86_64

When that failed i tried and got this error

sudo dnf distro-sync --refresh --allowerasing --skip-broken
Updating and loading repositories:
Fedora 41 openh264 (From Cisco) - x86_64 100% | 1.1 KiB/s | 989.0 B | 00m01s
google-chrome 100% | 3.3 KiB/s | 1.3 KiB | 00m00s
RPM Fusion for Fedora 41 - Nonfree - Steam 100% | 5.1 KiB/s | 6.2 KiB | 00m01s
RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver 100% | 8.0 KiB/s | 6.5 KiB | 00m01s
Fedora 41 - x86_64 100% | 5.7 KiB/s | 4.3 KiB | 00m01s
Fedora 41 - x86_64 - Updates 100% | 24.9 KiB/s | 25.7 KiB | 00m01s
Fedora 41 - x86_64 - Updates 100% | 154.8 KiB/s | 311.5 KiB | 00m02s
Repositories loaded.
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: dnf5, selinux-policy-targeted

sudo dnf distro-sync \
    --refresh \
    --allowerasing \
    --setopt protected_packages=

See also: Dnf update fails with hanging during the update - #3 by vgaetera

thank you

it took several run thoughs to get all of the errors but it did fix my problem. that other thread really helped with getting it fixed

1 Like