centos7.9迁移openEuler22.03-LTS-SP3报错

第三阶段升级报错,有些包好像不兼容,需要如何处理?是要加什么参数还是怎么手工处理下?

Error:

Problem: 安装的软件包的问题 perf-3.10.0-1160.el7.x86_64

  • 无法为软件包安装最佳更新候选 perf-3.10.0-1160.el7.x86_64

  • 无法为软件包安装最佳更新候选 trace-cmd-2.7.0-3.el7.x86_64

  • 安装的软件包的问题 trace-cmd-2.7.0-3.el7.x86_64

  • 软件包 trace-cmd-2.9.2-9.oe2203sp3.x86_64 需要 libtraceevent.so.1()(64bit),但没有提供者可以被安装

  • 软件包 libtraceevent-1.2.1-3.oe2203sp3.x86_64 与 perf(由 perf-5.10.0-215.0.0.119.oe2203sp3.x86_64 提供)冲突

  • 软件包 perf-3.10.0-1160.el7.x86_64 需要 libpython2.7.so.1.0()(64bit),但没有提供者可以被安装

  • 软件包 python-libs-2.7.5-89.el7.x86_64 需要 libgdbm.so.4()(64bit),但没有提供者可以被安装

  • 无法为软件包安装最佳更新候选 gdbm-1.10-8.el7.x86_64

  • 无法同时安装 gdbm-1:1.22-11.oe2203sp3.x86_64 和 gdbm-1.10-8.el7.x86_64

(try to add ‘–nobest’ to use not only best candidate packages)

全部日志如下:
验证中 : openresty-openssl111-asan-1.1.1h-3.oe2203sp3.x86_64 135/138

验证中 : 2:libpng-1.6.38-2.oe2203sp3.x86_64 136/138

验证中 : brotli-1.0.9-3.oe2203sp3.x86_64 137/138

验证中 : python3-gpgme-1.16.0-3.oe2203sp3.x86_64 138/138

已安装:

deltarpm.x86_64 0:3.6.3-2.oe2203sp3

libmodulemd.x86_64 0:2.13.0-3.oe2203sp3

libreport-filesystem.noarch 0:2.15.2-4.oe2203sp3

python3-gpgme.x86_64 0:1.16.0-3.oe2203sp3

python3-hawkey.x86_64 0:0.69.0-9.oe2203sp3

python3-libcomps.x86_64 0:0.1.19-1.oe2203sp3

python3-libdnf.x86_64 0:0.69.0-9.oe2203sp3

python3-rpm.x86_64 0:4.17.0-33.oe2203sp3

systemd.x86_64 0:249-80.oe2203sp3

util-linux.x86_64 0:2.37.2-33.oe2203sp3

作为依赖被安装:

acl.x86_64 0:2.3.1-2.oe2203sp3

attr.x86_64 0:2.5.1-4.oe2203sp3

audit-libs.x86_64 1:3.0.1-11.oe2203sp3

basesystem.noarch 0:12-3.oe2203sp3

bash.x86_64 0:5.1.8-14.oe2203sp3

bc.x86_64 0:1.07.1-12.oe2203sp3

brotli.x86_64 0:1.0.9-3.oe2203sp3

bzip2.x86_64 0:1.0.8-6.oe2203sp3

ca-certificates.noarch 0:2023.2.60-2.oe2203sp3

chkconfig.x86_64 0:1.21-1.oe2203sp3

coreutils.x86_64 0:9.0-12.oe2203sp3

cracklib.x86_64 0:2.9.8-2.oe2203sp3

crontabs.noarch 0:1.11-23.oe2203sp3

crypto-policies.noarch 0:20200619-3.git781bbd4.oe2203sp3

curl.x86_64 0:7.79.1-28.oe2203sp3

cyrus-sasl-lib.x86_64 0:2.1.28-1.oe2203sp3

e2fsprogs.x86_64 0:1.46.4-24.oe2203sp3

