Migration from Redhat8 to Rocky fails during repository check

I’m trying to migrate my Redhat 8.7 Machine to Rocky. Howver it fails on line 446 with the error:

./migrate2rocky.sh -r
migrate2rocky - Begin logging at Thu 29 Jun 2023 11:25:26 AM CEST.

Updating Subscription Management repositories.

Removing dnf cache
Preparing to migrate Red Hat Enterprise Linux 8.7 (Ootpa) to Rocky Linux 8.

Determining repository names for Red Hat Enterprise Linux 8.7 (Ootpa)......

Found the following repositories which map from Red Hat Enterprise Linux 8.7 (Ootpa) to Rocky Linux 8:


Getting system package names for Red Hat Enterprise Linux 8.7 (Ootpa)./migrate2rocky.sh: line 446: repoinfo_results_cache: bad array subscript
Error: Unknown repo: ''

Failed to fetch info for repository .

An error occurred while we were attempting to convert your system to Rocky Linux. Your system may be unstable. Script will now exit to prevent possible damage.

 A log of this installation can be found at /var/log/migrate2rocky.log

It seems that no repositories are found.

1 Like