Troubleshooting a failed upgrade
This page covers one thing only: what to do after an upgrade has already failed. How to upgrade, and which methods are unsupported, is in Upgrade between Fedora releases; this page is about “it is stuck or will not boot — how to locate and recover”, complementary and not repeated.
Common failure points
Section titled “Common failure points”The first move in troubleshooting is not re-running the command but answering two questions: which path were you on, and which stage did it stop at.
The official upgrade docs split upgrades into two paths: DNF system upgrade (recommended for installs other than Workstation and KDE) and “upgrading with the package manager”. The failure points differ, so the first step is to confirm which one you were on.
Trying to “rescue” a failed upgrade with that method turns the problem from one failed upgrade into an unsupported mixed state — every official path afterwards gets harder.
dnf system-upgrade works in three stages: download packages while the system is running normally, reboot into a special environment (implemented as a systemd target) that performs the install, then reboot again into the new release.
Understanding those three stages is the key to troubleshooting: when the download stage fails the system is still running normally, so you can read the error and then decide to retry; when the install stage fails you are no longer in the original running system, and your tools are boot entries and rescue access.
Recovering offline transactions
Section titled “Recovering offline transactions”An “offline transaction” is the install that runs in the transitional environment after the reboot. It is not a process in the current system, so “run it again and it will continue” does not exist. In practice, handle each stage separately:
- Download-stage failure: read the error first (unsatisfied dependencies, a third-party source that has not synced, an unimported key are all common), fix the cause, then download again — do not retry blindly;
- Install-stage failure after reboot: prioritise getting a bootable system back, rather than continuing to fight at the package-management level;
- Do not fall back to unsupported methods: see the official position above; a mixed state multiplies the difficulty of diagnosis.
Kernel and initramfs problems
Section titled “Kernel and initramfs problems”The most common “looks like a failed upgrade” after an upgrade is actually a boot chain that did not follow along: the new kernel is installed, but the default entry, the initramfs or the rescue entry is still the old one.
The rescue kernel can go stale: the rescue kernel and its initramfs are created by Anaconda at install time, and while the initramfs follows kernel updates, the rescue kernel does not necessarily. The official fix is to delete the old rescue files and re-add the current kernel with kernel-install.
sudo rm /boot/*rescue*sudo kernel-install add "$(uname -r)" "/lib/modules/$(uname -r)/vmlinuz"The official docs also note that installing dracut-config-rescue keeps the rescue kernel maintained automatically when dracut generates the initrd.
When you need to boot the previous kernel, point the default entry at it with grubby.
sudo ls /boot | grep vmlinuzsudo grubby --set-default /boot/vmlinuz-<version>.<release>.<arch>Gathering evidence and reporting
Section titled “Gathering evidence and reporting”The official docs keep the relevant material under the Kernel and booting category, including Booting, Troubleshooting and custom kernel guides.
For kernel or boot-level failures, walking those pages first is faster than piecing together scattered community claims — what you are usually looking for is not “the answer” but a minimal reproducible symptom.
Organise evidence along these four items; missing one costs the next person an extra round trip:
- Path: graphical upgrade or command-line plugin, from which release to which release;
- Stage: download stage, install stage in the transitional environment, or first boot of the new release;
- Boot chain: which kernel the default entry points at, whether the rescue entry works, whether the initramfs matches the kernel;
- Verbatim text: the full error and the corresponding timestamp, not a paraphrase.
Run these four first (measured on F45)
Section titled “Run these four first (measured on F45)”When the system misbehaves after an upgrade, gather state before changing configuration:
cat /etc/os-release | grep VERSION_IDrpm -q rpm dnf5 kerneldnf repolist | tail -n +2 | wc -lls /usr/share/dnf5/repos.d/*.repo | wc -lNormal output on F45:
VERSION_ID=45rpm-6.1.0-1.fc45.x86_64dnf5-5.4.6.0-3.fc45.x86_6444How to read it:
| Item | What it means otherwise |
|---|---|
VERSION_ID is not 45 | the upgrade did not complete |
rpm still 6.0.x | still carrying F44 packages |
repolist count differs from repo files | a repository is disabled or overridden |
Check for a half-installed state
Section titled “Check for a half-installed state”sudo dnf checkrpm -Va --nofiles --nodigest | head -20dnf check finds broken dependencies, rpm -Va finds modified files. If both are empty or nearly so, the package layer is clean — the problem is configuration or services, not the package manager.
Investigate the boot chain in this order
Section titled “Investigate the boot chain in this order”sudo ls /boot | grep vmlinuzsudo grubby --info=ALL | grep -E "^kernel|^title" | head -6sudo journalctl -b -1 -p err --no-pager | tail -30- is the kernel present →
ls /boot - is the default entry right →
grubby --info=ALL - why did the previous boot fail →
journalctl -b -1
Whether the rescue kernel is usable
Section titled “Whether the rescue kernel is usable”ls /boot/*rescue* 2>/dev/nullA file existing does not make it usable: the rescue kernel is created at install time and does not always follow kernel updates. The rebuild recipe is in Fedora kernel and hardware compatibility.
Related pages
Section titled “Related pages”- Upgrade between Fedora releases — the officially recommended path and unsupported methods
- systemd services and timers — investigating services that fail after an upgrade
- Error lookup — upgrade and dependency messages
- Fedora release cadence and support window — is it still worth troubleshooting on the old release
- Fedora kernel and hardware compatibility — routine kernel, driver and firmware questions
- Fedora FAQ — relationships, production suitability and release choice
- Fedora downloads and media — images and verification when a reinstall is needed
- Official: Upgrading to a new release, Upgrading Fedora offline