DNF update always fails

When I do

sudo dnf update

I get

Last metadata expiration check: 0:06:21 ago on Mon 27 Feb 2023 03:55:37 PM EST.
Dependencies resolved.

 Problem 1: cannot install the best update candidate for package rust-clap-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 2: package rust-clap+suggestions-devel-4.1.6-1.fc37.noarch requires crate(clap) = 4.1.6, but none of the providers can be installed
  - cannot install the best update candidate for package rust-clap+suggestions-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 3: package rust-clap+std-devel-4.1.6-1.fc37.noarch requires crate(clap) = 4.1.6, but none of the providers can be installed
  - cannot install the best update candidate for package rust-clap+std-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 4: package rust-clap+derive-devel-4.1.6-1.fc37.noarch requires crate(clap) = 4.1.6, but none of the providers can be installed
  - cannot install the best update candidate for package rust-clap+derive-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 5: package rust-clap+default-devel-4.1.6-1.fc37.noarch requires crate(clap) = 4.1.6, but none of the providers can be installed
  - cannot install the best update candidate for package rust-clap+default-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 6: package rust-clap+color-devel-4.1.6-1.fc37.noarch requires crate(clap) = 4.1.6, but none of the providers can be installed
  - cannot install the best update candidate for package rust-clap+color-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 7: package rust-clap+cargo-devel-4.1.6-1.fc37.noarch requires crate(clap) = 4.1.6, but none of the providers can be installed
  - cannot install the best update candidate for package rust-clap+cargo-devel-3.2.20-2.fc38.noarch
  - nothing provides (crate(clap_lex/default) >= 0.3.0 with crate(clap_lex/default) < 0.4.0~) needed by rust-clap-devel-4.1.6-1.fc37.noarch
 Problem 8: package libwinpr-2:2.10.0-1.fc37.x86_64 requires libicuuc.so.71()(64bit), but none of the providers can be installed
  - cannot install both libicu-71.1-2.fc37.x86_64 and libicu-72.1-1.fc38.x86_64
  - cannot install the best update candidate for package libwinpr-2:2.9.0-2.fc38.x86_64
  - problem with installed package libicu-72.1-1.fc38.x86_64
 Problem 9: package libwinpr-2:2.10.0-1.fc37.x86_64 requires libicuuc.so.71()(64bit), but none of the providers can be installed
  - cannot install both libicu-71.1-2.fc37.x86_64 and libicu-72.1-1.fc38.x86_64
  - package freerdp-libs-2:2.10.0-1.fc37.x86_64 requires libwinpr(x86-64) = 2:2.10.0-1.fc37, but none of the providers can be installed
  - cannot install the best update candidate for package libicu-72.1-1.fc38.x86_64
  - cannot install the best update candidate for package freerdp-libs-2:2.9.0-2.fc38.x86_64
 Problem 10: package mingw64-libtiff-4.3.0-2.fc37.noarch requires mingw64(libstdc++-6.dll), but none of the providers can be installed
  - package mingw64-gcc-c++-12.2.1-3.fc37.x86_64 requires mingw64-gcc = 12.2.1-3.fc37, but none of the providers can be installed
  - package wine-core-8.2-3.fc37.x86_64 requires mingw64-libtiff, but none of the providers can be installed
  - cannot install both mingw64-gcc-12.2.1-3.fc37.x86_64 and mingw64-gcc-12.2.1-6.fc38.x86_64
  - cannot install the best update candidate for package wine-core-8.1-1.fc37.x86_64
  - problem with installed package mingw64-gcc-12.2.1-6.fc38.x86_64
 Problem 11: package mingw32-libtiff-4.3.0-2.fc37.noarch requires mingw32(libstdc++-6.dll), but none of the providers can be installed
  - package mingw32-gcc-c++-12.2.1-3.fc37.x86_64 requires mingw32-gcc = 12.2.1-3.fc37, but none of the providers can be installed
  - package wine-core-8.2-3.fc37.i686 requires mingw32-libtiff, but none of the providers can be installed
  - cannot install both mingw32-gcc-12.2.1-3.fc37.x86_64 and mingw32-gcc-12.2.1-6.fc38.x86_64
  - cannot install the best update candidate for package wine-core-8.1-1.fc37.i686
  - problem with installed package mingw32-gcc-12.2.1-6.fc38.x86_64
 Problem 12: package mingw32-libtiff-4.3.0-2.fc37.noarch requires mingw32(libstdc++-6.dll), but none of the providers can be installed
  - package wine-core-8.2-3.fc37.i686 requires mingw32-libtiff, but none of the providers can be installed
  - package mingw32-gcc-c++-12.2.1-3.fc37.x86_64 requires mingw32-gcc = 12.2.1-3.fc37, but none of the providers can be installed
  - package wine-8.2-3.fc37.x86_64 requires wine-core(x86-32) = 8.2-3.fc37, but none of the providers can be installed
  - cannot install both mingw32-gcc-12.2.1-3.fc37.x86_64 and mingw32-gcc-12.2.1-6.fc38.x86_64
  - cannot install the best update candidate for package wine-8.1-1.fc37.x86_64
  - cannot install the best update candidate for package mingw32-gcc-12.2.1-6.fc38.x86_64
 Problem 13: package wine-core-8.2-3.fc37.x86_64 requires mingw64-libtiff, but none of the providers can be installed
  - package wine-dxvk-1.10.3-1.fc37.x86_64 requires wine-core(x86-64) >= 6.8, but none of the providers can be installed
  - package mingw64-libtiff-4.3.0-2.fc37.noarch requires mingw64(libstdc++-6.dll), but none of the providers can be installed
  - package wine-core-8.1-1.fc37.x86_64 requires wine-filesystem = 8.1-1.fc37, but none of the providers can be installed
  - package wine-core-7.12-3.fc37.x86_64 requires wine-filesystem = 7.12-3.fc37, but none of the providers can be installed
  - package mingw64-gcc-c++-12.2.1-3.fc37.x86_64 requires mingw64-gcc = 12.2.1-3.fc37, but none of the providers can be installed
  - cannot install both wine-filesystem-8.2-3.fc37.noarch and wine-filesystem-8.1-1.fc37.noarch
  - cannot install both wine-filesystem-8.2-3.fc37.noarch and wine-filesystem-7.12-3.fc37.noarch
  - cannot install both mingw64-gcc-12.2.1-3.fc37.x86_64 and mingw64-gcc-12.2.1-6.fc38.x86_64
  - cannot install the best update candidate for package wine-filesystem-8.1-1.fc37.noarch
  - cannot install the best update candidate for package wine-dxvk-1.10.3-1.fc37.x86_64
  - cannot install the best update candidate for package mingw64-gcc-12.2.1-6.fc38.x86_64
