F38 upgrade error: System Is full of duplicate packages after update

Hello I upgraded to f38 through the software center.
Now I have versions of both f37 and f38 installed. I found this ticket that is almost exactly the same
Help! System stuck with two versions of packages after late failed upgrade - #4 by lolrofl but it is a bit too unfamiliar with me and I would rather not break more things. Here are some command outputs that are useful.

sudo dnf repoquery --unsatisfied

 Problem: problem with installed package st-stlink-server-1.2.0-1.amd64
  - package st-stlink-server-1.2.0-1.amd64 does not have a compatible architecture


sudo dnf upgrade --refresh
 Problem 1: package annobin-plugin-gcc-12.02-1.fc37.x86_64 requires (gcc >= 12 with gcc < 13), but none of the providers can be installed
  - cannot install both gcc-12.2.1-2.fc37.x86_64 and gcc-13.0.1-0.12.fc38.x86_64
  - cannot install both gcc-12.2.1-4.fc37.x86_64 and gcc-13.0.1-0.12.fc38.x86_64
  - cannot install the best update candidate for package annobin-plugin-gcc-12.01-1.fc38.x86_64
  - problem with installed package gcc-13.0.1-0.12.fc38.x86_64
 Problem 2: package keepassxc-2.7.4-7.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - installed package minizip-ng-3.0.7-3.fc38.x86_64 obsoletes minizip < 3.0.3 provided by minizip-3.0.2-7.fc37.x86_64
  - cannot install the best update candidate for package keepassxc-2.7.4-6.fc38.x86_64
  - problem with installed package minizip-ng-3.0.7-3.fc38.x86_64
 Problem 3: cannot install both qt5-qtbase-5.15.9-1.fc37.x86_64 and qt5-qtbase-5.15.8-10.fc38.x86_64
  - package qt5-qtwebengine-freeworld-5.15.12-1.fc38.x86_64 requires qt5-qtbase(x86-64) = 5.15.8, but none of the providers can be installed
  - cannot install the best update candidate for package qt5-qtbase-5.15.8-10.fc38.x86_64
  - problem with installed package qt5-qtwebengine-freeworld-5.15.12-1.fc38.x86_64
 Problem 4: cannot install both qt5-qtbase-5.15.9-1.fc37.x86_64 and qt5-qtbase-5.15.8-10.fc38.x86_64
  - package qt5-qtwebengine-freeworld-5.15.12-1.fc38.x86_64 requires qt5-qtbase(x86-64) = 5.15.8, but none of the providers can be installed
  - package python3-qt5-base-5.15.9-2.fc37.x86_64 requires qt5-qtbase(x86-64) = 5.15.9, but none of the providers can be installed
  - cannot install the best update candidate for package qt5-qtwebengine-freeworld-5.15.12-1.fc38.x86_64
  - cannot install the best update candidate for package python3-qt5-base-5.15.9-1.fc38.x86_64
 Problem 5: package redhat-rpm-config-252-1.fc38.noarch requires (annobin-plugin-gcc if gcc), but none of the providers can be installed
  - package annobin-plugin-gcc-12.02-1.fc37.x86_64 requires (gcc >= 12 with gcc < 13), but none of the providers can be installed
  - package annobin-plugin-gcc-12.01-1.fc38.x86_64 requires annobin-docs = 12.01-1.fc38, but none of the providers can be installed
  - package annobin-plugin-gcc-10.81-1.fc37.x86_64 requires annobin-docs = 10.81-1.fc37, but none of the providers can be installed
  - cannot install both gcc-12.2.1-2.fc37.x86_64 and gcc-13.0.1-0.12.fc38.x86_64
  - cannot install both gcc-12.2.1-4.fc37.x86_64 and gcc-13.0.1-0.12.fc38.x86_64
  - cannot install both annobin-docs-12.02-1.fc37.noarch and annobin-docs-12.01-1.fc38.noarch
  - cannot install both annobin-docs-12.02-1.fc37.noarch and annobin-docs-10.81-1.fc37.noarch
  - cannot install the best update candidate for package gcc-13.0.1-0.12.fc38.x86_64
  - cannot install the best update candidate for package annobin-docs-12.01-1.fc38.noarch
  - problem with installed package redhat-rpm-config-252-1.fc38.noarch
=============================================================================================================================================================
 Package                                     Architecture                    Version                                  Repository                        Size
=============================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 annobin-docs                                noarch                          10.81-1.fc37                             fedora                            91 k
 annobin-docs                                noarch                          12.02-1.fc37                             updates                           93 k
 gcc                                         x86_64                          12.2.1-2.fc37                            fedora                            33 M
 gcc                                         x86_64                          12.2.1-4.fc37                            updates                           33 M
 qt5-qtbase                                  x86_64                          5.15.9-1.fc37                            updates                          3.5 M
Skipping packages with broken dependencies:
 annobin-plugin-gcc                          x86_64                          10.81-1.fc37                             fedora                           882 k
 annobin-plugin-gcc                          x86_64                          12.02-1.fc37                             updates                          896 k
 keepassxc                                   x86_64                          2.7.4-7.fc37                             updates                          7.5 M
 python3-qt5-base                            x86_64                          5.15.9-2.fc37                            updates                          3.3 M

Transaction Summary
=============================================================================================================================================================
Skip  9 Packages

Nothing to do.
Complete!

sudo dnf repoquery --duplicates | wc -l
Last metadata expiration check: 0:02:43 ago on Wed 19 Apr 2023 16:21:40 CEST.
2005

sudo dnf distro-sync
Last metadata expiration check: 0:04:47 ago on Wed 19 Apr 2023 16:21:40 CEST.
Error: 
 Problem 1: package clamav-freshclam-1.0.1-4.fc38.x86_64 requires clamav-filesystem = 1.0.1-4.fc38, but none of the providers can be installed
  - clamav-filesystem-1.0.1-4.fc38.noarch does not belong to a distupgrade repository
  - problem with installed package clamav-freshclam-1.0.1-4.fc38.x86_64
 Problem 2: package dleyna-0.8.2-2.fc38.x86_64 requires libgupnp-1.6.so.0()(64bit), but none of the providers can be installed
  - gupnp-1.6.3-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package dleyna-0.8.2-2.fc38.x86_64
 Problem 3: package libcupsfilters-1:2.0~b4-1.fc38.x86_64 requires ghostscript >= 10.0.0, but none of the providers can be installed
  - ghostscript-10.01.0-3.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libcupsfilters-1:2.0~b4-1.fc38.x86_64
 Problem 4: package qemu-block-blkio-2:7.2.0-6.fc38.x86_64 requires qemu-common(x86-64) = 2:7.2.0-6.fc38, but none of the providers can be installed
  - qemu-common-2:7.2.0-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-block-blkio-2:7.2.0-6.fc38.x86_64
 Problem 5: package qemu-system-loongarch64-2:7.2.0-6.fc38.x86_64 requires qemu-audio-alsa = 2:7.2.0-6.fc38, but none of the providers can be installed
  - qemu-audio-alsa-2:7.2.0-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-system-loongarch64-2:7.2.0-6.fc38.x86_64
 Problem 6: package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1()(64bit), but none of the providers can be installed
  - package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1(LIBBPF_0.0.1)(64bit), but none of the providers can be installed
  - package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1(LIBBPF_0.0.7)(64bit), but none of the providers can be installed
  - libbpf-2:1.1.0-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64
 Problem 7: svt-av1-libs-1.4.1-2.fc38.i686 has inferior architecture
  - svt-av1-libs-1.4.1-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package svt-av1-libs-1.4.1-2.fc38.i686
 Problem 8: package ghostscript-10.01.0-3.fc38.x86_64 requires ghostscript-tools-fonts(x86-64) = 10.01.0-3.fc38, but none of the providers can be installed
  - package libppd-1:2.0~b4-2.fc38.x86_64 requires ghostscript >= 10.0.0, but none of the providers can be installed
  - ghostscript-tools-fonts-10.01.0-3.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libppd-1:2.0~b4-2.fc38.x86_64
 Problem 9: problem with installed package libunistring-1.1-3.fc38.i686
  - package libunistring1.0-1.0-1.fc38.x86_64 conflicts with libunistring < 1.1 provided by libunistring-1.0-2.fc37.i686
  - libunistring-1.1-3.fc38.i686 does not belong to a distupgrade repository
  - problem with installed package libunistring1.0-1.0-1.fc38.x86_64
 Problem 10: problem with installed package libvpx-1.13.0-2.fc38.x86_64
  - package libvpx7-1.12.0-1.fc38.x86_64 conflicts with libvpx < 1.13.0 provided by libvpx-1.12.0-1.fc37.x86_64
  - libvpx-1.13.0-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libvpx7-1.12.0-1.fc38.x86_64
 Problem 11: problem with installed package keepassxc-2.7.4-6.fc38.x86_64
  - package keepassxc-2.7.1-12.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - package keepassxc-2.7.4-7.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - installed package minizip-ng-3.0.7-3.fc38.x86_64 obsoletes minizip < 3.0.3 provided by minizip-3.0.2-7.fc37.x86_64
  - keepassxc-2.7.4-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package minizip-ng-3.0.7-3.fc38.x86_64

sudo dnf distro-sync --allowerasing --skip-broken
Last metadata expiration check: 0:05:07 ago on Wed 19 Apr 2023 16:21:40 CEST.
Error: 
 Problem: The operation would result in removing the following protected packages: grub2-tools-minimal, systemd, systemd-udev

Please deactivate the repos where not are originaly with fedora to do the distro sinc. After you can switch them on again. …

1 Like

Did not work
repolist before

repo id                                                              repo name
Atom                                                                 Atom Editor
WineHQ                                                               WineHQ packages
copr:copr.fedorainfracloud.org:dawid:better_fonts                    Copr repo for better_fonts owned by dawid
copr:copr.fedorainfracloud.org:nielsenb:android-udev-rules           Copr repo for android-udev-rules owned by nielsenb
fedora                                                               Fedora 37 - x86_64
fedora-cisco-openh264                                                Fedora 37 openh264 (From Cisco) - x86_64
fedora-modular                                                       Fedora Modular 37 - x86_64
google-chrome                                                        google-chrome
rpmfusion-free                                                       RPM Fusion for Fedora 37 - Free
rpmfusion-free-updates                                               RPM Fusion for Fedora 37 - Free - Updates
rpmfusion-nonfree                                                    RPM Fusion for Fedora 37 - Nonfree
rpmfusion-nonfree-updates                                            RPM Fusion for Fedora 37 - Nonfree - Updates
rpmsphere                                                            RPM Sphere - Basearch
rpmsphere-noarch                                                     RPM Sphere - Noarch
updates                                                              Fedora 37 - x86_64 - Updates
updates-modular                                                      Fedora Modular 37 - x86_64 - Updates