elfutils.x86_64 0:0.185-18.oe2203sp3

expat.x86_64 0:2.4.1-11.oe2203sp3

file-libs.x86_64 0:5.41-3.oe2203sp3

filesystem.x86_64 0:3.16-5.oe2203sp3

fuse.x86_64 0:2.9.9-11.oe2203sp3

fuse-common.x86_64 0:3.10.5-6.oe2203sp3

gawk.x86_64 0:5.1.1-5.oe2203sp3

gdbm.x86_64 1:1.22-11.oe2203sp3

glib2.x86_64 0:2.72.2-14.oe2203sp3

glibc.x86_64 0:2.34-150.oe2203sp3

glibc-common.x86_64 0:2.34-150.oe2203sp3

gmp.x86_64 1:6.2.1-3.oe2203sp3

gnupg2.x86_64 0:2.2.32-5.oe2203sp3

gnutls.x86_64 0:3.7.2-14.oe2203sp3

gpgme.x86_64 0:1.16.0-3.oe2203sp3

grep.x86_64 0:3.7-9.oe2203sp3

gzip.x86_64 0:1.12-1.oe2203sp3

ima-evm-utils-libs.x86_64 0:1.3.2-9.oe2203sp3

info.x86_64 0:6.8-4.oe2203sp3

json-c.x86_64 0:0.16-4.oe2203sp3

keyutils-libs.x86_64 0:1.6.3-4.oe2203sp3

kmod-libs.x86_64 0:29-8.oe2203sp3

krb5-libs.x86_64 0:1.19.2-11.oe2203sp3

libacl.x86_64 0:2.3.1-2.oe2203sp3

libarchive.x86_64 0:3.5.2-7.oe2203sp3

libassuan.x86_64 0:2.5.5-3.oe2203sp3

libblkid.x86_64 0:2.37.2-33.oe2203sp3

libcap.x86_64 0:2.61-6.oe2203sp3

libcap-ng.x86_64 0:0.8.3-1.oe2203sp3

libcomps.x86_64 0:0.1.19-1.oe2203sp3

libcurl.x86_64 0:7.79.1-28.oe2203sp3

libdnf.x86_64 0:0.69.0-9.oe2203sp3

libev.x86_64 0:4.33-4.oe2203sp3

libevent.x86_64 0:2.1.12-7.oe2203sp3

libfdisk.x86_64 0:2.37.2-33.oe2203sp3

libffi.x86_64 0:3.4.2-8.oe2203sp3

libgcc.x86_64 0:10.3.1-53.oe2203sp3

libgcrypt.x86_64 0:1.10.2-1.oe2203sp3

libgomp.x86_64 0:10.3.1-53.oe2203sp3

libgpg-error.x86_64 0:1.46-1.oe2203sp3

libidn2.x86_64 0:2.3.2-3.oe2203sp3

libksba.x86_64 0:1.6.4-1.oe2203sp3

libmount.x86_64 0:2.37.2-33.oe2203sp3

libnghttp2.x86_64 0:1.46.0-6.oe2203sp3

libnsl2.x86_64 0:2.0.0-5.oe2203sp3

libpng.x86_64 2:1.6.38-2.oe2203sp3

libpsl.x86_64 0:0.21.1-7.oe2203sp3

libpwquality.x86_64 0:1.4.5-1.oe2203sp3

librepo.x86_64 0:1.14.2-4.oe2203sp3

libseccomp.x86_64 0:2.5.3-5.oe2203sp3

libselinux.x86_64 0:3.3-5.oe2203sp3

libsemanage.x86_64 0:3.3-5.oe2203sp3

libsepol.x86_64 0:3.3-5.oe2203sp3

libsigsegv.x86_64 0:2.14-1.oe2203sp3

libsmartcols.x86_64 0:2.37.2-33.oe2203sp3

libsolv.x86_64 0:0.7.22-2.oe2203sp3

libssh.x86_64 0:0.9.6-8.oe2203sp3

