I am unable to run either dnf upgrade or dnf distro-sync

Hi, today I’ve tried to do a dnf upgrade and I have encountered the following error.

User$ sudo dnf upgrade
[sudo] password for User: 
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: systemd-udev

Then, I’ve tried to do a distro-sync, which gave a similar error to one above.

sudo dnf distro-sync
Updating and loading repositories:
Repositories loaded.
Failed to resolve the transaction:
Problem: The operation would result in removing the following protected packages: selinux-policy-targeted, systemd, systemd-udev
You can try to add to command line:
  --skip-broken to skip uninstallable packages

When I tried to use --skip-broken, it gave the same error. I found a Reddit post and a Fedora Discussion post with a similar problem so I tried their solutions, which was checking Systemd packages with the following command.

rpm -q systemd systemd-udev selinux-policy-targeted

The command the following on the terminal.

systemd-258.2-1.fc43.x86_64
systemd-258.3-2.fc43.x86_64
systemd-udev-258.2-1.fc43.x86_64
systemd-udev-258.3-2.fc43.x86_64
selinux-policy-targeted-42.18-1.fc43.noarch
selinux-policy-targeted-42.19-1.fc43.noarch

So if I understood it correctly, there were two packages that were the same, I guess? Then, I followed the solution on the Fedora Discussion post.

sudo dnf reinstall systemd systemd-udev --refresh
sudo dnf distro-sync --refresh --setopt=protected_packages= 

However, when I used the reinstall command it said it was going to remove the kernel.

Updating and loading repositories:
 RPM Fusion for Fedora 43 - Nonfree - Steam                                                                                                                                 100% |   2.7 KiB/s |   8.1 KiB |  00m03s
 RPM Fusion for Fedora 43 - Nonfree - NVIDIA Driver                                                                                                                         100% |   3.1 KiB/s |   8.4 KiB |  00m03s
 Fedora 43 - x86_64                                                                                                                                                         100% |   9.0 KiB/s |  22.4 KiB |  00m02s
 Fedora 43 openh264 (From Cisco) - x86_64                                                                                                                                   100% | 533.0   B/s | 986.0   B |  00m02s
 Fedora 43 - x86_64 - Updates                                                                                                                                               100% |   4.8 KiB/s |   6.6 KiB |  00m01s
 Antigravity RPM Repository                                                                                                                                                 100% |   1.5 KiB/s |   1.4 KiB |  00m01s
 cloudflare-warp-stable                                                                                                                                                     100% |   3.2 KiB/s |   3.0 KiB |  00m01s
 Copr repo for howdy-beta owned by principis                                                                                                                                100% |   1.6 KiB/s |   1.5 KiB |  00m01s
 google-chrome                                                                                                                                                              100% |   2.1 KiB/s |   1.3 KiB |  00m01s
 Copr repo for PyCharm owned by phracek                                                                                                                                     100% |   4.5 KiB/s |   2.1 KiB |  00m00s
Repositories loaded.
Package                                                                 Arch             Version                                                                  Repository                                    Size
Removing:
 kernel-core                                                            x86_64           6.17.7-300.fc43                                                          <unknown>                                 98.8 MiB
 kernel-modules                                                         x86_64           6.17.7-300.fc43                                                          <unknown>                                 95.6 MiB
 kernel-modules-core                                                    x86_64           6.17.7-300.fc43                                                          <unknown>                                 68.3 MiB
 kernel-modules-extra                                                   x86_64           6.17.7-300.fc43                                                          <unknown>                                  4.2 MiB
Removing dependent packages:
 kernel                                                                 x86_64           6.17.7-300.fc43                                                          <unknown>                                  0.0   B
 selinux-policy                                                         noarch           42.18-1.fc43                                                             <unknown>                                 32.0 KiB
 systemd-pam                                                            x86_64           258.2-1.fc43                                                             <unknown>                                  1.2 MiB
Reinstalling:
 selinux-policy-targeted                                                noarch           42.19-1.fc43                                                             updates                                   18.7 MiB
   replacing selinux-policy-targeted                                    noarch           42.19-1.fc43                                                             <unknown>                                 18.7 MiB
   replacing selinux-policy-targeted                                    noarch           42.18-1.fc43                                                             <unknown>                                 18.7 MiB
 systemd                                                                x86_64           258.3-2.fc43                                                             updates                                   12.7 MiB
   replacing systemd                                                    x86_64           258.3-2.fc43                                                             <unknown>                                 12.7 MiB
   replacing systemd                                                    x86_64           258.2-1.fc43                                                             <unknown>                                 12.7 MiB
 systemd-udev                                                           x86_64           258.3-2.fc43                                                             updates                                   12.7 MiB
   replacing systemd-udev                                               x86_64           258.3-2.fc43                                                             <unknown>                                 12.7 MiB
   replacing systemd-udev                                               x86_64           258.2-1.fc43                                                             <unknown>                                 12.6 MiB
