yum update异常中断问题2

1、执行yum check命令
yum check报错

已加载插件:fastestmirror
32:bind-export-libs-9.11.4-26.P2.el7_9.5.x86_64 是 32:bind-export-libs-9.11.4-26.P2.el7_9.4.x86_64 的副本
7:device-mapper-1.02.170-6.el7_9.5.x86_64 是 7:device-mapper-1.02.170-6.el7_9.4.x86_64 的副本
7:device-mapper-libs-1.02.170-6.el7_9.5.x86_64 是 7:device-mapper-libs-1.02.170-6.el7_9.4.x86_64 的副本
firewalld-0.6.3-13.el7_9.noarch 是 firewalld-0.6.3-12.el7.noarch 的副本
firewalld-filesystem-0.6.3-13.el7_9.noarch 是 firewalld-filesystem-0.6.3-12.el7.noarch 的副本
glibc-common-2.17-323.el7_9.x86_64 有缺少的需求 glibc = ('0', '2.17', '323.el7_9')
glibc-common-2.17-324.el7_9.x86_64 是 glibc-common-2.17-323.el7_9.x86_64 的副本
glibc-devel-2.17-323.el7_9.x86_64 有缺少的需求 glibc = ('0', '2.17', '323.el7_9')
glibc-devel-2.17-324.el7_9.x86_64 是 glibc-devel-2.17-323.el7_9.x86_64 的副本
glibc-headers-2.17-323.el7_9.x86_64 有缺少的需求 glibc = ('0', '2.17', '323.el7_9')
glibc-headers-2.17-324.el7_9.x86_64 是 glibc-headers-2.17-323.el7_9.x86_64 的副本
kernel-headers-3.10.0-1160.25.1.el7.x86_64 是 kernel-headers-3.10.0-1160.24.1.el7.x86_64 的副本
kernel-tools-3.10.0-1160.25.1.el7.x86_64 是 kernel-tools-3.10.0-1160.24.1.el7.x86_64 的副本
kernel-tools-libs-3.10.0-1160.25.1.el7.x86_64 是 kernel-tools-libs-3.10.0-1160.24.1.el7.x86_64 的副本
kexec-tools-2.0.15-51.el7_9.2.x86_64 是 kexec-tools-2.0.15-51.el7_9.1.x86_64 的副本
libstdc++-4.8.5-44.el7.i686 有缺少的需求 ld-linux.so.2
libstdc++-4.8.5-44.el7.i686 有缺少的需求 ld-linux.so.2(GLIBC_2.3)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.0)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.1)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.1.3)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.2)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.3)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.3.2)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libc.so.6(GLIBC_2.4)
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libm.so.6
libstdc++-4.8.5-44.el7.i686 有缺少的需求 libm.so.6(GLIBC_2.0)
nss-3.53.1-7.el7_9.x86_64 是 nss-3.53.1-3.el7_9.x86_64 的副本
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.0)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.1)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.1.3)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.3)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.3.4)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libc.so.6(GLIBC_2.4)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libdl.so.2
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libdl.so.2(GLIBC_2.0)
nss-softokn-freebl-3.53.1-6.el7_9.i686 有缺少的需求 libdl.so.2(GLIBC_2.1)
nss-sysinit-3.53.1-7.el7_9.x86_64 是 nss-sysinit-3.53.1-3.el7_9.x86_64 的副本
nss-tools-3.53.1-7.el7_9.x86_64 是 nss-tools-3.53.1-3.el7_9.x86_64 的副本
openldap-2.4.44-23.el7_9.x86_64 是 openldap-2.4.44-22.el7.x86_64 的副本
python-firewall-0.6.3-13.el7_9.noarch 是 python-firewall-0.6.3-12.el7.noarch 的副本
python-perf-3.10.0-1160.25.1.el7.x86_64 是 python-perf-3.10.0-1160.24.1.el7.x86_64 的副本
错误:check all

2、执行package-cleanup –dupes列出重复的包
package-cleanup --dupes
已加载插件:fastestmirror
glibc-devel-2.17-323.el7_9.x86_64
glibc-devel-2.17-324.el7_9.x86_64
nss-tools-3.53.1-7.el7_9.x86_64
nss-tools-3.53.1-3.el7_9.x86_64
nss-sysinit-3.53.1-3.el7_9.x86_64
nss-sysinit-3.53.1-7.el7_9.x86_64
firewalld-filesystem-0.6.3-12.el7.noarch
firewalld-filesystem-0.6.3-13.el7_9.noarch
python-perf-3.10.0-1160.25.1.el7.x86_64
python-perf-3.10.0-1160.24.1.el7.x86_64
firewalld-0.6.3-12.el7.noarch
firewalld-0.6.3-13.el7_9.noarch
device-mapper-libs-1.02.170-6.el7_9.4.x86_64
device-mapper-libs-1.02.170-6.el7_9.5.x86_64
kexec-tools-2.0.15-51.el7_9.1.x86_64
kexec-tools-2.0.15-51.el7_9.2.x86_64
device-mapper-1.02.170-6.el7_9.5.x86_64
device-mapper-1.02.170-6.el7_9.4.x86_64
openldap-2.4.44-22.el7.x86_64
openldap-2.4.44-23.el7_9.x86_64
python-firewall-0.6.3-12.el7.noarch
python-firewall-0.6.3-13.el7_9.noarch
glibc-headers-2.17-323.el7_9.x86_64
glibc-headers-2.17-324.el7_9.x86_64
bind-export-libs-9.11.4-26.P2.el7_9.5.x86_64
bind-export-libs-9.11.4-26.P2.el7_9.4.x86_64
nss-3.53.1-3.el7_9.x86_64
nss-3.53.1-7.el7_9.x86_64
glibc-common-2.17-324.el7_9.x86_64
glibc-common-2.17-323.el7_9.x86_64

3、删除重复包
删除低版本的包
rpm -e --noscripts glibc-devel-2.17-323.el7_9.x86_64
rpm -e --noscripts nss-tools-3.53.1-3.el7_9.x86_64
rpm -e --noscripts nss-sysinit-3.53.1-3.el7_9.x86_64
rpm -e --noscripts firewalld-filesystem-0.6.3-12.el7.noarch
rpm -e --noscripts python-perf-3.10.0-1160.24.1.el7.x86_64
rpm -e --noscripts firewalld-0.6.3-12.el7.noarch
rpm -e --noscripts device-mapper-libs-1.02.170-6.el7_9.4.x86_64
rpm -e --noscripts kexec-tools-2.0.15-51.el7_9.1.x86_64
rpm -e --noscripts device-mapper-1.02.170-6.el7_9.4.x86_64
rpm -e --noscripts openldap-2.4.44-22.el7.x86_64
rpm -e --noscripts python-firewall-0.6.3-12.el7.noarch
rpm -e --noscripts glibc-headers-2.17-323.el7_9.x86_64
rpm -e --noscripts bind-export-libs-9.11.4-26.P2.el7_9.4.x86_64
rpm -e --noscripts nss-3.53.1-3.el7_9.x86_64
rpm -e --noscripts glibc-common-2.17-323.el7_9.x86_64