At the moment I am running fedora-27
and I would like to upgrade it to fedeora-30
. I followed the steps described in fedora wiki.
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --refresh --best --allowerasing --releasever=28
sudo dnf system-upgrade reboot
Note that I tried to gradually upgrade to the next release instead of upgrading directly to fedora-30
, since from previous experience (i.e. when wanting to upgrade from fedora-24
to fedora-27
) I've found out that it was smoother.
After performing the dnf system-upgrade reboot
command, my laptop rebooted, the upgrade screen when on and eventually I was booted again in fedora-27
while there is not fedora-28
option on the boot menu.
These are the steps that I followed to understand what's going wrong :
I had a look after @DavidYockey 's suggestion to
/boot
in case there is something related tof28
but there is nothing there as well. (https://imgur.com/e192pbx.png). I also checked the/boot/grub2/grub.cfg
file and there isn't any entry related tof28
(https://pastebin.com/Z81uJ0gr). So I guess that this means, it's not realated togrub
.I checked with
journalctl -r -p err
but I couldn't see something helpful there, either apart from the following entry which doesn't specify why it failed to upgrade. (https://pastebin.com/dnaDHcAQ)systemd1: Failed to start System Upgrade using DNF.
I then, had a look at the
dnf.log
file, which can be found here. I saw some critical errors there, but I am not sure what to do. For example2019-06-28T05:43:26Z CRITICAL Error opening file for checksum: /var/lib/dnf/system-upgrade/fedora-f21308f6293b3270/packages/compat-libicu57- 57.1-2.fc28.x86_64.rpm
2019-06-28T05:43:26Z CRITICAL Package "compat-libicu57-57.1-2.fc28.x86_64" from repository "fedora" has incorrect checksum
I run
sudo dnf repolist all
and it seems that some repositories are disabledI am wondering how can I enable them; maybe I can't.
I enabled the disabled repositories by editing the
.repo
files in/etc/yum.repos.d
and changing the value ofenable
to1
in the cases where it was0
and then repeatedsudo dnf upgrade --refresh
,sudo dnf system-upgrade download --refresh --best --allowerasing --releasever=28
andsudo dnf system-upgrade reboot
. Still thednf.log
gives me the same critical error seen in 3.
Any idea what to do next in order to eventually upgrade to fedora-30
?
/boot
or/boot/grub2
related tof28
( imgur.com/e192pbx ). There is also nothing in the/boot/grub2/grub.cfg
file. So this means that it's not related to booting, which is an information! Thanks! Any idea on what might be the issue?dnf clean all
would help?dnf clean all
didn't help. The problem was a corrupted file (see my answer)!