Migrate2rocky.sh fail

Hi
I am migrating from centos 8 to rocky 8.
After running migrate2rocky.sh, the following error occurred.

Is there any way to solve this?


cat /etc/redhat-release
CentOS Linux release 8.5.2111

/migrate2rocky.sh -r
migrate2rocky - Begin logging at Tue Apr 23 01:06:47 2024.

Error: Check discovered 3 problem(s)
initscripts-9.49.53-1.el7_9.1.x86_64 has missing requires of sysvinit-tools >= 2.87-5
iprutils-2.4.17.1-3.el7_7.x86_64 has missing requires of /sbin/pidof
kmod-kvdo-6.1.3.23-5.el7.x86_64 has installed conflict “kmod-kvdo”: kmod-kvdo-6.1.3.23-5.el7.x86_64

Errors found in dnf/rpm database. Please correct before running migrate2rocky.

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

This appears to be an upgraded system where you have leftover CentOS 7 packages. You can try to run dnf update to update those packages to the proper versions, however there is no guarantee this will work.

Upgraded systems are not supported. You are recommended to install a new system and migrate your data.

Thanks.
In the forum, there is a case of successful migration from centos to rocky.
However, migration is currently impossible.

  • centos stream => rocky, centos7=>rocky (X)
  • only centos 8 => rocky 8 (O) = package not supported

That was because it was a true CentOS 8 installation, and not a failed upgraded CentOS 7 installation that you posted about earlier. As already mentioned upgrading from CentOS 7 is unsupported, even if you upgrade to CentOS 8 first, since it’s still been upgraded from CentOS 7.