April 21, 2021

Fedora 33 -- upgrade via DNF

I will first upgrade my home system. It has an SSD and usually can be upgraded in under 2 hours. Fedora 34 is coming up soon, so I ought to make the jump to 33 and be ready for 34. First I do this, since I am not running the latest f32 kernel.
su
dnf update
reboot
After this, I do:
su
dnf upgrade --refresh   (yields: nothing to do)
dnf -y system-upgrade download --refresh --releasever=33
Note: that for the first time ever, I am adding the -y switch so it can run the whole way unattended (typically it stops waiting for me to tell it OK to download various keys.)

This ends with the following error:

You can remove cached packages by executing 'dnf clean packages'.
Error: Transaction test error:
  package rsync-3.2.3-3.fc33.x86_64 does not verify: Payload SHA256 digest: BAD
  (Expected d9c3760219e29ded5863973d3cc60d3ce0ab49d9f7e9cf1c344f0ddbca349a8f !=
    76ac4cf986f6022a91ba8fa130fe81d7e86000bb5d3932e5e7a57fe368631227)
So, I did the following:
dnf erase rsync
dnf clean packages
dnf -y system-upgrade download --refresh --releasever=33
I will need to remember to reinstall rsync.
This ends with the same error (and reports it is skipping all the downloads due to them already being present.) So we try this:
dnf system-upgrade reboot
This reports: "Error: system is not ready for upgrade". Running updatedb and then locate finds the bad package in:
/var/lib/dnf/system-upgrade/updates-0e22a1f5a0a34771/packages/rsync-3.2.3-3.fc33.x86_64.rpm
Next, I try this:
dnf system-upgrade clean
dnf -y system-upgrade download --refresh --releasever=33
This went through clean. Some repo somewhere is corrupted. Now we can do this:
dnf system-upgrade reboot
This reboots immediately, performs the package upgrades in some kind of single user session, taking about an hour, then reboots again to the F33 kernel. After this I do:
dnf install rsync
And all is well (or so it seems).

Upgrade my work machine

This went without a hitch. I took a tip from the above and uninstalled/reinstalled rsync just in case. Easy enough to do, though it probably wasn't necessary. The final "upgrade/reboot" step ran blind (remote) and took 1.5 hours. This machine has no SSD, which does slow things down.
reboot to run latest F32 kernel
dnf update
dnf upgrade --refresh   (yields: nothing to do)
dnf erase rsync
dnf -y system-upgrade download --refresh --releasever=33
dnf system-upgrade reboot
dnf -y install rsync
All done and running:
Linux cholla 5.11.15-200.fc33.x86_64 #1 SMP Fri Apr 16 13:41:20 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux


Have any comments? Questions? Drop me a line!

Adventures in Computing / tom@mmto.org