CentOS Server Migration Issue

Issues related to applications and software problems
Yukon
Posts: 24
Joined: 2018/03/15 10:52:15

CentOS Server Migration Issue

Post by Yukon » 2018/03/15 10:54:59

Below is my target server and I must point out that the kernel is the same on both servers

Code: Select all

3.10.0-693.21.1.el7.x86_64
CentOS Linux release 7.4.1708 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.4.1708 (Core)
CentOS Linux release 7.4.1708 (Core)
I am trying to migrate my current CentOS 7 server to the new target server. So I made a copy of all the current installed software in pkglist.txt
I copied over to the new server the following
/etc/pki/rpm-gpg
/etc/yum
/etc/yum.repos.d
/etc/yum.conf
On the new server I then do

Code: Select all

yum install $(cat /root/pkglist.txt|xargs)
All goes well until it starts complaining about dependencies and it crashes to a halt with
Error: Package: libstdc++-devel-4.8.5-16.el7_4.1.x86_64 (updates)
Requires: libstdc++(x86-64) = 4.8.5-16.el7_4.1
Installed: libstdc++-4.8.5-16.el7_4.2.x86_64 (@centos-updates)
libstdc++(x86-64) = 4.8.5-16.el7_4.2
Available: libstdc++-4.8.5-16.el7.x86_64 (base)
libstdc++(x86-64) = 4.8.5-16.el7
Available: libstdc++-4.8.5-16.el7_4.1.x86_64 (updates)
libstdc++(x86-64) = 4.8.5-16.el7_4.1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have tried everything that I know and I cannot get past this problem. Has anyone else experienced it?
I really would appreciate some help with this.
Funnily enough a couple of weeks ago or so when I was testing the move I experienced no such errors at all!

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS Server Migration Issue

Post by TrevorH » 2018/03/15 15:01:31

The package it's complaining about was only released in the last few days and your copy of the updates repo doesn't seem to have the newer version, only the previous one.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Yukon
Posts: 24
Joined: 2018/03/15 10:52:15

Re: CentOS Server Migration Issue

Post by Yukon » 2018/03/15 16:33:40

Thanks for the reply would you happen to know a repo I could use that is up to date with what I need, please?

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: CentOS Server Migration Issue

Post by avij » 2018/03/15 16:37:22

yum clean all may also help.

Yukon
Posts: 24
Joined: 2018/03/15 10:52:15

Re: CentOS Server Migration Issue

Post by Yukon » 2018/03/15 16:39:27

avij wrote:yum clean all may also help.
Sadly it doesn't help at all.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: CentOS Server Migration Issue

Post by avij » 2018/03/15 16:49:04

Try running yum install libstdc++-devel and then run your larger yum install script.

If your pkglist has references to 4.8.5-16.el7_4.1, you may want to search&replace them to 4.8.5-16.el7_4.2.

Yukon
Posts: 24
Joined: 2018/03/15 10:52:15

Re: CentOS Server Migration Issue

Post by Yukon » 2018/03/15 17:54:52

avij wrote:Try running yum install libstdc++-devel and then run your larger yum install script.

If your pkglist has references to 4.8.5-16.el7_4.1, you may want to search&replace them to 4.8.5-16.el7_4.2.
Thank you I tried that and hoped for the best and it threw a new error at me.
Protected multilib versions: systemd-libs-219-42.el7_4.7.i686 != systemd-libs-219-42.el7_4.10.x86_64
It was all working fine a couple of weeks ago. It's really vexing to be hitting these walls.

Oh well looks like no one really knows how to solve this sadly. Thanks anyway.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: CentOS Server Migration Issue

Post by avij » 2018/03/15 18:37:58

The likely source of your problems is that the list of packages was generated on a server which has not been updated recently, and the new server where you are trying to install those packages already has newer versions of some of those packages installed.

You will end up in trouble if your list of packages contains version numbers. I'm assuming you got that list with a simple rpm -qa. Try rpm -qa --qf '%{NAME}.%{ARCH}\n' instead, which will produce a list of package names and their architectures, like psmisc.x86_64. Feeding this list to your target server gives yum more freedom to install the latest versions of those packages.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS Server Migration Issue

Post by TrevorH » 2018/03/15 18:52:02

Oh well looks like no one really knows how to solve this sadly. Thanks anyway.
Yeah, we do. You need to fix your mirror so it has the latest packages in it. Or you've disabled the updates repo so don't have the latest updates available when part of them is already installed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Yukon
Posts: 24
Joined: 2018/03/15 10:52:15

Re: CentOS Server Migration Issue

Post by Yukon » 2018/03/15 19:41:54

TrevorH wrote:
Oh well looks like no one really knows how to solve this sadly. Thanks anyway.
Yeah, we do. You need to fix your mirror so it has the latest packages in it. Or you've disabled the updates repo so don't have the latest updates available when part of them is already installed.
I have asked once for you to suggest a mirror but you ignored that. I'll ask again. Can you please suggest a mirror?

Post Reply