rocky-tools icon indicating copy to clipboard operation
rocky-tools copied to clipboard

Trying to migrate to Rocky 8 from CentOS 8.5.2111

Open rpyne opened this issue 1 year ago • 4 comments

Trying to migrate my mail server to Rocky. Fortunately I made a full clone of the VM so at least I'm not completely dead in the water.

migrate2rocky - Begin logging at Mon 17 Apr 2023 01:00:38 AM MDT.

Removing dnf cache Preparing to migrate CentOS Linux 8 to Rocky Linux 8.

Determining repository names for CentOS Linux 8.Importing GPG key 0x5F11735A: Userid : "Remi's RPM repository [email protected]" Fingerprint: 6B38 FEA7 231F 87F5 2B9C A9D8 5550 9759 5F11 735A From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8 Importing GPG key 0x5F11735A: Userid : "Remi's RPM repository [email protected]" Fingerprint: 6B38 FEA7 231F 87F5 2B9C A9D8 5550 9759 5F11 735A From : /etc/pki/rpm-gpg/RPM-GPG-KEY-remi.el8 .....

Found the following repositories which map from CentOS Linux 8 to Rocky Linux 8: CentOS Linux 8 Rocky Linux 8 appstream appstream baseos baseos extras extras

Getting system package names for CentOS Linux 8..........

Found the following system packages which map from CentOS Linux 8 to Rocky Linux 8: CentOS Linux 8 Rocky Linux 8 centos-logos-ipa rocky-logos-ipa centos-backgrounds rocky-backgrounds centos-gpg-keys rocky-gpg-keys centos-logos rocky-logos centos-indexhtml rocky-indexhtml centos-linux-release rocky-release centos-logos-httpd rocky-logos-httpd centos-linux-repos rocky-repos

Getting list of installed system packages.

We will replace the following CentOS Linux 8 packages with their Rocky Linux 8 equivalents Packages to be Removed Packages to be Installed centos-gpg-keys rocky-gpg-keys centos-logos rocky-logos centos-linux-release rocky-release centos-logos-httpd rocky-logos-httpd centos-linux-repos rocky-repos

In addition to the above the following system packages will be removed: centos-linux-release centos-linux-release

Getting a list of enabled modules for the system repositories.

Excluding modules: libselinux-python:2.8

Found the following modules to re-enable at completion: httpd:2.4 mariadb:10.3 nginx:1.14 perl-DBD-MySQL:4.046 perl-DBD-SQLite:1.58 perl-DBI:1.641 perl-FCGI:0.78 perl-IO-Socket-SSL:2.066 perl-libwww-perl:6.34 perl:5.26 python36:3.6

