Fedora Workstation 38 Breaks after a Power cut During Update through command Line.
Today I was Updating My PC through command line using dnf and everything was downloaded and installation Process was going and suddenly a powercut happened and next time I was unable to boot into my computer but I was able to boot through a previous kernel then I asked ChatGPT for what can I do and since then I have done these things.
sudo dnf check
sudo dnf clean all
sudo dnf update --refresh
sudo dnf distro-sync
rpm -q kernel
sudo dnf reinstall kernel-version
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
but these things don’t solve my problems and I am still not able to boot without going to a previous kernel can anyone help me with this if yes please let me know because some of my work is pending.
- If You think that some Information is missing please let me know I will give my 100% to try to give you that Information.
Thank You
Have you run all of the following to verify that things have been fully updated.
cat /etc/fedora-release
to verify the system knows it is supposed to be on fedora 38. If that does not show Fedora release 38 (Thirty Eight)
then the following steps may need to be different.
uname -a
to verify the fedora version and kernel that booted.
sudo distro-sync --releasever=38 --refresh
to confirm the sync with the proper fedora repo.
dnf list installed kernel
to verify that the desired fedora 38 kernel is installed
sudo dnf remove kernel*6.4.11*
to remove all the kernel 6.4.11 pieces and allow a proper new install of the kernel. (this assumes that the 6.4.11 kernel is the one that fails to boot)
sudo dnf upgrade --refresh
to perform a new clean install of the latest kernel.
All this is predicated upon the belief that the commands you listed were done properly, and since we have no details about that we cannot tell for certain from what was posted. If the new kernel install is done properly as I show above then it is not necessary to run the grub-mkconfig command (although it does not harm anything).
When asking for assistance it is often best to include too many details rather than just a summary since we may delay valid suggestions if we do not know the exact situation and have to ask for more info.
I updated the system again with --refresh and now it is working correctly and a new kernel is also installed Thank You For Your Time.
1 Like