Re: Fix failed DNF upgrade?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 08, 2022 at 08:03:55AM -0800, Scott Beamer wrote:
> Greetings,
> 
> I recently read somewhere that there is a dnf command to finish upgrading
> when an upgrade crashes during an upgrade. I tried Googling to find it just
> now and have come up empty.
> 
> Does anyone know what it is?

Likely to late for you, but I was searching for how to do this today and found
your email.

I hit a similar problem twice now where my remote ssh was disconnected during a
"dnf upgrade", and I wasn't sure where in the upgrade it stopped or if it even
finished.

These commands did nothing. Somewhat expected, but depends where in the upgrade
it failed - if it was during the download, they might be enough:

    dnf upgrade
    dnf history redo NN (NN being the "dnf upgrade" that did not complete)

I eneded up using dnf reinstall of all the packages involved to recover.

Check your /var/log/dnf.log to see where / how it failed, get a list of all the
installed (new kernels are installed and not actually upgraded) and upgraded
packages, and then reinstall them all.

I suggest reinstalling kernel ones separately, since those can be more critical
- in my case, the initramfs for the latest kernel was missing. Re-running dracut
or ??? with the proper arguments would have created it too, but I'm not sure of
the exact arguments required nor if dracut is the only thing that wasn't run.

Plus, I had other upgrades whose scriptlets (post install scripts that run after
the rpm is actually downloaded and installed) had not run, and no idea what
might be needed for them.

-- Patrick
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux