Hi
I’m trying to upgrade from centOS 7 to Rocky Linux 8. I referred to this tutorial https://www.dbi-services.com/blog/migrating-a-centos-7-ami-to-rocky-linux-8/, but encountered many problems:
====> * target_userspace_creator
Initializes a directory to be populated as a minimal environment to run binaries from the target system.
Rocky Linux 8 - ResilientStorage 0.0 B/s | 0 B 00:00
Rocky Linux 8 - PowerTools 0.0 B/s | 0 B 00:00
Rocky Linux 8 - Extras 0.0 B/s | 0 B 00:00
Rocky Linux 8 - AppStream 0.0 B/s | 0 B 00:00
Rocky Linux 8 - BaseOS 0.0 B/s | 0 B 00:00
Rocky Linux 8 - HighAvailability 0.0 B/s | 0 B 00:00
No match for argument: dnf
No match for argument: dnf-command(config-manager)
============================================================
ERRORS
============================================================
2023-12-18 10:48:02.231567 [ERROR] Actor: target_userspace_creator
Message: Unable to install RHEL 8 userspace packages.
Summary:
Details: Command ['systemd-nspawn', '--register=no', '--quiet', '-D', '/var/lib/leapp/scratch/mounts/root_/system_overlay', '--setenv=LEAPP_UPGRADE_PATH_TARGET_RELEASE=8.6', '--setenv=LEAPP_NO_RHSM=0', '--setenv=LEAPP_EXPERIMENTAL=0', '--setenv=LEAPP_UPGRADE_PATH_FLAVOUR=default', '--setenv=LEAPP_COMMON_TOOLS=:/etc/leapp/repos.d/system_upgrade/cloudlinux/tools:/etc/leapp/repos.d/system_upgrade/common/tools:/etc/leapp/repos.d/system_upgrade/el7toel8/tools', '--setenv=LEAPP_COMMON_FILES=:/etc/leapp/repos.d/system_upgrade/wp-toolkit/files:/etc/leapp/repos.d/system_upgrade/common/files:/etc/leapp/repos.d/system_upgrade/el7toel8/files', '--setenv=LEAPP_IPU_IN_PROGRESS=7to8', '--setenv=LEAPP_UNSUPPORTED=0', '--setenv=LEAPP_EXECUTION_ID=9e273ffa-a7ee-4034-9bcc-42c65e048b52', '--setenv=LEAPP_HOSTNAME=localhost.localdomain', 'dnf', 'install', '-y', '--nogpgcheck', '--setopt=module_platform_id=platform:el8', '--setopt=keepcache=1', '--releasever', u'8.6', '--installroot', '/el8target', '--disablerepo', '*', '--enablerepo', u'rocky8-appstream', '--enablerepo', u'rocky8-powertools', '--enablerepo', u'rocky8-baseos', '--enablerepo', u'rocky8-resilient-storage', '--enablerepo', u'rocky8-ha', '--enablerepo', u'rocky8-extras', 'dnf', 'dnf-command(config-manager)', '--disableplugin', 'subscription-manager'] failed with exit code 1.
Stderr: Host and machine ids are equal (5e9a8ac96e804881852f3b2d14d8a938): refusing to link journals
Failed to synchronize cache for repo 'rocky8-resilient-storage', ignoring this repo.
Failed to synchronize cache for repo 'rocky8-powertools', ignoring this repo.
Failed to synchronize cache for repo 'rocky8-extras', ignoring this repo.
Failed to synchronize cache for repo 'rocky8-appstream', ignoring this repo.
Failed to synchronize cache for repo 'rocky8-baseos', ignoring this repo.
Failed to synchronize cache for repo 'rocky8-ha', ignoring this repo.
Error: Unable to find a match: dnf dnf-command(config-manager)
============================================================
END OF ERRORS
============================================================
It seems that an error was encountered when downloading the Rocky Linux 8 repo. I tried directly copying the Rocky Linux 8 repo to the yum.repo.d directory, but other errors occurred as follows:
====> * rpm_scanner
Provides data about installed RPM Packages.
Loaded plugins: fastestmirror, langpacks
Repository extras is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-7 error was
14: HTTPS Error 404 - Not Found
Process Process-302:
Since I haven’t upgraded to Rocky Linux 8 yet, $releasever still points to version 7. How can I solve this problem?
Thanks to everyone who helped!