It sounds like you attempted to upgrade your system and modules are still installed and enabled from 8. You can try to remove the module information in /etc/dnf/modules.d as well as remove/swap/upgrade the modular packages to what’s in 9, but I cannot guarantee it will work or fix your issue.
Upgrades are not supported. You are recommended to reinstall your system.
It’s a tragedy. me can only reinstall the operating system. All the original software can no longer be used… The newly installed ROCKY9 can be used. I thought it could be used after upgrading…
Rocky 9 (RL9) is a distinct distro separate from Rocky 8 (RL8). An “in-place conversion” has to:
Remove all programs of old distro
Install corresponding programs from new distro
Translate configuration to match the needs of the programs of the new distro
Keep user data
You would not try to convert Ubuntu 22.04 into Rocky 9 either, would you? Even though RL9 is somewhat similar to RL8, RL9 might not have obvious corresponding packages (particularly not third-party content) and automatic translation of all local customizations of configuration sounds very scary.
I thought so too. I have done the same. But the server always has some unexpected problems.
I have now asked the computer room to help me reinstall the operating system. I wasted a day and the result is that I cannot upgrade directly in the production environment.
For years now I have made installs so that there is unallocated space for the next, future install. Thus there is option for dual-boot setup, where it is possible to fall back to the previous distro.
Particularly in production there should be readiness to reinstall and restore; many things can go wrong in routine server and then you need to somehow restore the server. Configuration management systems help installing the same set of packages and deployment of same config. For user data you have to have backups, etc. (With virtual servers the create new instance is very common.)