==============================================================================================================================================================================================================================================
 Package                                                              Architecture                                    Version                                                  Repository                                                Size
==============================================================================================================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 libicu                                                               x86_64                                          71.1-2.fc37                                              fedora                                                    10 M
 libicu                                                               x86_64                                          71.1-2.fc37                                              updates-testing                                           10 M
 mingw32-gcc                                                          x86_64                                          12.2.1-3.fc37                                            fedora                                                    23 M
 mingw64-gcc                                                          x86_64                                          12.2.1-3.fc37                                            fedora                                                    23 M
 wine-filesystem                                                      noarch                                          7.12-3.fc37                                              fedora                                                   1.7 M
 wine-filesystem                                                      noarch                                          8.2-3.fc37                                               updates-testing                                          1.7 M
Skipping packages with broken dependencies:
 freerdp-libs                                                         x86_64                                          2:2.10.0-1.fc37                                          updates-testing                                          1.0 M
 libwinpr                                                             x86_64                                          2:2.10.0-1.fc37                                          updates-testing                                          354 k
 mingw32-gcc-c++                                                      x86_64                                          12.2.1-3.fc37                                            fedora                                                    24 M
 mingw32-libtiff                                                      noarch                                          4.3.0-2.fc37                                             fedora                                                   319 k
 mingw64-gcc-c++                                                      x86_64                                          12.2.1-3.fc37                                            fedora                                                    24 M
 mingw64-libtiff                                                      noarch                                          4.3.0-2.fc37                                             fedora                                                   307 k
 rust-clap+cargo-devel                                                noarch                                          4.1.6-1.fc37                                             updates-testing                                          9.2 k
 rust-clap+color-devel                                                noarch                                          4.1.6-1.fc37                                             updates-testing                                          9.2 k
 rust-clap+default-devel                                              noarch                                          4.1.6-1.fc37                                             updates-testing                                          9.2 k
 rust-clap+derive-devel                                               noarch                                          4.1.6-1.fc37                                             updates-testing                                          9.2 k
 rust-clap+std-devel                                                  noarch                                          4.1.6-1.fc37                                             updates-testing                                          9.0 k
 rust-clap+suggestions-devel                                          noarch                                          4.1.6-1.fc37                                             updates-testing                                          9.2 k
 rust-clap-devel                                                      noarch                                          4.1.6-1.fc37                                             updates-testing                                          219 k
 wine                                                                 x86_64                                          8.2-3.fc37                                               updates-testing                                           11 k
 wine-core                                                            x86_64                                          7.12-3.fc37                                              fedora                                                    91 M
 wine-core                                                            i686                                            8.2-3.fc37                                               updates-testing                                           90 M
 wine-core                                                            x86_64                                          8.2-3.fc37                                               updates-testing                                           93 M

Transaction Summary
==============================================================================================================================================================================================================================================
Skip  23 Packages

Nothing to do.
Complete!

and if i do

sudo dnf update --best --allowerasing

I get

Last metadata expiration check: 0:07:22 ago on Mon 27 Feb 2023 03:55:37 PM EST.
Error: 
 Problem: The operation would result in removing the following protected packages: gnome-shell
(try to add '--skip-broken' to skip uninstallable packages)

which doing so does the same as the first comand.
I don’t know if this is fixable but it is somewhat infuriating. Anyone who can help, Thank you.

Testing repos are not designed for everyday use unless you are a package tester:

sudo dnf config-manager --disable \*-testing
4 Likes

OK that fixed it. Thank you :slight_smile: :slight_smile: :slight_smile: