yum update 时断电或终止断开后报错副本

1。yum update 时断电或终止断开后报错副本

libusal-1.1.11-25.el7.x86_64 是 libusal-1.1.11-22.el7.x86_64 的副本
libusbx-1.0.21-1.el7.x86_64 是 libusbx-1.0.15-4.el7.x86_64 的副本
libuser-0.60-9.el7.x86_64 是 libuser-0.60-5.el7.x86_64 的副本
libuuid-2.23.2-61.el7_7.1.x86_64 是 libuuid-2.23.2-16.el7.x86_64 的副本
1:libvorbis-1.3.3-8.el7.1.x86_64 是 1:libvorbis-1.3.3-8.el7.x86_64 的副本
libxcb-1.13-1.el7.x86_64 是 libxcb-1.9-5.el7.x86_64 的副本
libxml2-2.9.1-6.el7_2.3.x86_64 是 libxml2-2.9.1-5.el7.x86_64 的副本
libxml2-python-2.9.1-6.el7_2.3.x86_64 是 libxml2-python-2.9.1-5.el7.x86_64 的副本
linux-firmware-20190429-72.gitddde598.el7.noarch 是 linux-firmware-20140213-0.3.git4164c23.el7.noarch 的副本
logrotate-3.8.6-17.el7.x86_64 是 logrotate-3.8.6-4.el7.x86_64 的副本
lsof-4.87-6.el7.x86_64 是 lsof-4.87-4.el7.x86_64 的副本
lsscsi-0.27-6.el7.x86_64 是 lsscsi-0.27-3.el7.x86_64 的副本
lua-5.1.4-15.el7.x86_64 是 lua-5.1.4-14.el7.x86_64 的副本

2。解决

package-cleanup --cleandupes

正在删除 : perl-hivex-1.3.8-4.el7.x86_64 12/223
正在删除 : hivex-1.3.8-4.el7.x86_64 13/223
正在删除 : netcf-libs-0.2.3-8.el7.x86_64 14/223
正在删除 : polkit-0.112-5.el7.x86_64 15/223
正在删除 : 1:dbus-1.6.12-8.el7.x86_64 16/223
正在删除 : btrfs-progs-3.12-4.el7.x86_64 17/223
正在删除 : gdisk-0.8.6-4.el7.x86_64 18/223
正在删除 : 7:device-mapper-event-1.02.84-14.el7.x86_64 19/223
正在删除 : kmod-14-9.el7.x86_64 20/223
正在删除 : passwd-0.79-4.el7.x86_64 21/223
正在删除 : fontconfig-2.10.95-7.el7.x86_64 22/223
正在删除 : 2:shadow-utils-4.1.5.1-13.el7.x86_64 23/223
正在删除 : e2fsprogs-1.42.9-4.el7.x86_64 24/223
正在删除 : python-dmidecode-3.10.13-11.el7.x86_64

3。删除副本后在运行

yum install openssh

[root@bobo ~]# yum install openssh
已加载插件:fastestmirror, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
正在解决依赖关系
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).
--> 正在检查事务
---> 软件包 openssh.x86_64.0.6.4p1-8.el7 将被 升级
--> 正在处理依赖关系 openssh = 6.4p1-8.el7,它被软件包 openssh-server-6.4p1-8.el7.x86_64 需要
--> 正在处理依赖关系 openssh = 6.4p1-8.el7,它被软件包 openssh-clients-6.4p1-8.el7.x86_64 需要
---> 软件包 openssh.x86_64.0.7.4p1-21.el7 将被 更新
--> 正在检查事务
---> 软件包 openssh-clients.x86_64.0.6.4p1-8.el7 将被 升级
---> 软件包 openssh-clients.x86_64.0.7.4p1-21.el7 将被 更新
---> 软件包 openssh-server.x86_64.0.6.4p1-8.el7 将被 升级
---> 软件包 openssh-server.x86_64.0.7.4p1-21.el7 将被 更新
--> 处理 openssh-7.4p1-21.el7.x86_64 与 selinux-policy < 3.13.1-92 的冲突
--> 正在使用新的信息重新解决依赖关系
--> 正在检查事务
---> 软件包 selinux-policy.noarch.0.3.12.1-153.el7 将被 升级
--> 正在处理依赖关系 selinux-policy = 3.12.1-153.el7,它被软件包 selinux-policy-targeted-3.12.1-153.el7.noarch 需要
--> 正在处理依赖关系 selinux-policy = 3.12.1-153.el7,它被软件包 selinux-policy-targeted-3.12.1-153.el7.noarch 需要
---> 软件包 selinux-policy.noarch.0.3.13.1-252.el7_7.6 将被 更新
--> 正在检查事务
---> 软件包 selinux-policy-targeted.noarch.0.3.12.1-153.el7 将被 升级
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-252.el7_7.6 将被 更新
--> 解决依赖关系完成

依赖关系解决

====================================================================================================
Package 架构 版本 源 大小
====================================================================================================
正在更新:
openssh x86_64 7.4p1-21.el7 base 510 k
selinux-policy noarch 3.13.1-252.el7_7.6 updates 492 k
为依赖而更新:
openssh-clients x86_64 7.4p1-21.el7 base 655 k
openssh-server x86_64 7.4p1-21.el7 base 459 k
selinux-policy-targeted noarch 3.13.1-252.el7_7.6 updates 7.0 M

事务概要
====================================================================================================
升级 2 软件包 (+3 依赖软件包)

总计:9.0 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : openssh-7.4p1-21.el7.x86_64 1/10
正在更新 : selinux-policy-3.13.1-252.el7_7.6.noarch 2/10
正在更新 : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch 3/10
正在更新 : openssh-clients-7.4p1-21.el7.x86_64 4/10
正在更新 : openssh-server-7.4p1-21.el7.x86_64 5/10
清理 : selinux-policy-targeted-3.12.1-153.el7.noarch 6/10
清理 : openssh-server-6.4p1-8.el7.x86_64 7/10
清理 : openssh-clients-6.4p1-8.el7.x86_64 8/10
清理 : selinux-policy-3.12.1-153.el7.noarch 9/10
清理 : openssh-6.4p1-8.el7.x86_64 10/10
验证中 : selinux-policy-3.13.1-252.el7_7.6.noarch 1/10
验证中 : selinux-policy-targeted-3.13.1-252.el7_7.6.noarch 2/10
验证中 : openssh-clients-7.4p1-21.el7.x86_64 3/10
验证中 : openssh-server-7.4p1-21.el7.x86_64 4/10
验证中 : openssh-7.4p1-21.el7.x86_64 5/10
验证中 : openssh-server-6.4p1-8.el7.x86_64 6/10
验证中 : openssh-clients-6.4p1-8.el7.x86_64 7/10
验证中 : selinux-policy-3.12.1-153.el7.noarch 8/10
验证中 : selinux-policy-targeted-3.12.1-153.el7.noarch 9/10
验证中 : openssh-6.4p1-8.el7.x86_64 10/10

更新完毕:
openssh.x86_64 0:7.4p1-21.el7 selinux-policy.noarch 0:3.13.1-252.el7_7.6

作为依赖被升级:
openssh-clients.x86_64 0:7.4p1-21.el7 openssh-server.x86_64 0:7.4p1-21.el7
selinux-policy-targeted.noarch 0:3.13.1-252.el7_7.6

完毕!
[root@bobo ~]#

原文地址:https://www.cnblogs.com/ikensee/p/12798060.html