Repolist after

fedora                                                                                                                   Fedora 37 - x86_64
fedora-cisco-openh264                                                                                                    Fedora 37 openh264 (From Cisco) - x86_64
fedora-modular                                                                                                           Fedora Modular 37 - x86_64
rpmfusion-free                                                                                                           RPM Fusion for Fedora 37 - Free
rpmfusion-free-updates                                                                                                   RPM Fusion for Fedora 37 - Free - Updates
rpmfusion-nonfree                                                                                                        RPM Fusion for Fedora 37 - Nonfree
rpmfusion-nonfree-updates                                                                                                RPM Fusion for Fedora 37 - Nonfree - Updates
rpmsphere                                                                                                                RPM Sphere - Basearch
rpmsphere-noarch                                                                                                         RPM Sphere - Noarch
updates                                                                                                                  Fedora 37 - x86_64 - Updates
updates-modular                                                                                                          Fedora Modular 37 - x86_64 - Updates

how i removed them and the distrosync error

(base) [root@bluedevil emrecemelevis]# dnf config-manager --set-disabled Atom
(base) [root@bluedevil emrecemelevis]# dnf config-manager --set-disabled WineHQ
(base) [root@bluedevil emrecemelevis]# dnf config-manager --set-disabled 
(base) [root@bluedevil emrecemelevis]# dnf config-manager --set-disabled copr:copr.fedorainfracloud.org:dawid:better_fonts 
(base) [root@bluedevil emrecemelevis]# dnf config-manager --set-disabled copr:copr.fedorainfracloud.org:nielsenb:android-udev-rules 
(base) [root@bluedevil emrecemelevis]# dnf config-manager --set-disabled google-chrome
(base) [root@bluedevil emrecemelevis]# dnf distro-sync 
Last metadata expiration check: 0:19:35 ago on Wed 19 Apr 2023 16:21:40 CEST.
Error: 
 Problem 1: package clamav-freshclam-1.0.1-4.fc38.x86_64 requires clamav-filesystem = 1.0.1-4.fc38, but none of the providers can be installed
  - clamav-filesystem-1.0.1-4.fc38.noarch does not belong to a distupgrade repository
  - problem with installed package clamav-freshclam-1.0.1-4.fc38.x86_64
 Problem 2: package dleyna-0.8.2-2.fc38.x86_64 requires libgupnp-1.6.so.0()(64bit), but none of the providers can be installed
  - gupnp-1.6.3-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package dleyna-0.8.2-2.fc38.x86_64
 Problem 3: package libcupsfilters-1:2.0~b4-1.fc38.x86_64 requires ghostscript >= 10.0.0, but none of the providers can be installed
  - ghostscript-10.01.0-3.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libcupsfilters-1:2.0~b4-1.fc38.x86_64
 Problem 4: package qemu-block-blkio-2:7.2.0-6.fc38.x86_64 requires qemu-common(x86-64) = 2:7.2.0-6.fc38, but none of the providers can be installed
  - qemu-common-2:7.2.0-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-block-blkio-2:7.2.0-6.fc38.x86_64
 Problem 5: package qemu-system-loongarch64-2:7.2.0-6.fc38.x86_64 requires qemu-audio-alsa = 2:7.2.0-6.fc38, but none of the providers can be installed
  - qemu-audio-alsa-2:7.2.0-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-system-loongarch64-2:7.2.0-6.fc38.x86_64
 Problem 6: package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1()(64bit), but none of the providers can be installed
  - package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1(LIBBPF_0.0.1)(64bit), but none of the providers can be installed
  - package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1(LIBBPF_0.0.7)(64bit), but none of the providers can be installed
  - libbpf-2:1.1.0-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64
 Problem 7: svt-av1-libs-1.4.1-2.fc38.i686 has inferior architecture
  - svt-av1-libs-1.4.1-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package svt-av1-libs-1.4.1-2.fc38.i686
 Problem 8: package ghostscript-10.01.0-3.fc38.x86_64 requires ghostscript-tools-fonts(x86-64) = 10.01.0-3.fc38, but none of the providers can be installed
  - package libppd-1:2.0~b4-2.fc38.x86_64 requires ghostscript >= 10.0.0, but none of the providers can be installed
  - ghostscript-tools-fonts-10.01.0-3.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libppd-1:2.0~b4-2.fc38.x86_64
 Problem 9: problem with installed package libunistring-1.1-3.fc38.i686
  - package libunistring1.0-1.0-1.fc38.x86_64 conflicts with libunistring < 1.1 provided by libunistring-1.0-2.fc37.i686
  - libunistring-1.1-3.fc38.i686 does not belong to a distupgrade repository
  - problem with installed package libunistring1.0-1.0-1.fc38.x86_64
 Problem 10: problem with installed package libvpx-1.13.0-2.fc38.x86_64
  - package libvpx7-1.12.0-1.fc38.x86_64 conflicts with libvpx < 1.13.0 provided by libvpx-1.12.0-1.fc37.x86_64
  - libvpx-1.13.0-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libvpx7-1.12.0-1.fc38.x86_64
 Problem 11: problem with installed package keepassxc-2.7.4-6.fc38.x86_64
  - package keepassxc-2.7.1-12.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - package keepassxc-2.7.4-7.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - installed package minizip-ng-3.0.7-3.fc38.x86_64 obsoletes minizip < 3.0.3 provided by minizip-3.0.2-7.fc37.x86_64
  - keepassxc-2.7.4-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package minizip-ng-3.0.7-3.fc38.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