Upgrading:
 systemd-container                                                      x86_64           258.3-2.fc43                                                             updates                                    2.2 MiB
   replacing systemd-container                                          x86_64           258.2-1.fc43                                                             <unknown>                                  2.2 MiB
 systemd-networkd                                                       x86_64           258.3-2.fc43                                                             updates                                    2.3 MiB
   replacing systemd-networkd                                           x86_64           258.2-1.fc43                                                             <unknown>                                  2.3 MiB
 systemd-oomd-defaults                                                  noarch           258.3-2.fc43                                                             updates                                  187.0   B
   replacing systemd-oomd-defaults                                      noarch           258.2-1.fc43                                                             <unknown>                                187.0   B
 systemd-resolved                                                       x86_64           258.3-2.fc43                                                             updates                                  733.0 KiB
   replacing systemd-resolved                                           x86_64           258.2-1.fc43                                                             <unknown>                                733.0 KiB

Transaction Summary:
 Reinstalling:       3 packages
 Upgrading:          4 packages
 Replacing:         10 packages
 Removing:           7 packages

Total size of inbound packages is 16 MiB. Need to download 16 MiB.
After this operation, 312 MiB will be freed (install 49 MiB, remove 361 MiB).
Is this ok [y/N]: n

My question is whether this is safe to do or not? Should I proceed? Or is there any other easier solution?

System details:

System:
  Kernel: 6.17.9-300.fc43.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: GNOME v: 49.2 Distro: Fedora Linux 43 (Workstation Edition)
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B350-PLUS v: Rev X.0x
    serial: <superuser required> Firmware: UEFI vendor: American Megatrends
    v: 5602 date: 07/14/2020
CPU:
  Info: quad core model: AMD Ryzen 5 2400G with Radeon Vega Graphics bits: 64
    type: MT MCP arch: Zen rev: 0 cache: L1: 384 KiB L2: 2 MiB L3: 4 MiB
  Speed (MHz): avg: 3600 min/max: 1600/3600 boost: enabled cores: 1: 3600
    2: 3600 3: 3600 4: 3600 5: 3600 6: 3600 7: 3600 8: 3600 bogomips: 57491
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 24 [Radeon RX 6400/6500
    XT/6500M] vendor: Sapphire PULSE driver: amdgpu v: kernel arch: RDNA-2
    bus-ID: 03:00.0
  Device-2: Advanced Micro Devices [AMD/ATI] Raven Ridge [Radeon Vega
    Series / Radeon Mobile Series] vendor: ASUSTeK PRIME driver: amdgpu
    v: kernel arch: GCN-5 bus-ID: 0b:00.0 temp: 55.0 C
  Device-3: Logitech Webcam C110 driver: snd-usb-audio,uvcvideo type: USB
    bus-ID: 3-2:2
  Display: wayland server: X.Org v: 24.1.9 with: Xwayland v: 24.1.9
    compositor: gnome-shell driver: dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~75Hz
  API: OpenGL v: 4.6 vendor: amd mesa v: 25.2.7 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Vega 11 Graphics (radeonsi raven
    ACO DRM 3.64 6.17.9-300.fc43.x86_64)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo x11: xdriinfo, xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Navi 21/23 HDMI/DP Audio
    driver: snd_hda_intel v: kernel bus-ID: 03:00.1
  Device-2: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP
    Audio vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel
    bus-ID: 0b:00.1
  Device-3: Advanced Micro Devices [AMD] Ryzen HD Audio
    vendor: ASUSTeK PRIME B450M-A driver: snd_hda_intel v: kernel
    bus-ID: 0b:00.6
  Device-4: Logitech Webcam C110 driver: snd-usb-audio,uvcvideo type: USB
    bus-ID: 3-2:2
  API: ALSA v: k6.17.9-300.fc43.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.9 status: active
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK RTL8111H driver: r8169 v: kernel port: e000 bus-ID: 06:00.0
  IF: enp6s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: TP-Link Bluetooth USB Adapter driver: btusb v: 0.8 type: USB
    bus-ID: 5-1:2
  Report: btmgmt ID: hci0 rfk-id: 0 state: up address: <filter> bt-v: 5.1
    lmp-v: 10
