Migration issues. Need help

Tried to migrate from CentOS 8.5 to AlmaLinux.
Following “dnf update -y”, downloaded and run almalinux-deploy.sh.

I received following errors:

 Problem 1: package libstdc++-devel-8.5.0-4.el8_5.alma.x86_64 requires libstdc++(x86-64) = 8.5.0-4.el8_5.alma, but none of the providers can be installed
  - cannot install both libstdc++-8.5.0-4.el8_5.x86_64 and libstdc++-8.5.0-4.el8_5.alma.x86_64
  - cannot install both libstdc++-8.5.0-4.el8_5.alma.x86_64 and libstdc++-8.5.0-4.el8_5.x86_64
  - cannot install the best update candidate for package libstdc++-devel-8.5.0-4.el8_5.alma.x86_64
  - cannot install the best update candidate for package libstdc++-8.5.0-4.el8_5.alma.x86_64
 Problem 2: libgcc-8.5.0-4.el8_5.alma.i686 has inferior architecture
  - package gcc-8.5.0-4.el8_5.alma.x86_64 requires libgcc >= 8.5.0-4.el8_5.alma, but none of the providers can be installed
  - cannot install both libgcc-8.5.0-4.el8_5.x86_64 and libgcc-8.5.0-4.el8_5.alma.x86_64
  - cannot install both libgcc-8.5.0-4.el8_5.alma.x86_64 and libgcc-8.5.0-4.el8_5.x86_64
  - cannot install the best update candidate for package libgcc-8.5.0-4.el8_5.alma.x86_64
  - cannot install the best update candidate for package gcc-8.5.0-4.el8_5.alma.x86_64
 Problem 3: problem with installed package gcc-8.5.0-4.el8_5.alma.x86_64
  - package gcc-8.5.0-4.el8_5.alma.x86_64 requires libgomp = 8.5.0-4.el8_5.alma, but none of the providers can be installed
  - libgomp-8.5.0-4.el8_5.alma.i686 has inferior architecture
  - package gcc-8.5.0-3.el8.x86_64 requires cpp = 8.5.0-3.el8, but none of the providers can be installed
  - package gcc-8.5.0-4.el8_5.x86_64 requires cpp = 8.5.0-4.el8_5, but none of the providers can be installed
  - package gcc-8.5.0-3.el8.alma.x86_64 requires cpp = 8.5.0-3.el8.alma, but none of the providers can be installed
  - cannot install both libgomp-8.5.0-4.el8_5.x86_64 and libgomp-8.5.0-4.el8_5.alma.x86_64
  - cannot install both libgomp-8.5.0-4.el8_5.alma.x86_64 and libgomp-8.5.0-4.el8_5.x86_64
  - cannot install both cpp-8.5.0-3.el8.x86_64 and cpp-8.5.0-4.el8_5.alma.x86_64
  - cannot install both cpp-8.5.0-4.el8_5.x86_64 and cpp-8.5.0-4.el8_5.alma.x86_64
  - cannot install both cpp-8.5.0-3.el8.alma.x86_64 and cpp-8.5.0-4.el8_5.alma.x86_64
  - cannot install the best update candidate for package libgomp-8.5.0-4.el8_5.alma.x86_64
  - cannot install the best update candidate for package cpp-8.5.0-4.el8_5.alma.x86_64
(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)

I tried “sudo dnf distro-sync -y” with --allowerasing and --skip-broken without any fix. Only option which works is --nobest option.

I would appreciate any help to fix it permanently.
Thank you.

Are you sure you are using the right steps? There is a demo on the ELevate page here that doesn’t seem to mention it.

I didn’t know elevate.

This is what I did:

  1. dnf update -y on CentOS 8.5
  2. Downloaded and run almalinux-deploy.sh
  3. The script output the errors given above.
  4. Tried “sudo dnf distro-sync -y --allowerasing” and “sudo dnf distro-sync -y --skip-broken” with no fix.
  5. “sudo dnf distro-sync -y --nobest” completed without any error.
  6. Reboot

By the way, “dnf update -y” gives no error.

Any problem if I leave it as it is?

Thanks.

I’m sorry but I can’t say for certain. My gut feeling, and only that, is that if you have a working Alma Linux pointing to the correct repositories then updates should work and eventually overwrite the problems. Looking at them from your first post most appear to be simply naming issues, not versions, though one or two are.

I hope someone can jump in here to say for certain. If they don’t (and please allow for global time differences), try posting on Mattermost which should get someone’s attention.

That looks like dnf sees two packages in enabled repositories:

  • libstdc++-8.5.0-4.el8_5.x86_64
  • libstdc++-8.5.0-4.el8_5.alma.x86_64

Logically, the migration should:

  1. Remove CentOS repo definitions
  2. Add Alma repo definitions
  3. Reinstall (distro-sync) installed packages

If the CentOS version of package is still visible, then CentOS repo is still accessible. Do you have custom mirrors / repo definitions?

The ELevate is for for major version hopping (EL7 → EL8), while the almalinux-deploy.sh is for horizontal sidegrade (el8.* → el8.alma).