I installed ROCKY8 and upgraded it to ROCKY9. Update error

I installed ROCKY8 and upgraded it to ROCKY9. Update error

dnf module disable python36 -y

Command. Also invalid

Don’t know how to deal with it. Because of their existence, I cannot reinstall the WEB software

[root@localhost ~]# dnf update
Last metadata expiration check: 0:52:24 ago on Sat 24 Sep 2022 01:23:17 PM CST.
Modular dependency problems:

Problem 1: conflicting requests

  • nothing provides module(platform:el8) needed by module httpd:2.4:8060020220622141024:d63f516d.x86_64
    Problem 2: conflicting requests
  • nothing provides module(platform:el8) needed by module llvm-toolset:rhel8:8060020220628150314:d63f516d.x86_64
    Problem 3: conflicting requests
  • nothing provides module(platform:el8) needed by module mysql:8.0:8040020210921213001:9f9e2e7e.x86_64
    Problem 4: conflicting requests
  • nothing provides module(platform:el8) needed by module nginx:1.14:8040020210610090123:9f9e2e7e.x86_64
    Problem 5: conflicting requests
  • nothing provides module(platform:el8) needed by module perl:5.26:8050020211109115414:b4937e53.x86_64
    Problem 6: conflicting requests
  • nothing provides module(platform:el8) needed by module perl-IO-Socket-SSL:2.066:8060020220513050719:bc93984d.x86_64
    Problem 7: conflicting requests
  • nothing provides module(platform:el8) needed by module perl-libwww-perl:6.34:8060020220513153220:9168a43d.x86_64
    Problem 8: conflicting requests
  • nothing provides module(platform:el8) needed by module php:7.2:8040020210530192442:02bae935.x86_64
    Problem 9: conflicting requests
  • nothing provides module(platform:el8) needed by module python36:3.6:8050020211109130820:982725ab.x86_64
    Problem 10: conflicting requests
  • nothing provides module(platform:el8) needed by module virt:rhel:8060020220913080029:d63f516d.x86_64
    Dependencies resolved.
    Nothing to do.
    Complete!
    [root@localhost ~]#

How can I uninstall these useless software packages.

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:

  1. Remove all programs of old distro
  2. Install corresponding programs from new distro
  3. Translate configuration to match the needs of the programs of the new distro
  4. 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.)

When I followed https://computingforgeeks.com/upgrade-to-rocky-linux-9-from-rocky-linux-8/
the important step after dnf module list, with dnf module disable [list]
is to list all the modules listed in the previous line in one line. I have done about 6 out of 6 upgrades successfully this way.