libstdc++.x86_64 0:10.3.1-53.oe2203sp3

libtasn1.x86_64 0:4.19.0-1.oe2203sp3

libtirpc.x86_64 0:1.3.2-4.oe2203sp3

libunistring.x86_64 0:1.0-3.oe2203sp3

libutempter.x86_64 0:1.2.1-3.oe2203sp3

libuuid.x86_64 0:2.37.2-33.oe2203sp3

libverto.x86_64 0:0.3.2-3.oe2203sp3

libxcrypt.x86_64 0:4.4.26-5.oe2203sp3

libxml2.x86_64 0:2.9.14-13.oe2203sp3

libyaml.x86_64 0:0.2.5-6.oe2203sp3

logrotate.x86_64 0:3.20.1-2.oe2203sp3

lua.x86_64 0:5.4.3-11.oe2203sp3

lz4.x86_64 0:1.9.3-3.oe2203sp3

mpfr.x86_64 0:4.1.0-2.oe2203sp3

ncurses.x86_64 0:6.3-15.oe2203sp3

ncurses-base.noarch 0:6.3-15.oe2203sp3

ncurses-libs.x86_64 0:6.3-15.oe2203sp3

nettle.x86_64 0:3.8.1-1.oe2203sp3

newt.x86_64 0:0.52.23-1.oe2203sp3

npth.x86_64 0:1.6-3.oe2203sp3

openEuler-gpg-keys.x86_64 0:1.0-3.6.oe2203sp3

openEuler-release.x86_64 0:22.03LTS_SP3-57.oe2203sp3

openEuler-repos.x86_64 0:1.0-3.6.oe2203sp3

openldap.x86_64 0:2.6.0-7.oe2203sp3

openresty-openssl111-asan.x86_64 0:1.1.1h-3.oe2203sp3

openresty-zlib-asan.x86_64 0:1.2.11-14.oe2203sp3

openssl-libs.x86_64 1:1.1.1wa-7.oe2203sp3

p11-kit.x86_64 0:0.24.0-2.oe2203sp3

p11-kit-trust.x86_64 0:0.24.0-2.oe2203sp3

pam.x86_64 0:1.5.2-8.oe2203sp3

pcre2.x86_64 0:10.39-10.oe2203sp3

pkgconf.x86_64 0:1.8.0-3.oe2203sp3

popt.x86_64 0:1.18-3.oe2203sp3

publicsuffix-list.noarch 0:20211113-3.oe2203sp3

python-pip-wheel.noarch 0:21.3.1-5.oe2203sp3

python-setuptools.noarch 0:59.4.0-5.oe2203sp3

python3.x86_64 0:3.9.9-28.oe2203sp3

readline.x86_64 0:8.1-3.oe2203sp3

rpm.x86_64 0:4.17.0-33.oe2203sp3

rpm-libs.x86_64 0:4.17.0-33.oe2203sp3

sed.x86_64 0:4.8-6.oe2203sp3

setup.noarch 0:2.13.9.1-1.oe2203sp3

shadow.x86_64 2:4.9-14.oe2203sp3

slang.x86_64 0:2.3.3-2.oe2203sp3

sqlite.x86_64 0:3.37.2-7.oe2203sp3

systemd-libs.x86_64 0:249-80.oe2203sp3

tcl.x86_64 1:8.6.12-4.oe2203sp3

tpm2-tss.x86_64 0:3.1.0-5.oe2203sp3

tzdata.noarch 0:2022a-18.oe2203sp3

unbound-libs.x86_64 0:1.13.2-11.oe2203sp3

which.x86_64 0:2.21-15.oe2203sp3

xz-libs.x86_64 0:5.2.5-3.oe2203sp3

zlib.x86_64 0:1.2.11-24.oe2203sp3

zstd.x86_64 0:1.5.0-4.oe2203sp3

完毕!

已加载插件:fastestmirror, langpacks, priorities, product-id, search-disabled-repos,

: subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

正在清理软件源: local-repo openEuler-EPOL openEuler-everything openEuler-update

[ INFO ] - [initramfs]: start to remove conflict rpm in sut.conf

[ INFO ] - [initramfs]: remove adwaita-gtk2-theme-3.28-2.el7.x86_64

[ INFO ] - [initramfs]: remove system-config-printer-libs-1.4.1-23.el7.noarch

[ INFO ] - [initramfs]: remove centos-release-7-9.2009.0.el7.centos.x86_64

[ INFO ] - [initramfs]: remove python-chardet-2.2.1-3.el7.noarch

[ INFO ] - [initramfs]: remove python-2.7.5-89.el7.x86_64

[ INFO ] - [initramfs]: remove sg3_utils-1.37-19.el7.x86_64

[ INFO ] - [initramfs]: remove libstoragemgmt-python-1.8.1-1.el7.noarch

[ INFO ] - [initramfs]: remove python-cups-1.9.63-6.el7.x86_64

[ INFO ] - [initramfs]: remove system-config-printer-udev-1.4.1-23.el7.x86_64

[ INFO ] - [initramfs]: remove qemu-kvm-common-1.5.3-175.el7.x86_64

[ INFO ] - [initramfs]: remove centos-logos-70.0.6-3.el7.centos.noarch

[ INFO ] - [initramfs]: remove gnome-themes-standard-3.28-2.el7.x86_64

[ INFO ] - [initramfs]: remove NetworkManager-glib-1.18.8-1.el7.x86_64

[ INFO ] - [initramfs]: start upgrade your system by dnf

[ INFO ] - [initramfs]: start construct dnf

[ INFO ] - [initramfs]: replace yum to dnf.

[ INFO ] - [initramfs]: start to delete yum

[ INFO ] - [initramfs]: construct dnf in your system success

[ INFO ] - [initramfs]: your system will use dnf to upgrade.

[ INFO ] - [initramfs]: save_rpm= in sut.conf

[ INFO ] - [initramfs]: do dnf upgrade in upgrade stage

Unable to detect release version (use ‘–releasever’ to specify release version)

local-repo 26 MB/s | 2.0 MB 00:00

openEuler-everything 23 MB/s | 17 MB 00:00

openEuler-epol 21 MB/s | 4.7 MB 00:00

openEuler-update 23 MB/s | 22 MB 00:00

Error:

Problem: 安装的软件包的问题 perf-3.10.0-1160.el7.x86_64

  • 无法为软件包安装最佳更新候选 perf-3.10.0-1160.el7.x86_64

  • 无法为软件包安装最佳更新候选 trace-cmd-2.7.0-3.el7.x86_64

  • 安装的软件包的问题 trace-cmd-2.7.0-3.el7.x86_64

  • 软件包 trace-cmd-2.9.2-9.oe2203sp3.x86_64 需要 libtraceevent.so.1()(64bit),但没有提供者可以被安装

  • 软件包 libtraceevent-1.2.1-3.oe2203sp3.x86_64 与 perf(由 perf-5.10.0-215.0.0.119.oe2203sp3.x86_64 提供)冲突

  • 软件包 perf-3.10.0-1160.el7.x86_64 需要 libpython2.7.so.1.0()(64bit),但没有提供者可以被安装

  • 软件包 python-libs-2.7.5-89.el7.x86_64 需要 libgdbm.so.4()(64bit),但没有提供者可以被安装

  • 无法为软件包安装最佳更新候选 gdbm-1.10-8.el7.x86_64

  • 无法同时安装 gdbm-1:1.22-11.oe2203sp3.x86_64 和 gdbm-1.10-8.el7.x86_64

(try to add ‘–nobest’ to use not only best candidate packages)

[ ERROR ] - [initramfs]: dnf upgrade system error.

[ ERROR ] - [initramfs]: failed to upgrade your system.

[ ERROR ] - [initramfs]: failed to upgrade system.

