Dnf system-upgrade bootlooped, now stuck partially upgraded

I used dnf system-upgrade download --releasever=41 to upgrade. After dnf system-upgrade reboot, I got stuck in a bootloop for several hours, which I broke by hard resetting. Afterwards, GNOME information declares that I’m running Fedora 41 with GNOME 46, and dnf --version returns version 4.21.1

Subsequently,

❯ sudo dnf system-upgrade upgrade 
trigger file does not exist. exiting quietly.
❯ sudo dnf system-upgrade download --releasever=41
Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y
Copr repo for lazygit owned by atim                                                                                                                                                                                                  2.3 kB/s | 1.5 kB     00:00    
Copr repo for facetimehd-dkms owned by frgt10                                                                                                                                                                                        9.1 kB/s | 1.5 kB     00:00    
Copr repo for fedy owned by kwizart                                                                                                                                                                                                  9.1 kB/s | 1.5 kB     00:00    
Copr repo for adw-gtk3 owned by nickavem                                                                                                                                                                                             8.6 kB/s | 1.5 kB     00:00    
Copr repo for input-leap-ei-enabled owned by ofourdan                                                                                                                                                                                8.5 kB/s | 1.5 kB     00:00    
Copr repo for PyCharm owned by phracek                                                                                                                                                                                                11 kB/s | 1.8 kB     00:00    
Copr repo for helix owned by varlad                                                                                                                                                                                                  9.1 kB/s | 1.5 kB     00:00    
determining the fastest mirror (3 hosts).. done.                                                                    [                        ===                                                                                   ] ---  B/s |   0  B     --:-- ETA
Fedora 41 - x86_64                                                                                                                                                                                                                   8.9 kB/s |  22 kB     00:02    
Fedora 41 openh264 (From Cisco) - x86_64                                                                                                                                                                                             2.2 kB/s | 989  B     00:00    
determining the fastest mirror (13 hosts).. done.                                                              100% [==============================================================================================================]  78 kB/s |  25 kB     00:00 ETA
Fedora 41 - x86_64 - Updates                                                                                                                                                                                                          13 kB/s |  25 kB     00:01    
google-chrome                                                                                                                                                                                                                        5.8 kB/s | 1.3 kB     00:00    
RPM Fusion for Fedora 41 - Free                                                                                                                                                                                                       48 kB/s |  12 kB     00:00    
RPM Fusion for Fedora 41 - Free - Updates                                                                                                                                                                                             42 kB/s |  11 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree                                                                                                                                                                                                    63 kB/s |  16 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                                                                                                                                                                    62 kB/s |  16 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree - Steam                                                                                                                                                                                            59 kB/s |  15 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree - Updates                                                                                                                                                                                          57 kB/s |  15 kB     00:00    
No match for group package "qmmp-plugins-freeworld"
No match for group package "obs-studio-freeworld"
No match for group package "levien-museum-fonts"
No match for group package "kanotf-fonts"
Error: 
 Problem: The operation would result in removing the following protected packages: setup
(try to add '--skip-broken' to skip uninstallable packages)
❯ sudo dnf system-upgrade download --releasever=41 --skip-broken
Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y
Copr repo for lazygit owned by atim                                                                                                                                                                                                            2.1 kB/s | 1.5 kB     00:00    
Copr repo for facetimehd-dkms owned by frgt10                                                                                                                                                                                                  9.6 kB/s | 1.5 kB     00:00    
Copr repo for fedy owned by kwizart                                                                                                                                                                                                            9.6 kB/s | 1.5 kB     00:00    
Copr repo for adw-gtk3 owned by nickavem                                                                                                                                                                                                       9.3 kB/s | 1.5 kB     00:00    
Copr repo for input-leap-ei-enabled owned by ofourdan                                                                                                                                                                                          9.5 kB/s | 1.5 kB     00:00    
Copr repo for PyCharm owned by phracek                                                                                                                                                                                                          11 kB/s | 1.8 kB     00:00    
Copr repo for helix owned by varlad                                                                                                                                                                                                            8.0 kB/s | 1.5 kB     00:00    
Fedora 41 - x86_64                                                                                                                                                                                                                              24 kB/s |  22 kB     00:00    
Fedora 41 openh264 (From Cisco) - x86_64                                                                                                                                                                                                       2.1 kB/s | 989  B     00:00    
Fedora 41 - x86_64 - Updates                                                                                                                                                                                                                    27 kB/s |  25 kB     00:00    
google-chrome                                                                                                                                                                                                                                  5.9 kB/s | 1.3 kB     00:00    
RPM Fusion for Fedora 41 - Free                                                                                                                                                                                                                 43 kB/s |  12 kB     00:00    
RPM Fusion for Fedora 41 - Free - Updates                                                                                                                                                                                                       40 kB/s |  11 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree                                                                                                                                                                                                              63 kB/s |  16 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree - NVIDIA Driver                                                                                                                                                                                              59 kB/s |  16 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree - Steam                                                                                                                                                                                                      58 kB/s |  15 kB     00:00    
RPM Fusion for Fedora 41 - Nonfree - Updates                                                                                                                                                                                                    56 kB/s |  15 kB     00:00    
No match for group package "qmmp-plugins-freeworld"
No match for group package "obs-studio-freeworld"
No match for group package "levien-museum-fonts"
No match for group package "kanotf-fonts"
Error: 
 Problem: The operation would result in removing the following protected packages: setup
