Upgrade from Fedora 29 to Fedora 31

Hello,
Would it be possible to upgrade a PC Fedora 29 to Fedora 31 with the dnf method ?

Best Regards.

myagfedora

1 Like

From Quick Docs:

However, for the first month or so after a new release, upgrades from the last-but-one release are ā€˜supported’ (N-2, where N is the current release).

5 Likes

Hello,
yes, this upgrade is supported and generally works without problems. Follow these steps:

  • Install the system-upgrade plugin, if you still do not have it: sudo dnf install python3-dnf-plugin-system-upgrade
  • Update your Fedora 29 to the latest versions: sudo dnf update --refresh
  • Fedora 29 has modularity switched on by default, if you have modules installed, upgrade may not be possible, because the modular streams might not have an update path. Check whether you have any modules installed: sudo dnf module list --installed
  • If so, you can still try to upgrade the system, but if that ends up with some dependency errors, reset each of the installed modules: sudo dnf module reset <modulename> → this will tell DNF to use a newer stream to upgrade the packages.
  • Download the packages: sudo dnf system-upgrade download --releasever=31
  • When you have downloaded the packages, you can do the final upgrade: sudo dnf system-upgrade reboot

After some time, your Fedora should be upgraded to the 31 version.

Hello,

Thans for your answer.
I have checked the module list with the command ā€œ|sudo dnf module list
–installedā€

and it seems that I have no modules installed.
Now I am stuck at this point : |sudo dnf system-upgrade download
–releasever=31|
It gives me the following error message:

[root@webkiosk2 ~]# dnf -y system-upgrade download --releasever=31
Adobe Systems Incorporated 9.4 kB/s | 2.9 kB 00:00
Fedora Modular 31 - i386 49 kB/s | 54 kB 00:01
Error: Failed to download metadata for repo ā€˜fedora-modular’: Cannot
prepare internal mirrorlist: Status code: 404 for
https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-31&arch=i386
https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-31&arch=i386

At this point, I cannot update my system from Fedora 29 to Fedora 31
Any help will be appreciated.
Best Regards.

Giuseppe Angelini

Hello,
you also should find out, whether you have some modules enabled with dnf module list --enabled. Let’s assume, that you do not.
The error you are getting suggests that there is something wrong with the modular repository, maybe it was not available in that particular time, or it was not fully synchronized. You could also repeat that action at some other time to see if it helps.
If not, you can disable modular repositories (on condition that no modules are installed or enabled) and then try to upgrade without modular informations, which should be possible, too.
You can disable the repos using dnf config-manager --disablerepo=\*modular\*.

@myagfedora
Just recently there was a similar issue that had repomd in the title. On that one the problem was that the OP was running an i386 machine on F30 and was trying to update to F31.

The solution was that ā€œYOU CAN’T DO THATā€.

F30 was the last release to support 32 bit architecture and those machines cannot do the upgrade to F31

Your post above with the error message

shows that your system is looking for an i386 architecture in F31 and with the removal of 32 bit support YOU CAN’T DO THAT.

If your hardware supports 64 bit but you are only running 32 bit then a new install of F31 should fix your problem. If you are on 32 bit hardware then you will need to stay at F30 or below, upgrade to 64 bit hardware, or switch to another distro that still supports 32 bit hardware with new releases.

The release notes here document the change.