Created attachment 99 [details] 日志 工具: https://gitee.com/anolis/centos2anolis/raw/master/centos2anolis.py CentOS 7迁移Anolis OS 7 迁移命令: yum -y install python3 python3 centos2anolis.py -v 7.7 centos7全量安装的请况下,centos 7.* 迁移到 anolisos7.*或者是8.* ,均失败
[云上镜像][最小化][x86_64]centos7.x迁移至anolis7.7也有相同的问题 [简单描述] 在云上镜像,最小化环境中,centos7.x迁移至anolis7.7执行迁移脚本工具过程中,会回显输出依赖相关问题,但最终迁移还是可以成功的。 上述依赖问题具体涉及到的迁移对像如下 --------------------------------- CentOS 7.2 ->Anolis OS 7.7 (x86) CentOS 7.3 ->Anolis OS 7.7 (x86) CentOS 7.4 ->Anolis OS 7.7(x86) CentOS 7.5 ->Anolis OS 7.7(x86) CentOS 7.6 ->Anolis OS 7.7(x86) CentOS 7.7 ->Anolis OS 7.7(x86) --------------------------------- [报错日志截取] ---------------- 以CentOS 7.3迁移Anolis OS 7.7 为例 -------------------- Determining fastest mirrors Package matching basesystem-10.0-7.an7.noarch already installed. Checking for update. > --> Running transaction check ---> Package anolis-logos.noarch 0:7.0-1.2.an7 will be obsoleting ---> Package anolis-release.x86_64 0:7.7-5.an7 will be erased --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-30.el7_3.9.x86_64 --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: system-release = 7.7 for package: anolis-repos-7.7-5.an7.x86_64 --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: system-release for package: setup-2.8.71-7.el7.noarch ---> Package centos-indexhtml.noarch 0:7-9.el7.centos will be erased --> Processing Dependency: redhat-indexhtml for package: 1:nginx-1.20.1-9.el7.x86_64 ---> Package centos-logos.noarch 0:70.0.6-3.el7.centos will be erased ---> Package centos-logos.noarch 0:70.0.6-3.el7.centos will be obsoleted ---> Package grub2.x86_64 1:2.02-0.44.el7.centos will be updated ---> Package grub2.x86_64 1:2.02-0.44.el7.centos will be obsoleted ---> Package grub2.x86_64 1:2.02-0.87.1.an7 will be obsoleting --> Processing Dependency: grub2-pc = 1:2.02-0.87.1.an7 for package: 1:grub2-2.02-0.87.1.an7.x86_64 ---> Package grubby.x86_64 0:8.28-21.el7_3 will be updated ---> Package grubby.x86_64 0:8.28-26.0.1.an7 will be an update --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package initscripts.x86_64 0:9.49.37-1.el7_3.1 will be updated ---> Package initscripts.x86_64 0:9.49.53-1.an7 will be an update --> Processing Dependency: udev >= 125-1 for package: initscripts-9.49.53-1.an7.x86_64 --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: systemd for package: initscripts-9.49.53-1.an7.x86_64 --> Processing Dependency: systemd for package: initscripts-9.49.53-1.an7.x86_64 --> Processing Dependency: systemd for package: initscripts-9.49.53-1.an7.x86_64 ---> Package plymouth.x86_64 0:0.8.9-0.26.20140113.el7.centos will be updated ---> Package plymouth.x86_64 0:0.8.9-0.34.20140113.0.1.an7 will be an update --> Processing Dependency: plymouth-core-libs = 0.8.9-0.34.20140113.0.1.an7 for package: plymouth-0.8.9-0.34.20140113.0.1.an7.x86_64 --> Running transaction check ---> Package anolis-release.x86_64 0:7.7-5.an7 will be erased --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-78.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package anolis-repos.x86_64 0:7.7-5.an7 will be erased ---> Package grub2-pc.x86_64 1:2.02-0.87.1.an7 will be installed --> Processing Dependency: grub2-common = 1:2.02-0.87.1.an7 for package: 1:grub2-pc-2.02-0.87.1.an7.x86_64 --> Processing Dependency: grub2-pc-modules = 1:2.02-0.87.1.an7 for package: 1:grub2-pc-2.02-0.87.1.an7.x86_64 --> Processing Dependency: grub2-tools = 1:2.02-0.87.1.an7 for package: 1:grub2-pc-2.02-0.87.1.an7.x86_64 --> Processing Dependency: grub2-tools-extra = 1:2.02-0.87.1.an7 for package: 1:grub2-pc-2.02-0.87.1.an7.x86_64 --> Processing Dependency: grub2-tools-minimal = 1:2.02-0.87.1.an7 for package: 1:grub2-pc-2.02-0.87.1.an7.x86_64 ---> Package grubby.x86_64 0:8.28-26.0.1.an7 will be an update --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package initscripts.x86_64 0:9.49.53-1.an7 will be an update --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package nginx.x86_64 1:1.20.1-9.el7 will be erased ---> Package plymouth-core-libs.x86_64 0:0.8.9-0.26.20140113.el7.centos will be updated ---> Package plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.0.1.an7 will be an update ---> Package setup.noarch 0:2.8.71-7.el7 will be erased --> Processing Dependency: setup for package: 2:shadow-utils-4.1.5.1-24.el7.x86_64 ---> Package systemd.x86_64 0:219-30.el7_3.9 will be erased --> Processing Dependency: systemd = 219-30.el7_3.9 for package: systemd-sysv-219-30.el7_3.9.x86_64 ---> Package systemd.x86_64 0:219-30.el7_3.9 will be updated ---> Package systemd.x86_64 0:219-78.an7 will be an update --> Processing Dependency: systemd-libs = 219-78.an7 for package: systemd-219-78.an7.x86_64 --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-78.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: /usr/sbin/groupadd for package: systemd-219-78.an7.x86_64 --> Processing Dependency: libcryptsetup.so.12(CRYPTSETUP_2.0)(64bit) for package: systemd-219-78.an7.x86_64 --> Processing Dependency: libcryptsetup.so.12()(64bit) for package: systemd-219-78.an7.x86_64 --> Processing Dependency: liblz4.so.1()(64bit) for package: systemd-219-78.an7.x86_64 --> Running transaction check ---> Package anolis-release.x86_64 0:7.7-5.an7 will be erased --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-78.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package cryptsetup-libs.x86_64 0:1.7.2-1.el7 will be updated ---> Package cryptsetup-libs.x86_64 0:2.0.3-6.an7 will be an update ---> Package grub2-common.noarch 1:2.02-0.87.1.an7 will be installed ---> Package grub2-pc-modules.noarch 1:2.02-0.87.1.an7 will be installed ---> Package grub2-tools.x86_64 1:2.02-0.44.el7.centos will be obsoleted ---> Package grub2-tools.x86_64 1:2.02-0.44.el7.centos will be updated ---> Package grub2-tools.x86_64 1:2.02-0.87.1.an7 will be obsoleting ---> Package grub2-tools-extra.x86_64 1:2.02-0.87.1.an7 will be obsoleting ---> Package grub2-tools-minimal.x86_64 1:2.02-0.87.1.an7 will be obsoleting ---> Package grubby.x86_64 0:8.28-26.0.1.an7 will be an update --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package initscripts.x86_64 0:9.49.53-1.an7 will be an update --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package lz4.x86_64 0:1.8.3-1.an7 will be installed ---> Package shadow-utils.x86_64 2:4.1.5.1-24.el7 will be updated ---> Package shadow-utils.x86_64 2:4.1.5.1-24.el7 will be erased ---> Package shadow-utils.x86_64 2:4.6-5.an7 will be an update --> Processing Dependency: setup for package: 2:shadow-utils-4.6-5.an7.x86_64 ---> Package systemd.x86_64 0:219-78.an7 will be an update --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-78.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package systemd-libs.x86_64 0:219-30.el7_3.9 will be updated --> Processing Dependency: systemd-libs = 219-30.el7_3.9 for package: libgudev1-219-30.el7_3.9.x86_64 ---> Package systemd-libs.x86_64 0:219-78.an7 will be an update ---> Package systemd-sysv.x86_64 0:219-30.el7_3.9 will be updated ---> Package systemd-sysv.x86_64 0:219-78.an7 will be an update --> Running transaction check ---> Package anolis-release.x86_64 0:7.7-5.an7 will be erased --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-78.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Processing Dependency: system-release for package: setup-2.8.71-11.an7.noarch Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package grubby.x86_64 0:8.28-26.0.1.an7 will be an update --> Processing Dependency: system-release for package: grubby-8.28-26.0.1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package initscripts.x86_64 0:9.49.53-1.an7 will be an update --> Processing Dependency: redhat-release for package: initscripts-9.49.53-1.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package libgudev1.x86_64 0:219-30.el7_3.9 will be updated ---> Package libgudev1.x86_64 0:219-78.an7 will be an update ---> Package setup.noarch 0:2.8.71-7.el7 will be updated ---> Package setup.noarch 0:2.8.71-7.el7 will be erased ---> Package setup.noarch 0:2.8.71-11.an7 will be an update --> Processing Dependency: system-release for package: setup-2.8.71-11.an7.noarch Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed ---> Package systemd.x86_64 0:219-78.an7 will be an update --> Processing Dependency: redhat-release >= 7.0 for package: systemd-219-78.an7.x86_64 Package centos-release-7-9.2009.0.el7.centos.x86_64 is obsoleted by anolis-release-7.7-5.an7.x86_64 which is already installed --> Finished Dependency Resolution Error: Package: initscripts-9.49.53-1.an7.x86_64 (updates) Requires: redhat-release Removing: anolis-release-7.7-5.an7.x86_64 (installed) redhat-release = 7.7 Available: anolis-release-7.7-1.an7.x86_64 (os) redhat-release = 7.7 Available: anolis-release-7.7-2.an7.x86_64 (os) redhat-release = 7.7 Available: anolis-release-7.7-3.an7.x86_64 (os) redhat-release = 7.7 Available: anolis-release-7.7-4.an7.x86_64 (os) redhat-release = 7.7 Available: centos-release-7-9.2009.0.el7.centos.x86_64 (updates) redhat-release = 7.9-3 Error: Package: grubby-8.28-26.0.1.an7.x86_64 (os) Requires: system-release Removing: anolis-release-7.7-5.an7.x86_64 (installed) system-release = 7.7-5.an7 Available: anolis-release-7.7-1.an7.x86_64 (os) system-release = 7.7-1.an7 Available: anolis-release-7.7-2.an7.x86_64 (os) system-release = 7.7-2.an7 Available: anolis-release-7.7-3.an7.x86_64 (os) system-release = 7.7-3.an7 Available: anolis-release-7.7-4.an7.x86_64 (os) system-release = 7.7-4.an7 Available: centos-release-7-9.2009.0.el7.centos.x86_64 (updates) system-release = 7.9-3 Error: Package: systemd-219-78.an7.x86_64 (updates) Requires: redhat-release >= 7.0 Removing: anolis-release-7.7-5.an7.x86_64 (installed) redhat-release = 7.7 Available: anolis-release-7.7-1.an7.x86_64 (os) redhat-release = 7.7 Available: anolis-release-7.7-2.an7.x86_64 (os) redhat-release = 7.7 Available: anolis-release-7.7-3.an7.x86_64 (os) redhat-release = 7.7 Available: anolis-release-7.7-4.an7.x86_64 (os) redhat-release = 7.7 Available: centos-release-7-9.2009.0.el7.centos.x86_64 (updates) redhat-release = 7.9-3 Error: Package: setup-2.8.71-11.an7.noarch (updates) Requires: system-release Removing: anolis-release-7.7-5.an7.x86_64 (installed) system-release = 7.7-5.an7 Available: anolis-release-7.7-1.an7.x86_64 (os) system-release = 7.7-1.an7 Available: anolis-release-7.7-2.an7.x86_64 (os) system-release = 7.7-2.an7 Available: anolis-release-7.7-3.an7.x86_64 (os) system-release = 7.7-3.an7 Available: anolis-release-7.7-4.an7.x86_64 (os) system-release = 7.7-4.an7 Available: centos-release-7-9.2009.0.el7.centos.x86_64 (updates) system-release = 7.9-3 > Leaving Shell [复现步骤] #下载迁移脚本: wget https://gitee.com/anolis/centos2anolis/raw/master/centos2anolis.py #安装迁移脚本运行依赖: yum -y install python3 python3 centos2anolis.py -v 7.7
(In reply to wanqian from comment #0) > Created attachment 99 [details] > 日志 > > 工具: https://gitee.com/anolis/centos2anolis/raw/master/centos2anolis.py > > CentOS 7迁移Anolis OS 7 > 迁移命令: > yum -y install python3 > python3 centos2anolis.py -v 7.7 > > > > centos7全量安装的请况下,centos 7.* 迁移到 anolisos7.*或者是8.* ,均失败 这个附件中提示的 错误:软件包:postgresql-docs-9.2.24-1.el7_5.x86_64 (@anaconda) 需要:postgresql(x86-64) = 9.2.24-1.el7_5 正在删除: postgresql-9.2.24-1.el7_5.x86_64 (@anaconda) postgresql(x86-64) = 9.2.24-1.el7_5 更新,由: postgresql-9.2.24-4.an7.x86_64 (updates) postgresql(x86-64) = 9.2.24-4.an7 可用: postgresql-9.2.24-2.an7.x86_64 (os) postgresql(x86-64) = 9.2.24-2.an7 anolis7.7的源上未提供postgresql-docs。 错误:软件包:keepalived-1.3.5-19.an7.x86_64 (updates) 需要:ipset-libs >= 7.1 正在删除: ipset-libs-7.1-1.el7.x86_64 (@anaconda) ipset-libs = 7.1-1.el7 降级,由: ipset-libs-6.38-2.an7.x86_64 (os) ipset-libs = 6.38-2.an7 这个提示需要ipset-libs >= 7.1,我看koji上已有7.1版本,是否是7.9的版本?
这是7.7的版本,根据日志,是,需要降级 ipset-libs 错误:软件包:ipset-7.1-1.el7.x86_64 (@anaconda) 需要:ipset-libs(x86-64) = 7.1-1.el7 正在删除: ipset-libs-7.1-1.el7.x86_64 (@anaconda) ipset-libs(x86-64) = 7.1-1.el7 降级,由: ipset-libs-6.38-2.an7.x86_64 (os) ipset-libs(x86-64) = 6.38-2.an7 您可以尝试添加 --skip-broken 选项来解决该问题 您可以尝试执行:rpm -Va --nofiles --nodigest # yum downgrade ipset-libs-6.38-2.an7
(In reply to wanqian from comment #3) > 这是7.7的版本,根据日志,是,需要降级 ipset-libs > > > 错误:软件包:ipset-7.1-1.el7.x86_64 (@anaconda) > 需要:ipset-libs(x86-64) = 7.1-1.el7 > 正在删除: ipset-libs-7.1-1.el7.x86_64 (@anaconda) > ipset-libs(x86-64) = 7.1-1.el7 > 降级,由: ipset-libs-6.38-2.an7.x86_64 (os) > ipset-libs(x86-64) = 6.38-2.an7 > 您可以尝试添加 --skip-broken 选项来解决该问题 > 您可以尝试执行:rpm -Va --nofiles --nodigest > > > # yum downgrade ipset-libs-6.38-2.an7 那就是anolis7.7的源为什么没有与centos7.7一样提供ipset-7.1的包呢?
(In reply to xuchunmei from comment #4) > (In reply to wanqian from comment #3) > > 这是7.7的版本,根据日志,是,需要降级 ipset-libs > > > > > > 错误:软件包:ipset-7.1-1.el7.x86_64 (@anaconda) > > 需要:ipset-libs(x86-64) = 7.1-1.el7 > > 正在删除: ipset-libs-7.1-1.el7.x86_64 (@anaconda) > > ipset-libs(x86-64) = 7.1-1.el7 > > 降级,由: ipset-libs-6.38-2.an7.x86_64 (os) > > ipset-libs(x86-64) = 6.38-2.an7 > > 您可以尝试添加 --skip-broken 选项来解决该问题 > > 您可以尝试执行:rpm -Va --nofiles --nodigest > > > > > > # yum downgrade ipset-libs-6.38-2.an7 > > 那就是anolis7.7的源为什么没有与centos7.7一样提供ipset-7.1的包呢? http://mirrors.openanolis.cn/anolis/7.7/os/x86_64/os/Packages/ ipset 确实是6.38-2的版本
(In reply to wanqian from comment #5) > (In reply to xuchunmei from comment #4) > > (In reply to wanqian from comment #3) > > > 这是7.7的版本,根据日志,是,需要降级 ipset-libs > > > > > > > > > 错误:软件包:ipset-7.1-1.el7.x86_64 (@anaconda) > > > 需要:ipset-libs(x86-64) = 7.1-1.el7 > > > 正在删除: ipset-libs-7.1-1.el7.x86_64 (@anaconda) > > > ipset-libs(x86-64) = 7.1-1.el7 > > > 降级,由: ipset-libs-6.38-2.an7.x86_64 (os) > > > ipset-libs(x86-64) = 6.38-2.an7 > > > 您可以尝试添加 --skip-broken 选项来解决该问题 > > > 您可以尝试执行:rpm -Va --nofiles --nodigest > > > > > > > > > # yum downgrade ipset-libs-6.38-2.an7 > > > > 那就是anolis7.7的源为什么没有与centos7.7一样提供ipset-7.1的包呢? > > > > http://mirrors.openanolis.cn/anolis/7.7/os/x86_64/os/Packages/ ipset > 确实是6.38-2的版本 http://mirrors.aliyun.com/centos-vault/7.7.1908/os/x86_64/Packages/ipset-7.1-1.el7.x86_64.rpm centos7.7的源上是7.1
请确认为什么centos7.7的ipset版本为7.1而anolis7.7上ipset版本为6.38
anolis7.7上ipset版本为7.1,请确认配置的源地址是否正确。 postgresql-docs已经更新到源中https://mirrors.openanolis.cn/anolis/7.9/os/
(In reply to 杨晓旋 from comment #8) > anolis7.7上ipset版本为7.1,请确认配置的源地址是否正确。 > postgresql-docs已经更新到源中https://mirrors.openanolis.cn/anolis/7.9/os/ anolis7.7 repo ipset的地址: https://mirrors.openanolis.cn/anolis/7.7/os/x86_64/os/Packages/ipset-6.38-2.an7.x86_64.rpm 没有看到7.1的版本。
done
*** Bug 332 has been marked as a duplicate of this bug. ***