[ ERROR ] - [x2openEuler-upgrade] - failed to upgrade system

[ ERROR ] - [centos2openEuler]: Upgrade migrate failed

2

##THE END##

你这个问题好像是源引起:
待升级节点是不是配置了 openEuler 22.03 SP3 的 repo 源,进 /etc/yum.repos.d/ 目录看一下待升级节点除了配置当前操做系统的 repo 源之外,不能配置任何 openEuler 的 repo 源
1、到待升级节点 /etc/yum.repos.d/将openEuler 源移走,只留当前系统源。
2、执行yum clean all && yum makecache
3、继续升级

/etc/yum.repos.d/ 下只有一个migrate-2203_copy.repo和migrate-backup文件夹,migrate-2203_copy.repo应该是迁移自动生成的,migrate-backup里面是之前的备份,里面有CentOS-Base.repo CentOS-fasttrack.repo CentOS-x86_64-kernel.repo
CentOS-Base.repo.backup CentOS-Media.repo docker-ce.repo
CentOS-CR.repo CentOS-Sources.repo
CentOS-Debuginfo.repo CentOS-Vault.repo

把这些源都移到备份目录下,yum清理下缓存,里边有的源会影响升级。我昨天升级跟你这情况一样,也是有这么多centos源,我直接移走,继续执行就ok了。

现在yum命令无法执行了
-bash: /usr/bin/yum: 没有那个文件或目录

只能回退,回退后要不能全删,要保留centos的源,没有centos的源,第一步检查就不通过

保留centos有用的源,回退后,重新升级。

回退只保留了一个CentOS-Base.repo
内容是

[base]
name=CentOS-$releasever - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/os/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/os/$basearch/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/updates/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/updates/$basearch/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/extras/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/extras/$basearch/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/centosplus/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/centosplus/$basearch/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/$releasever/contrib/$basearch/
http://mirrors.aliyuncs.com/centos/$releasever/contrib/$basearch/
http://mirrors.cloud.aliyuncs.com/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

依旧报那几个错
Error:

Problem: 安装的软件包的问题 perf-3.10.0-1160.el7.x86_64

  • 无法为软件包安装最佳更新候选 perf-3.10.0-1160.el7.x86_64

  • 无法为软件包安装最佳更新候选 trace-cmd-2.7.0-3.el7.x86_64

  • 安装的软件包的问题 trace-cmd-2.7.0-3.el7.x86_64

  • 软件包 trace-cmd-2.9.2-9.oe2203sp3.x86_64 需要 libtraceevent.so.1()(64bit),但没有提供者可以被安装

  • 软件包 libtraceevent-1.2.1-3.oe2203sp3.x86_64 与 perf(由 perf-5.10.0-215.0.0.119.oe2203sp3.x86_64 提供)冲突

  • 软件包 perf-3.10.0-1160.el7.x86_64 需要 libpython2.7.so.1.0()(64bit),但没有提供者可以被安装

  • 软件包 python-libs-2.7.5-89.el7.x86_64 需要 libgdbm.so.4()(64bit),但没有提供者可以被安装

  • 无法为软件包安装最佳更新候选 gdbm-1.10-8.el7.x86_64

  • 无法同时安装 gdbm-1:1.22-11.oe2203sp3.x86_64 和 gdbm-1.10-8.el7.x86_64

(try to add ‘–nobest’ to use not only best candidate packages)

[ ERROR ] - [initramfs]: dnf upgrade system error.

[ ERROR ] - [initramfs]: failed to upgrade your system.

[ ERROR ] - [initramfs]: failed to upgrade system.

[ ERROR ] - [x2openEuler-upgrade] - failed to upgrade system

[ ERROR ] - [centos2openEuler]: Upgrade migrate failed


这种还是源冲突了

先回退,重新初始化从头开始,前端页面只配euler源,/etc/yum.repo目录下把centos-base的源也移走,清理下源,然后升级试下。