You also may need to remove individually those packages that came from the 3rd party repos so the conflicts can be removed.
It seems that several are requiring the fc37 packages and causing the conflicts.

If desired it may be possible for them to be reinstalled later, but the distro-sync needs to complete properly to ensure everything matches.

1 Like
sudo dnf config-manager --disable rpmsphere\*
sudo dnf distro-sync --refresh --releasever 38

Is there a way to list those installed from old repos?
AFAIK I only installed chrome,atom,udev rules,and fonts.
Do you think they would cause this problem?
Also uname -a shows

Linux bluedevil 6.2.10-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr  6 23:30:41 UTC 2023 x86_64 GNU/Linux

I am still getting the same error

sudo dnf distro-sync --refresh
Fedora 37 - x86_64                                                                                                                                                                                                                    29 kB/s |  18 kB     00:00    
Fedora 37 openh264 (From Cisco) - x86_64                                                                                                                                                                                             1.9 kB/s | 989  B     00:00    
Fedora Modular 37 - x86_64                                                                                                                                                                                                            31 kB/s |  18 kB     00:00    
Fedora 37 - x86_64 - Updates                                                                                                                                                                                                          16 kB/s | 7.8 kB     00:00    
Fedora Modular 37 - x86_64 - Updates                                                                                                                                                                                                  28 kB/s |  16 kB     00:00    
RPM Fusion for Fedora 37 - Free                                                                                                                                                                                                       25 kB/s | 7.0 kB     00:00    
RPM Fusion for Fedora 37 - Free - Updates                                                                                                                                                                                             22 kB/s | 6.0 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree                                                                                                                                                                                                    26 kB/s | 7.1 kB     00:00    
RPM Fusion for Fedora 37 - Nonfree - Updates                                                                                                                                                                                          23 kB/s | 6.1 kB     00:00    
Error: 
 Problem 1: package clamav-freshclam-1.0.1-4.fc38.x86_64 requires clamav-filesystem = 1.0.1-4.fc38, but none of the providers can be installed
  - clamav-filesystem-1.0.1-4.fc38.noarch does not belong to a distupgrade repository
  - problem with installed package clamav-freshclam-1.0.1-4.fc38.x86_64
 Problem 2: package dleyna-0.8.2-2.fc38.x86_64 requires libgupnp-1.6.so.0()(64bit), but none of the providers can be installed
  - gupnp-1.6.3-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package dleyna-0.8.2-2.fc38.x86_64
 Problem 3: package libcupsfilters-1:2.0~b4-1.fc38.x86_64 requires ghostscript >= 10.0.0, but none of the providers can be installed
  - ghostscript-10.01.0-3.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libcupsfilters-1:2.0~b4-1.fc38.x86_64
 Problem 4: package qemu-block-blkio-2:7.2.0-6.fc38.x86_64 requires qemu-common(x86-64) = 2:7.2.0-6.fc38, but none of the providers can be installed
  - qemu-common-2:7.2.0-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-block-blkio-2:7.2.0-6.fc38.x86_64
 Problem 5: package qemu-system-loongarch64-2:7.2.0-6.fc38.x86_64 requires qemu-audio-alsa = 2:7.2.0-6.fc38, but none of the providers can be installed
  - qemu-audio-alsa-2:7.2.0-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-system-loongarch64-2:7.2.0-6.fc38.x86_64
 Problem 6: package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1()(64bit), but none of the providers can be installed
  - package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1(LIBBPF_0.0.1)(64bit), but none of the providers can be installed
  - package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64 requires libbpf.so.1(LIBBPF_0.0.7)(64bit), but none of the providers can be installed
  - libbpf-2:1.1.0-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64
 Problem 7: svt-av1-libs-1.4.1-2.fc38.i686 has inferior architecture
  - svt-av1-libs-1.4.1-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package svt-av1-libs-1.4.1-2.fc38.i686
 Problem 8: package ghostscript-10.01.0-3.fc38.x86_64 requires ghostscript-tools-fonts(x86-64) = 10.01.0-3.fc38, but none of the providers can be installed
  - package libppd-1:2.0~b4-2.fc38.x86_64 requires ghostscript >= 10.0.0, but none of the providers can be installed
  - ghostscript-tools-fonts-10.01.0-3.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libppd-1:2.0~b4-2.fc38.x86_64
 Problem 9: problem with installed package libunistring-1.1-3.fc38.i686
  - package libunistring1.0-1.0-1.fc38.x86_64 conflicts with libunistring < 1.1 provided by libunistring-1.0-2.fc37.i686
  - libunistring-1.1-3.fc38.i686 does not belong to a distupgrade repository
  - problem with installed package libunistring1.0-1.0-1.fc38.x86_64
 Problem 10: problem with installed package libvpx-1.13.0-2.fc38.x86_64
  - package libvpx7-1.12.0-1.fc38.x86_64 conflicts with libvpx < 1.13.0 provided by libvpx-1.12.0-1.fc37.x86_64
  - libvpx-1.13.0-2.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package libvpx7-1.12.0-1.fc38.x86_64
 Problem 11: problem with installed package keepassxc-2.7.4-6.fc38.x86_64
  - package keepassxc-2.7.1-12.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - package keepassxc-2.7.4-7.fc37.x86_64 requires libminizip.so.3.0()(64bit), but none of the providers can be installed
  - installed package minizip-ng-3.0.7-3.fc38.x86_64 obsoletes minizip < 3.0.3 provided by minizip-3.0.2-7.fc37.x86_64
  - keepassxc-2.7.4-6.fc38.x86_64 does not belong to a distupgrade repository
  - problem with installed package minizip-ng-3.0.7-3.fc38.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)

