Skip to content
Search Fedora

    Browse this documentation

    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.

    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.

    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.

    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.

    Terminal window
    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.

    Terminal window
    sudo ls /boot | grep vmlinuz
    sudo grubby --set-default /boot/vmlinuz-<version>.<release>.<arch>

    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:

    1. Path: graphical upgrade or command-line plugin, from which release to which release;
    2. Stage: download stage, install stage in the transitional environment, or first boot of the new release;
    3. Boot chain: which kernel the default entry points at, whether the rescue entry works, whether the initramfs matches the kernel;
    4. Verbatim text: the full error and the corresponding timestamp, not a paraphrase.

    When the system misbehaves after an upgrade, gather state before changing configuration:

    Terminal window
    cat /etc/os-release | grep VERSION_ID
    rpm -q rpm dnf5 kernel
    dnf repolist | tail -n +2 | wc -l
    ls /usr/share/dnf5/repos.d/*.repo | wc -l

    Normal output on F45:

    VERSION_ID=45
    rpm-6.1.0-1.fc45.x86_64
    dnf5-5.4.6.0-3.fc45.x86_64
    4
    4

    How to read it:

    ItemWhat it means otherwise
    VERSION_ID is not 45the upgrade did not complete
    rpm still 6.0.xstill carrying F44 packages
    repolist count differs from repo filesa repository is disabled or overridden
    Terminal window
    sudo dnf check
    rpm -Va --nofiles --nodigest | head -20

    dnf 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.

    Terminal window
    sudo ls /boot | grep vmlinuz
    sudo grubby --info=ALL | grep -E "^kernel|^title" | head -6
    sudo 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
    Terminal window
    ls /boot/*rescue* 2>/dev/null

    A 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.