Running dnf update before we attempt the migration. Last metadata expiration check: 0:02:01 ago on Mon Apr 17 01:01:52 2023. Error: Problem 1: cannot install the best update candidate for package clamav-0.103.5-1.el8.x86_64

  • nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-0.103.8-3.el8.x86_64 Problem 2: cannot install the best update candidate for package clamav-lib-0.103.5-1.el8.x86_64
  • nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.8-3.el8.x86_64 Problem 3: cannot install the best update candidate for package remi-release-8.5-2.el8.remi.noarch
  • nothing provides (redhat-release >= 8.7 or centos-stream-release >= 8) needed by remi-release-8.7-2.el8.remi.noarch Problem 4: package clamd-0.103.8-3.el8.x86_64 requires clamav-lib = 0.103.8-3.el8, but none of the providers can be installed
  • cannot install the best update candidate for package clamd-0.103.5-1.el8.x86_64
  • nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.8-3.el8.x86_64 Problem 5: package clamav-update-0.103.8-3.el8.x86_64 requires clamav-lib = 0.103.8-3.el8, but none of the providers can be installed
  • cannot install the best update candidate for package clamav-update-0.103.5-1.el8.x86_64
  • nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.8-3.el8.x86_64 Problem 6: package clamav-filesystem-0.103.8-3.el8.noarch conflicts with clamav < 0.103.8-3.el8 provided by clamav-0.103.5-1.el8.x86_64
  • problem with installed package clamav-0.103.5-1.el8.x86_64
  • cannot install the best update candidate for package clamav-filesystem-0.103.5-1.el8.noarch
  • nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-0.103.8-3.el8.x86_64 Problem 7: package fail2ban-server-1.0.2-3.el8.noarch requires (fail2ban-selinux if selinux-policy-targeted), but none of the providers can be installed
  • cannot install the best update candidate for package selinux-policy-targeted-3.14.3-80.el8_5.2.noarch
  • cannot install the best update candidate for package fail2ban-server-0.11.2-1.el8.noarch
  • nothing provides selinux-policy >= 3.14.3-108.el8_7.1 needed by fail2ban-selinux-1.0.2-3.el8.noarch
  • nothing provides selinux-policy-base >= 3.14.3-108.el8_7.1 needed by fail2ban-selinux-1.0.2-3.el8.noarch Problem 8: package clamd-0.103.5-1.el8.x86_64 requires clamav-filesystem = 0.103.5-1.el8, but none of the providers can be installed
  • cannot install both clamav-filesystem-0.103.8-3.el8.noarch and clamav-filesystem-0.103.5-1.el8.noarch
  • problem with installed package clamd-0.103.5-1.el8.x86_64
  • package clamav-milter-0.103.8-3.el8.x86_64 requires clamav-filesystem = 0.103.8-3.el8, but none of the providers can be installed
  • package clamd-0.103.8-3.el8.x86_64 requires clamav-lib = 0.103.8-3.el8, but none of the providers can be installed
  • cannot install the best update candidate for package clamav-milter-0.103.5-1.el8.x86_64
  • nothing provides libjson-c.so.4(JSONC_0.14)(64bit) needed by clamav-lib-0.103.8-3.el8.x86_64 Problem 9: problem with installed package selinux-policy-targeted-3.14.3-80.el8_5.2.noarch
  • package fail2ban-server-1.0.2-3.el8.noarch requires (fail2ban-selinux if selinux-policy-targeted), but none of the providers can be inst alled
  • package fail2ban-1.0.2-3.el8.noarch requires fail2ban-server = 1.0.2-3.el8, but none of the providers can be installed
  • cannot install the best update candidate for package fail2ban-0.11.2-1.el8.noarch
  • nothing provides selinux-policy >= 3.14.3-108.el8_7.1 needed by fail2ban-selinux-1.0.2-3.el8.noarch
  • nothing provides selinux-policy-base >= 3.14.3-108.el8_7.1 needed by fail2ban-selinux-1.0.2-3.el8.noarch (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Error running pre-update. Stopping now to avoid putting the system in an unstable state. Please correct the issues shown here and try again.

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

rpyne avatar Apr 17 '23 07:04 rpyne

It appears that there are certain 3rd-party repos that no longer work with CentOS 8.5 because they are expecting newer packages than those provided by that old release of CentOS, so it's causing the pre-update to fail.

The pre-update is done before any changes are made to your system so that a failed update will stop the migration before damage is done, your system should not need to be restored from your snapshot at this stage, but it's a good idea that you took one anyways.

Can you try this:

dnf repolist --enabled remi\* epel\* # make a note of the resulting repos
dnf config-manager --disable epel\* remi\*
migrate2rocky -r
dnf config-manager --enable <repos that you noted in the first step above>
dnf update

Let me know if it works, if so I'll make a change to migrate2rocky that I'd like you to test at that point as well.

pajamian avatar Apr 17 '23 08:04 pajamian

Thank you. Other than some file conflicts with ImageMagick, that worked perfectly. I had to remove ImageMagick and ImageMagick-libs and re-install them manually.

rpyne avatar Apr 21 '23 07:04 rpyne

Thanks for the feedback. I will work on an update that does these steps automatically and get back to you for testing.

pajamian avatar Apr 21 '23 10:04 pajamian

wow

junjie-cloud avatar May 09 '23 05:05 junjie-cloud