❯ sudo rpm --rebuilddb
❯ sudo dnf distro-sync --allowerasing
Last metadata expiration check: 0:03:44 ago on Tue 29 Oct 2024 07:49:01 PM IST.
Error: 
 Problem: The operation would result in removing the following protected packages: setup
(try to add '--skip-broken' to skip uninstallable packages)

❯ sudo dnf distro-sync --allowerasing --skip-broken
Last metadata expiration check: 0:03:50 ago on Tue 29 Oct 2024 07:49:01 PM IST.
Error: 
 Problem: The operation would result in removing the following protected packages: setup
sudo dnf remove --duplicates
...
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  file /usr/share/licenses/xz-libs/COPYING from install of xz-libs-1:5.6.2-2.fc41.x86_64 conflicts with file from package xz-libs-1:5.4.6-3.fc40.i686
  file /usr/share/doc/libffi/README.md from install of libffi-3.4.6-3.fc41.x86_64 conflicts with file from package libffi-3.4.4-7.fc40.i686
  file /usr/share/licenses/libffi/LICENSE from install of libffi-3.4.6-3.fc41.x86_64 conflicts with file from package libffi-3.4.4-7.fc40.i686
  file /usr/share/doc/gmp/NEWS from install of gmp-1:6.3.0-2.fc41.x86_64 conflicts with file from package gmp-1:6.2.1-8.fc40.i686
  file /usr/share/doc/libwebp/AUTHORS from install of libwebp-1.4.0-4.fc41.x86_64 conflicts with file from package libwebp-1.3.2-5.fc40.i686
  file /usr/share/doc/libwebp/NEWS from install of libwebp-1.4.0-4.fc41.x86_64 conflicts with file from package libwebp-1.3.2-5.fc40.i686
  file /usr/share/doc/libwebp/README.md from install of libwebp-1.4.0-4.fc41.x86_64 conflicts with file from package libwebp-1.3.2-5.fc40.i686
  file /usr/share/man/man1/trust.1.gz from install of p11-kit-0.25.5-3.fc41.x86_64 conflicts with file from package p11-kit-0.25.5-1.fc40.i686
  file /usr/share/man/man5/pkcs11.conf.5.gz from install of p11-kit-0.25.5-3.fc41.x86_64 conflicts with file from package p11-kit-0.25.5-1.fc40.i686
  file /usr/share/man/man8/p11-kit.8.gz from install of p11-kit-0.25.5-3.fc41.x86_64 conflicts with file from package p11-kit-0.25.5-1.fc40.i686
  file /usr/share/man/man5/capability.conf.5.gz from install of libcap-2.70-4.fc41.x86_64 conflicts with file from package libcap-2.69-8.fc40.i686
  file /usr/share/man/man8/getcap.8.gz from install of libcap-2.70-4.fc41.x86_64 conflicts with file from package libcap-2.69-8.fc40.i686
  file /usr/share/man/man8/pam_cap.8.gz from install of libcap-2.70-4.fc41.x86_64 conflicts with file from package libcap-2.69-8.fc40.i686
  file /usr/share/man/man8/setcap.8.gz from install of libcap-2.70-4.fc41.x86_64 conflicts with file from package libcap-2.69-8.fc40.i686
  file /usr/share/doc/fribidi/ChangeLog from install of fribidi-1.0.15-2.fc41.x86_64 conflicts with file from package fribidi-1.0.14-2.fc40.i686
  file /usr/share/doc/fribidi/NEWS from install of fribidi-1.0.15-2.fc41.x86_64 conflicts with file from package fribidi-1.0.14-2.fc40.i686
  file /usr/share/doc/nettle/AUTHORS from install of nettle-3.10-3.fc41.x86_64 conflicts with file from package nettle-3.9.1-6.fc40.i686
  file /usr/share/doc/nettle/NEWS from install of nettle-3.10-3.fc41.x86_64 conflicts with file from package nettle-3.9.1-6.fc40.i686
  file /usr/share/info/nettle.info.gz from install of nettle-3.10-3.fc41.x86_64 conflicts with file from package nettle-3.9.1-6.fc40.i686
❯ cat /etc/os-release && cat /etc/fedora-release
NAME="Fedora Linux"
VERSION="41 (Workstation Edition)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=41
VERSION_CODENAME=""
PLATFORM_ID="platform:f41"
PRETTY_NAME="Fedora Linux 41 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:41"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f41/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=41
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=41
SUPPORT_END=2025-05-13
VARIANT="Workstation Edition"
VARIANT_ID=workstation
Fedora release 41 (Forty One)

How might I break the logjam and finish the upgrade?

Dnf system-upgrade fails from F39->F40 KDE Spin - #30 by vgaetera

1 Like

These commands let me progress somewhate in my specific scenario:

❯ sudo dnf upgrade-minimal --refresh

which revealed that I had to

❯ sudo dnf remove mesa-vulkan-drivers
❯ sudo dnf upgrade-minimal --refresh

Which threw a couple of

Error! facetimehd/0.5.18 is broken! Missing the source directory or the symbolic link pointing to it.
Manual intervention is required!

but ultimately passed with

Complete!

at which point i rebooted, and if I manage an edit of this message in the next few minutes you’ll know i didn’t brick the thing :slight_smile:

Some of the commands listed in the post linked by @vgaetera solved my problem. Thank you!

1 Like