Note this in your latest output from ‘dnf distro-sync’

Doing that gives the same output error as in my post, This important stuff will be removed grub2-tools-minimal, systemd, systemd-udev

Error: 
 Problem: The operation would result in removing the following protected packages: grub2-tools-minimal, systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

remove duplicate output is a bunch of not availables then the error ill put below

...
...
Installed package python3-pytz-2023.3-1.fc38.noarch not available.
Installed package flexiblas-3.3.1-1.fc38.x86_64 not available.
Installed package libzstd-1.5.5-1.fc38.x86_64 not available.
Installed package qt6-qtbase-common-6.4.3-2.fc38.noarch not available.
Installed package flexiblas-openblas-openmp-3.3.1-1.fc38.x86_64 not available.
Installed package flexiblas-openblas-openmp64-3.3.1-1.fc38.x86_64 not available.
Installed package zchunk-libs-1.3.1-1.fc38.x86_64 not available.
Installed package libzstd-devel-1.5.5-1.fc38.x86_64 not available.
Installed package plasma-breeze-common-5.27.4-1.fc38.noarch not available.
Installed package grub2-common-1:2.06-95.fc38.noarch not available.
Installed package vim-filesystem-2:9.0.1440-1.fc38.noarch not available.
Installed package vim-data-2:9.0.1440-1.fc38.noarch not available.
Installed package cmake-rpm-macros-3.26.3-1.fc38.noarch not available.
Installed package cmake-data-3.26.3-1.fc38.noarch not available.
Installed package ghostscript-tools-fonts-10.01.0-3.fc38.x86_64 not available.
Installed package ghostscript-tools-printing-10.01.0-3.fc38.x86_64 not available.
Installed package cmake-filesystem-3.26.3-1.fc38.x86_64 not available.
Installed package polkit-libs-122-3.fc38.1.x86_64 not available.
Installed package libFAudio-23.04-1.fc38.x86_64 not available.
Installed package httpd-filesystem-2.4.57-1.fc38.noarch not available.
Installed package qt5-qttools-common-5.15.9-1.fc38.noarch not available.
Installed package libxml2-2.10.4-1.fc38.x86_64 not available.
Installed package qt5-rpm-macros-5.15.9-1.fc38.noarch not available.
Error: 
 Problem: The operation would result in removing the following protected packages: grub2-tools-minimal, systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

I am kind of scared this feels like I am uninstalling my operating system like linus tech tips haha. Is this intended? All the software listed for removal has f37 tag

...
...
 shadow-utils                                                                 x86_64                                        2:4.12.3-6.fc37                                                          @updates                                                  3.9 M
 shared-mime-info                                                             x86_64                                        2.2-2.fc37                                                               @fedora                                                   5.0 M
 sound-theme-freedesktop                                                      noarch                                        0.8-18.fc37                                                              @fedora                                                   460 k
 spax                                                                         x86_64                                        1.6-7.fc37                                                               @fedora                                                   415 k
 sqlite-libs                                                                  x86_64                                        3.40.0-1.fc37                                                            @updates                                                  1.3 M
 sssd                                                                         x86_64                                        2.8.2-1.fc37                                                             @updates                                                   34 k
 sssd-ad                                                                      x86_64                                        2.8.2-1.fc37                                                             @updates                                                  442 k
 sssd-client                                                                  x86_64                                        2.8.2-1.fc37                                                             @updates                                                  359 k
 sssd-common                                                                  x86_64                                        2.8.2-1.fc37                                                             @updates                                                  5.5 M
 sssd-common-pac                                                              x86_64                                        2.8.2-1.fc37                                                             @updates                                                  242 k
 sssd-ipa                                                                     x86_64                                        2.8.2-1.fc37                                                             @updates                                                  712 k
 sssd-krb5                                                                    x86_64                                        2.8.2-1.fc37                                                             @updates                                                   88 k
 sssd-krb5-common                                                             x86_64                                        2.8.2-1.fc37                                                             @updates                                                  216 k
 sssd-ldap                                                                    x86_64                                        2.8.2-1.fc37                                                             @updates                                                  181 k
 sssd-nfs-idmap                                                               x86_64                                        2.8.2-1.fc37                                                             @updates                                                   48 k
 sssd-proxy                                                                   x86_64                                        2.8.2-1.fc37                                                             @updates                                                  154 k
 svt-av1-libs                                                                 x86_64                                        1.1.0-2.fc37                                                             @fedora                                                   7.0 M
 syslinux-nonlinux                                                            noarch                                        6.04-0.23.fc37                                                           @fedora                                                   1.6 M
 sysprof-capture-devel                                                        x86_64                                        3.46.0-1.fc37                                                            @fedora                                                   334 k
 systemd                                                                      x86_64                                        251.14-2.fc37                                                            @updates                                                   13 M
 systemd-boot-unsigned                                                        x86_64                                        251.14-2.fc37                                                            @updates                                                  292 k
 systemd-libs                                                                 x86_64                                        251.14-2.fc37                                                            @updates                                                  1.7 M
 systemd-networkd                                                             x86_64                                        251.14-2.fc37                                                            @updates                                                  1.8 M
 systemd-pam                                                                  x86_64                                        251.14-2.fc37                                                            @updates                                                  961 k
 systemd-resolved                                                             x86_64                                        251.14-2.fc37                                                            @updates                                                  596 k
 systemd-udev                                                                 x86_64                                        251.14-2.fc37                                                            @updates                                                   10 M
 systemtap-sdt-devel                                                          x86_64                                        4.8-3.fc37                                                               @updates                                                  197 k
 tar                                                                          x86_64                                        2:1.34-6.fc37                                                            @updates                                                  3.0 M
 tcl                                                                          x86_64                                        1:8.6.12-3.fc37                                                          @fedora                                                   4.5 M
 tdb-tools                                                                    x86_64                                        1.4.7-3.fc37                                                             @fedora                                                    82 k
 texlive-base                                                                 x86_64                                        9:20210325-52.fc37                                                       @fedora                                                    17 M
 texlive-cm                                                                   noarch                                        9:svn57963-60.fc37                                                       @updates                                                  995 k
 texlive-dehyph                                                               noarch                                        9:svn48599-60.fc37                                                       @updates                                                  240 k
 texlive-epstopdf                                                             noarch                                        9:20210325-52.fc37                                                       @fedora                                                    38 k
 texlive-epstopdf-pkg                                                         noarch                                        9:svn53546-60.fc37                                                       @updates                                                  387 k
 texlive-etex                                                                 noarch                                        9:svn56291-60.fc37                                                       @updates                                                   41 k
 texlive-graphics-def                                                         noarch                                        9:svn58539-60.fc37                                                       @updates                                                   98 k
 texlive-gsftopk                                                              x86_64                                        9:20210325-52.fc37                                                       @fedora                                                    47 k
 texlive-hyph-utf8                                                            noarch                                        9:svn58619-60.fc37                                                       @updates                                                   74 k
 texlive-hyphen-base                                                          noarch                                        9:svn58630-60.fc37                                                       @updates                                                   64 k
 texlive-knuth-lib                                                            noarch                                        9:svn57963-60.fc37                                                       @updates                                                  100 k
 texlive-kpathsea                                                             x86_64                                        9:20210325-52.fc37                                                       @fedora                                                   2.0 M
 texlive-latex-fonts                                                          noarch                                        9:svn28888.0-60.fc37                                                     @updates                                                  114 k
 texlive-lib                                                                  x86_64                                        9:20210325-52.fc37                                                       @fedora                                                   1.1 M
 texlive-luatex                                                               x86_64                                        9:20210325-52.fc37                                                       @fedora                                                   9.4 M
 texlive-modes                                                                noarch                                        9:svn56303-60.fc37                                                       @updates                                                  390 k
 texlive-plain                                                                noarch                                        9:svn57963-60.fc37                                                       @updates                                                  109 k
 texlive-tex-ini-files                                                        noarch                                        9:svn40533-60.fc37                                                       @updates                                                  8.1 k
 texlive-texlive-scripts                                                      noarch                                        9:20210325-52.fc37                                                       @fedora                                                   328 k
 texlive-texlive.infra                                                        noarch                                        9:20210325-52.fc37                                                       @fedora                                                   999 k
 texlive-unicode-data                                                         noarch                                        9:svn56768-60.fc37                                                       @updates                                                  3.0 M
 tigervnc-license                                                             noarch                                        1.13.1-3.fc37                                                            @updates                                                   18 k
 time                                                                         x86_64                                        1.9-19.fc37                                                              @fedora                                                    87 k
 tk                                                                           x86_64                                        1:8.6.12-3.fc37                                                          @fedora                                                   3.7 M
 tpm2-tools                                                                   x86_64                                        5.4-1.fc37                                                               @updates                                                  1.5 M
 tpm2-tss                                                                     x86_64                                        3.2.2-1.fc37                                                             @updates                                                  2.1 M
 tzdata                                                                       noarch                                        2022g-1.fc37                                                             @updates                                                  1.6 M
 tzdata-java                                                                  noarch                                        2022g-1.fc37                                                             @updates                                                  341 k
 unbound-libs                                                                 x86_64                                        1.17.1-1.fc37                                                            @updates                                                  1.4 M
 unzip                                                                        x86_64                                        6.0-58.fc37                                                              @fedora                                                   393 k
 urw-base35-bookman-fonts                                                     noarch                                        20200910-15.fc37                                                         @fedora                                                   1.4 M
 urw-base35-c059-fonts                                                        noarch                                        20200910-15.fc37                                                         @fedora                                                   1.4 M
 urw-base35-d050000l-fonts                                                    noarch                                        20200910-15.fc37                                                         @fedora                                                    84 k
 urw-base35-fonts-common                                                      noarch                                        20200910-15.fc37                                                         @fedora                                                    37 k
 urw-base35-gothic-fonts                                                      noarch                                        20200910-15.fc37                                                         @fedora                                                   1.2 M
 urw-base35-nimbus-mono-ps-fonts                                              noarch                                        20200910-15.fc37                                                         @fedora                                                   1.0 M
 urw-base35-nimbus-roman-fonts                                                noarch                                        20200910-15.fc37                                                         @fedora                                                   1.4 M
 urw-base35-nimbus-sans-fonts                                                 noarch                                        20200910-15.fc37                                                         @fedora                                                   2.4 M
 urw-base35-p052-fonts                                                        noarch                                        20200910-15.fc37                                                         @fedora                                                   1.5 M
 urw-base35-standard-symbols-ps-fonts                                         noarch                                        20200910-15.fc37                                                         @fedora                                                    44 k
 urw-base35-z003-fonts                                                        noarch                                        20200910-15.fc37                                                         @fedora                                                   391 k
 utf8proc                                                                     x86_64                                        2.7.0-3.fc37                                                             @fedora                                                   363 k
 util-linux                                                                   x86_64                                        2.38.1-1.fc37                                                            @fedora                                                    11 M
 util-linux-core                                                              x86_64                                        2.38.1-1.fc37                                                            @fedora                                                   1.3 M
 util-linux-user                                                              x86_64                                        2.38.1-1.fc37                                                            @fedora                                                    60 k
 vim-data                                                                     noarch                                        2:9.0.1440-1.fc37                                                        @updates                                                   18 k
 vim-filesystem                                                               noarch                                        2:9.0.1440-1.fc37                                                        @updates                                                   40  
 vo-amrwbenc                                                                  x86_64                                        0.1.3-18.fc37                                                            @updates                                                  146 k
 vte-profile                                                                  x86_64                                        0.70.3-1.fc37                                                            @updates                                                   53 k
 vulkan-headers                                                               noarch                                        1.3.216.0-2.fc37                                                         @fedora                                                    17 M
 vulkan-loader                                                                x86_64                                        1.3.216.0-3.fc37                                                         @fedora                                                   497 k
 vulkan-loader-devel                                                          x86_64                                        1.3.216.0-3.fc37                                                         @fedora                                                   282  
 web-assets-filesystem                                                        noarch                                        5-18.fc37                                                                @fedora                                                    34  
 which                                                                        x86_64                                        2.21-39.fc37                                                             @updates                                                   80 k
 whois-nls                                                                    noarch                                        5.5.15-1.fc37                                                            @updates                                                  132 k
 wireless-regdb                                                               noarch                                        2022.06.06-2.fc37                                                        @fedora                                                    11 k
 xcb-util                                                                     x86_64                                        0.4.0-20.fc37                                                            @fedora                                                    34 k
 xcb-util-keysyms                                                             x86_64                                        0.4.0-18.fc37                                                            @fedora                                                    17 k
 xcb-util-renderutil                                                          x86_64                                        0.3.9-21.fc37                                                            @fedora                                                    28 k
 xdg-user-dirs                                                                x86_64                                        0.18-1.fc37                                                              @updates                                                  171 k
 xdg-utils                                                                    noarch                                        1.1.3-12.fc37                                                            @fedora                                                   313 k
 xen-licenses                                                                 x86_64                                        4.16.3-4.fc37                                                            @updates                                                  409 k
 xkbcomp                                                                      x86_64                                        1.4.5-4.fc37                                                             @fedora                                                   222 k
 xkeyboard-config                                                             noarch                                        2.36-3.fc37                                                              @updates                                                  6.6 M
 xml-common                                                                   noarch                                        0.6.3-59.fc37                                                            @fedora                                                    78 k
 xmlrpc-c                                                                     x86_64                                        1.51.08-1.fc37                                                           @updates                                                  524 k
 xmlrpc-c-client                                                              x86_64                                        1.51.08-1.fc37                                                           @updates                                                   52 k
 xorg-x11-drv-fbdev                                                           x86_64                                        0.5.0-11.fc37                                                            @fedora                                                    34 k
 xorg-x11-drv-libinput                                                        x86_64                                        1.2.1-2.fc37                                                             @fedora                                                    97 k
 xorg-x11-fonts-ISO8859-1-100dpi                                              noarch                                        7.5-34.fc37                                                              @fedora                                                   1.0 M
 xorg-x11-proto-devel                                                         noarch                                        2022.2-2.fc37                                                            @fedora                                                   1.7 M
 xorg-x11-server-Xorg                                                         x86_64                                        1.20.14-21.fc37                                                          @updates                                                  3.7 M
 xorg-x11-server-common                                                       x86_64                                        1.20.14-21.fc37                                                          @updates                                                  127 k
 xxhash-libs                                                                  x86_64                                        0.8.1-3.fc37                                                             @fedora                                                    91 k
 xz                                                                           x86_64                                        5.4.1-1.fc37                                                             @updates                                                  1.1 M
 xz-devel                                                                     x86_64                                        5.4.1-1.fc37                                                             @updates                                                  238 k
 xz-libs                                                                      x86_64                                        5.4.1-1.fc37                                                             @updates                                                  210 k
 yelp-xsl                                                                     noarch                                        42.1-1.fc37                                                              @fedora                                                   1.4 M
 zchunk-libs                                                                  x86_64                                        1.3.1-1.fc37                                                             @updates                                                   98 k
 zip                                                                          x86_64                                        3.0-33.fc37                                                              @fedora                                                   696 k
 zlib                                                                         x86_64                                        1.2.12-5.fc37                                                            @fedora                                                   202 k
 zlib-devel                                                                   x86_64                                        1.2.12-5.fc37                                                            @fedora                                                   139 k
 zziplib                                                                      x86_64                                        0.13.72-2.fc37                                                           @fedora                                                   238 k

Transaction Summary
=====================================================================================================================================================================================================================================================================
Remove  916 Packages

Freed space: 2.2 G

That gives the same error as last time

Error: 
 Problem: The operation would result in removing the following protected packages: grub2-tools-minimal, systemd, systemd-udev
(try to add '--skip-broken' to skip uninstallable packages)

1 Like

I recommend to prepare a Fedora 38 live media and be ready for manual recovery if this goes wrong, then try the following:

sudo dnf distro-sync --refresh --releasever 38 --setopt protected_packages=
sudo dnf remove --duplicates

You can also use a text session with Alt+Ctrl+F3 to minimize the risk of terminating the graphical session during the upgrade.

2 Likes

I would first remove each of those conflicting packages one at a time.
Use care to know if this would force removal of any mandatory packages, and be aware that almost anything removed can be done using the --noautoremove option to avoid the long list of dependencies that may be suggested for removal.
It may be better to remove qemu* rather than the individual packages since it is easy to reinstall qemu from the fedora repos.

clamav-freshclam-1.0.1-4.fc38.x86_64
clamav-filesystem-1.0.1-4.fc38.noarch
dleyna-0.8.2-2.fc38.x86_64
gupnp-1.6.3-2.fc38.x86_64
qemu-common-2:7.2.0-6.fc38.x86_64
qemu-audio-alsa-2:7.2.0-6.fc38.x86_64
qemu-system-loongarch64-core-2:7.2.0-6.fc38.x86_64
libbpf-2:1.1.0-2.fc38.x86_64
svt-av1-libs-1.4.1-2.fc38.i686
svt-av1-libs-1.4.1-2.fc38.x86_64
libppd-1:2.0~b4-2.fc38.x86_64
ghostscript-10.01.0-3.fc38.x86_64
ghostscript-tools-fonts-10.01.0-3.fc38.x86_64
libunistring-1.1-3.fc38.i686
libvpx-1.13.0-2.fc38.x86_64
keepassxc-2.7.1-12.fc37.x86_64
keepassxc-2.7.4-6.fc38.x86_64

1 Like

I agree with @computersavvy
If you remove a package the config files will not be deleted. If you reinstall the package again it should work out of the box.

@computersavvy recommendation would have probably solved it as well, but I went with the distro-sync option after seeing a lot of them would have removed core features like wine, photos etc and it would have been an hassle to get all of them back.
But this worked! Thank you! I now have zero duplicates and I can use dnf.

Slight question though, my uname-a is still unchanged. Would this cause a problem? OS reports as Fedora Linux 38 though.

It indicates the currently running kernel and should change when you boot a newer kernel.
This typically happens automatically on reboot, otherwise select it manually in the GRUB menu.
You can check installed and available kernels like this:

rpm -q kernel; dnf list kernel --showduplicates

You are right I am using the old kernel but the new one does not show in grub
but It is installed

rpm -q kernel; dnf list kernel --showduplicates
kernel-6.2.8-200.fc37.x86_64
kernel-6.2.9-200.fc37.x86_64
kernel-6.2.10-200.fc37.x86_64
kernel-6.2.11-300.fc38.x86_64
Last metadata expiration check: 2:36:55 ago on Wed 19 Apr 2023 15:40:33 CEST.
Installed Packages
kernel.x86_64                                               6.2.8-200.fc37                                                @updates
kernel.x86_64                                               6.2.9-200.fc37                                                @updates
kernel.x86_64                                               6.2.10-200.fc37                                               @updates
kernel.x86_64                                               6.2.11-300.fc38                                               @updates
Available Packages
kernel.x86_64                                               6.2.9-300.fc38                                                fedora  
kernel.x86_64                                               6.2.11-300.fc38                                               updates 

I rebuilt grub config with this

grub2-mkconfig -o /boot/grub2/grub.cfg

After reboot still no change
Here is my grub config if it is helpful

[emrecemelevis@bluedevil ~]$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
#GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet iommu=1 amd_iommu=on"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

GRUB_THEME=/boot/grub2/themes/fallout-grub-theme/theme.txt

Looks like the latest kernel has failed to install properly.

Remove old inactive kernels to make free space:

sudo dnf remove --oldinstallonly

There’s currently a bug that makes difficult to reinstall the latest kernel.
So remove it and install again by upgrading:

sudo dnf remove kernel\*-6.2.11-300.fc38
sudo dnf upgrade
2 Likes

Unfortunately I saw your message after trying to fix on my own with reinstall kernel & reinstall kernel-core.
Luckily it worked and I have not encountered a bug. I am now using 6.2.11-300.fc38.x86_64
Thank you again @vgaetera you have been extremely helpful.

1 Like