Drives:
  Local Storage: total: 1.82 TiB used: 513.04 GiB (27.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 980 1TB size: 931.51 GiB
    temp: 41.9 C
  ID-2: /dev/sda vendor: Seagate model: ST1000DM003-1ER162 size: 931.51 GiB
    temp: 33 C
Partition:
  ID-1: / size: 929.93 GiB used: 493.37 GiB (53.1%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 578.1 MiB (59.4%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 929.93 GiB used: 493.37 GiB (53.1%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 8 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 55.0 C mobo: N/A
  Fan Speeds (rpm): N/A
  GPU: device: amdgpu temp: 55.0 C device: amdgpu temp: 57.0 C fan: 0
Info:
  Memory: total: 16 GiB note: est. available: 13.57 GiB used: 5.99 GiB (44.1%)
  Processes: 640 Uptime: 39m Init: systemd
  Packages: 68 note: see --rpm Compilers: N/A Shell: Bash v: 5.3.0
    inxi: 3.3.40

gives here:

systemd-258.3-2.fc43.x86_64
systemd-udev-258.3-2.fc43.x86_64
selinux-policy-targeted-42.19-1.fc43.noarch

so you have two packages versions of each (see their version numbers)

and more important

the elder ones didn’t get deinstalled/cleaned when the newer one were installed

why ?

===

I would try to deinstall the elder packages versions.

maybe “sudo dnf autoremove” might do it.

else “sudo dnf remove ”

followed by:

sudo dnf clean all

sudo dnf update

It seems like I have done a partial update of sorts, I will try to do a reinstall of Fedora I guess

It seems yes.

This is not needed at all.

The reinstall of systemd systemd-udev you tried is the thing to do to suppress those
duplicates.

The fact that one kernel is suppressed is normal: the partial update may have
installed a newer kernel and had not removed the oldest one.

Verify that you have 3 (or 4) kernel installed: dnf list --installed kernel
then retry sudo dnf reinstall systemd systemd-udev --refresh

If it succeeds, then try a distro-sync, without --setopt=protected_packages=

1 Like

Before trying to repair the damage, you may want to investigate why the update wasn’t completed normally. Potential reasons include rebooting before background tasks have finished, running out of mass-storage space, and the out-of-memory killer.

Not to mention: loss of power.

1 Like

It was loss of power mid update, the electricity grid isn’t the most reliable in my country. So no I’m pretty sure it wasn’t something about the system

I have fixed the issue with Systemd by reinstalling by following these steps but now it fails to do a distro-sync and gives me this error below, how can I fix this?

 Running transaction

Transaction failed: Rpm transaction failed.

Warning: skipped OpenPGP checks for 1 package from repository: antigravity-rpm

  - file /usr/share/doc/at-spi2-core/NEWS from install of at-spi2-core-2.58.2-1.fc43.i686 conflicts with file from package at-spi2-core-2.58.1-1.fc43.x86_64

  - file /usr/share/locale/el/LC_MESSAGES/at-spi2-core.mo from install of at-spi2-core-2.58.2-1.fc43.i686 conflicts with file from package at-spi2-core-2.58.1-1.fc43.x86_64

  - file /usr/share/locale/sr/LC_MESSAGES/at-spi2-core.mo from install of at-spi2-core-2.58.2-1.fc43.i686 conflicts with file from package at-spi2-core-2.58.1-1.fc43.x86_64

  - file /usr/share/locale/sr@latin/LC_MESSAGES/at-spi2-core.mo from install of at-spi2-core-2.58.2-1.fc43.i686 conflicts with file from package at-spi2-core-2.58.1-1.fc43.x86_64

  - file /usr/share/licenses/librsvg2/LICENSE.dependencies from install of librsvg2-2.61.0-3.fc43.i686 conflicts with file from package librsvg2-2.61.0-2.fc43.x86_64

  - file /usr/share/alsa/cards/AACI.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ATIIXP-MODEM.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ATIIXP-SPDMA.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ATIIXP.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/AU8810.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/AU8820.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/AU8830.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Audigy.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Audigy2.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Aureon51.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Aureon71.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CA0106.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CMI8338-SWIEC.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CMI8338.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CMI8738-MC6.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CMI8738-MC8.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CMI8788.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/CS46xx.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/EMU10K1.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/EMU10K1X.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ENS1370.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ENS1371.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ES1968.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Echo_Echo3G.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/FM801.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/FWSpeakers.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/FireWave.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/GUS.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/HDA-Intel.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/HdmiLpeAudio.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ICE1712.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ICE1724.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ICH-MODEM.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ICH.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/ICH4.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Loopback.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/Maestro3.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/NFORCE.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/PC-Speaker.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/PMac.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/PMacToonie.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/PS3.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/RME9636.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/RME9652.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/SB-XFi.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/SI7018.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/TRID4DWAVENX.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/USB-Audio.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VIA686A.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VIA8233.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VIA8233A.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VIA8237.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VX222.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VXPocket.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/VXPocket440.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/YMF744.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/pistachio-card.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/alsa/cards/vc4-hdmi.conf from install of alsa-lib-1.2.15.1-1.fc43.i686 conflicts with file from package alsa-lib-1.2.14-4.fc43.x86_64

  - file /usr/share/doc/vulkan-loader/CONTRIBUTING.md from install of vulkan-loader-1.4.328.1-1.fc43.i686 conflicts with file from package vulkan-loader-1.4.321.0-3.fc43.x86_64 

1 First, keep the list of installed package without their version and release with (for example):

  • rpm -qa --qf '%{name}.%{arch}\n' > /var/tmp/rpms-01

This will permit to reinstall surely the ones that we will remove.

2 Then remove the i686 RPMs:

  • sudo dnf remove *.i686

3 Then reinstall the remaining duplicate packages:

sudo dnf reinstall --refresh --allowerasing --skip-unavailable \
    --setopt=protected_packages= \
    $(dnf repoquery --duplicates --latest-limit=1 --qf="%{name}.%{arch}\n")

4 Retry a distro-sync:

sudo dnf distro-sync

5 Install all the initial rpms:

dnf install $(< /var/tmp/rpms-01)

Note: I followed partially what was done in Stuck mid-upgrade to Fedora 43