Upgrade to F40 hanging

,

I try to upgrade my Fedora39 installation to Fedora40.
I proceeded the same way like I did successfully with the upgrade from 38 to 39, by executing the command sudo dnf system-upgrade download --releasever=40 --refresh --allowerasing -y.
However, this time the upgrade always exits (I tried a couple of times, rebooted etc) with this error:

error: /var/lib/dnf/system-upgrade/fedora-6c3a9e5977a00788/packages/texlive-wadalab-svn42428-71.fc40.noarch.rpm: Fread failed: Input/output error
Problem opening package texlive-wadalab-svn42428-71.fc40.noarch.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

I already tried dnf clean alland a reboot but it is always failing at a GPG check. Though this happens with different packages (before the above run I had the same error with gcc-14.2.1-3.fc40.x86_64.rpm).

What is going wrong here?

Check the amount of free disk space on /var please.
You may have filled the disk.

1 Like

The very first line when you enter the command
dnf system-upgrade download --releasever=41 gives a prompt suggesting that you first run dnf --refresh upgrade and asks for confirmation before continuing.

Did you perform the dnf --refresh upgrade command before running the dnf system-upgrade download command?

On my system it needed to download ~3500 packages so the question about filling the drive is very valid.

Thank you all for your quick responses. You were correct in pointing out disk space as the problem. I now allocated more space to the partition carrying /var and it worked!