Unable to upgrade

Hello everyone,

I can’t upgrade Fedora 37 to Fedora 40. I’ve tried doing it from the terminal as well as from the Fedora “Software” store, but neither works.
Do you have any ideas on how to solve this problem? I want to upgrade from Fedora 37 to 40 keeping the data I currently have on the PC.

Thanks for your help

System upgrade is only officially supported and tested over 2 releases at most (e.g. from 38 to 40). If you need to upgrade over more releases, it is recommended to do it in several smaller steps (read more).

Upgrade to F39 first and then to 40.

Warning:

Back up your data before performing a system-wide upgrade as every system upgrade is potentially risky. As a precaution, download the Fedora Workstation Live image in the event something goes wrong.

3 Likes

Thank you for your response, however, my problem is also present if I try to update my Fedora to Fedora 39.

If the problem persists, I am thinking of deleting all my files and installing Fedora 40 on an empty disk.

Do you have some error message when you do it in the terminal, if yes please share them.

The recommended way is to upgrade one version at a time (though an upgrade of 2 versions is often possible.

Have you tried upgrating from f37 to f38?
Have you tried from the terminal as suggested with the link in post 2?

What messages are you getting?

If it refuses to update when using the dnf system-upgrade process there are usually messages about why it fails and those are necessary for us to assist in the solution. Often no useful messages are seen when attempting to use the gui to update.

The brave browser is not included in the upgrade process. Please remove and install after upgrade.

Please show us dnf repolist

Hello, thanks for your help. I already tried dnf system-upgrade, the message that i get is : error : the following arguments are required : [download|clean|reboot|upgrade|log]

i haven’t tried yet the from the terminal as suggested from the link post 2. I haven’t tried to upgrade from f37 to f38 because i don’t have this option when i go to “Software” the only version proposed is f39, and it didn’t worked neither with the terminal

F37 is end of live. If you want to upgrade you have to do it in the terminal … see the manual I posted … if you follow the commands I am sure you will be able to upgrade it.

ok, thanks for your help, i’ll try this, i do a backup of my files and i’ll do the update by using the manual. Thanks for your help, i’ll come back in few minutes to let you know if it worked

if you have any other advice let me know, thanks again for your help, i appreciate it

Read the instructions in the linked doc.

dnf upgrade --refresh
dnf system-upgrade download --releasever NN(where NN is the release version to download)
dnf system-upgrade reboot

done in that order and always verify errors in one step are fixed and that step properly completes before performing the next step

Those commands are step 1, step 2, and step 5 of the instructions and clearly shown.

EDIT:
I noted in the first image a message about no space on device.
Please post here the result of df -h as text that you copy & paste using the preformatted text button </> on the toolbar so it remains formatted as seen on screen.

Hi, i followed the steps as specified in the manual and did the update, and it worked well ! I only upgraded at the f38 because i didn’t want to break my computer by upgrading directly from f37 to f40. I’m gonna upgrade to f39 and then f40 by doing the same thing as the manual. I want to thank both of you for your help, you took the time to help me and I thank you for it, it’s very kind of you.

1 Like

one thing that surprises me is that I didn’t get a message specifying that I was on f38 I first noticed it thanks to the icons that had changed. Also, regarding the Optional post-upgrade tasks specified in the manual, do you recommend doing them?

i’ve done it and it worked well ! Thanks for your help. Regarding the Optional post-upgrade tasks specified in the manual, do you recommend doing them ?

When you do a sudo dnf repolist and everything is on the version as expected you should be all right.

An other check you can do is hostnamectlto see if it looks good. There you can also see when you should prepare for next upgrade.

Optional and only if necessary.

What about this issue?