用户工具

站点工具


linux_basic:package_manager:yum_troubleshooting

Yum使用中的问题处理

常见问题

手动rpm强制安装导致连串性依赖问题

产生原因:

  • 由于某某人安装rpm包时,不顾后果的使用了参数 –force:强制安装 –nodeps:= no dependent 无依赖安装(忽视与其他包之间的依赖关系),导致本地yum依赖关系混乱,导致以下问题(类似问题比较常见,根本原因是前期部署人员对rpm依赖的无知导致)。有经验的人就得手动安装,也可以完美的运用基础知识处理好依赖。
  • 提醒,以下操作时请提前评估是否会对系统已存在运行中的服务的依赖造成影响。不确定的请下班后再行维护。

#问题出现
[root@centos7 ]# yum install nfs-utils -y     
...
Total size: 18 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
libselinux(x86-64) = 2.5-6.el7 is needed by (installed) libselinux-devel-2.5-6.el7.x86_64
libsepol(x86-64) = 2.5-6.el7 is needed by (installed) libsepol-devel-2.5-6.el7.x86_64
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
libselinux-devel-2.5-6.el7.x86_64 has missing requires of libselinux(x86-64) = ('0', '2.5', '6.el7')
libsepol-devel-2.5-6.el7.x86_64 has missing requires of libsepol(x86-64) = ('0', '2.5', '6.el7')
pam-1.1.8-18.el7.x86_64 is a duplicate with pam-1.1.8-12.el7_1.1.x86_64
pcre-8.32-15.el7_2.1.x86_64 is a duplicate with pcre-8.32-15.el7.x86_64
zlib-1.2.7-17.el7.x86_64 is a duplicate with zlib-1.2.7-15.el7.x86_64
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2020-07-09.10-25.nMDoHF.yumtx

[root@centos7 ]# 

操作处理过程如下:

  • 这里主要有有2个问题:


# 1、依赖问题
解决:用yum在线安装最新的rpm来修正依赖关系(或在测试环境中yum downloadonly下载依赖rpm包后,安装)
ERROR with transaction check vs depsolve:
libselinux(x86-64) = 2.5-6.el7 is needed by (installed) libselinux-devel-2.5-6.el7.x86_64
libsepol(x86-64) = 2.5-6.el7 is needed by (installed) libsepol-devel-2.5-6.el7.x86_64
libselinux-devel-2.5-6.el7.x86_64 has missing requires of libselinux(x86-64) = ('0', '2.5', '6.el7')
libsepol-devel-2.5-6.el7.x86_64 has missing requires of libsepol(x86-64) = ('0', '2.5', '6.el7')


# 2、rpm包重复(duplicate)问题
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
libselinux-devel-2.5-6.el7.x86_64 has missing requires of libselinux(x86-64) = ('0', '2.5', '6.el7')
libsepol-devel-2.5-6.el7.x86_64 has missing requires of libsepol(x86-64) = ('0', '2.5', '6.el7')
pam-1.1.8-18.el7.x86_64 is a duplicate with pam-1.1.8-12.el7_1.1.x86_64
pcre-8.32-15.el7_2.1.x86_64 is a duplicate with pcre-8.32-15.el7.x86_64
zlib-1.2.7-17.el7.x86_64 is a duplicate with zlib-1.2.7-15.el7.x86_64
e2fsprogs-1.42.9-9.el7.x86_64 is a duplicate with  e2fsprogs-1.42.9-7.el7.x86_64

[root@centos7 ]# rpm -qa e2fsprogs   #可以验证存在重复rpm包的查询命令,可以查到2个版本。
e2fsprogs-1.42.9-7.el7.x86_64
e2fsprogs-1.42.9-9.el7.x86_64

# 先清理重复问题,手动删除重复的低版本号rpm包
[root@centos7 ]# rpm -e e2fsprogs-1.42.9-7.el7.x86_64  pam-1.1.8-12.el7_1.1.x86_64 pcre-8.32-15.el7.x86_64 zlib-1.2.7-15.el7.x86_64

[root@centos7 ]# yum install nfs-utils -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: hkg.mirror.rackspace.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.3.0-0.66.el7 will be installed
--> Processing Dependency: libtirpc >= 0.2.4-0.7 for package: 1:nfs-utils-1.3.0-0.66.el7.x86_64
--> Processing Dependency: gssproxy >= 0.7.0-3 for package: 1:nfs-utils-1.3.0-0.66.el7.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.66.el7.x86_64
.....

Install  1 Package  (+16 Dependent packages)
Upgrade  2 Packages (+13 Dependent packages)

Total size: 18 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
libselinux(x86-64) = 2.5-6.el7 is needed by (installed) libselinux-devel-2.5-6.el7.x86_64
libsepol(x86-64) = 2.5-6.el7 is needed by (installed) libsepol-devel-2.5-6.el7.x86_64
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
libselinux-devel-2.5-6.el7.x86_64 has missing requires of libselinux(x86-64) = ('0', '2.5', '6.el7')
libsepol-devel-2.5-6.el7.x86_64 has missing requires of libsepol(x86-64) = ('0', '2.5', '6.el7')
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2020-07-09.10-35.z56Siv.yumtx

# rpm包重复解决,但依赖关系还有缺失。继续处理,解决依赖...
 
[root@centos7 ]# yum install libselinux libsepol libselinux-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: hk.mirrors.thegigabit.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated
--> Processing Dependency: libselinux = 2.2.2-6.el7 for package: libselinux-utils-2.2.2-6.el7.x86_64
......
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================
 Package                            Arch              Version                         Repository          Size
===============================================================================================================
Updating:
 libselinux                         x86_64            2.5-15.el7                      base               162 k
 libselinux-devel                   x86_64            2.5-15.el7                      base               187 k
 libsepol                           x86_64            2.5-10.el7                      base               297 k
 selinux-policy-targeted            noarch            3.13.1-266.el7_8.1              updates            7.0 M
......   
Running transaction check
......          

Complete!
[root@centos7 ]# yum install nfs-utils -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: hk.mirrors.thegigabit.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.3.0-0.66.el7 will be Installed
......
--> Finished Dependency Resolution

Dependencies Resolved

......
  Verifying  : krb5-devel-1.14.1-27.el7_3.x86_64                                                         22/22 

Installed:
  nfs-utils.x86_64 1:1.3.0-0.66.el7                                                                            

Dependency Installed:
  gssproxy.x86_64 0:0.7.0-28.el7                          keyutils.x86_64 0:1.5.8-3.el7                                         
  quota-nls.noarch 1:4.01-19.el7                          rpcbind.x86_64 0:0.2.0-49.el7                       
  tcp_wrappers.x86_64 0:7.6-77.el7                       

Dependency Updated:
  krb5-devel.x86_64 0:1.15.1-46.el7    krb5-libs.x86_64 0:1.15.1-46.el7    libkadm5.x86_64 0:1.15.1-46.el7   

Complete!
[root@centos7 ]# 

使用package-cleanup自动处理duplicate问题

注意

  • package-cleanup由yum-utils提供


[root@localhost ~]# yum localinstall docker-ce-18.09.9-3.el7.x86_64.rpm docker-ce-18.09.9-3.el7.x86_64.rpm containerd.io-1.2.6-3.3.el7.x86_64.rpm -y
Loaded plugins: fastestmirror

Resolving Dependencies
--> Running transaction check
......
--> Finished Dependency Resolution
Error: Package: policycoreutils-python-2.5-33.el7.x86_64 (/policycoreutils-python-2.5-33.el7.x86_64)
           Requires: policycoreutils = 2.5-33.el7
           Installed: policycoreutils-2.5-34.el7.x86_64 (@base)
               policycoreutils = 2.5-34.el7
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
perl-Getopt-Long-2.40-3.el7.noarch is a duplicate with perl-Getopt-Long-2.40-2.el7.noarch

# 
[root@localhost ~]# yum install yum-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-54.el7_8 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-54.el7_8.noarch
--> Running transaction check
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch         Version                  Repository     Size
================================================================================
Installing:
 yum-utils            noarch       1.1.31-54.el7_8          updates       122 k
Installing for dependencies:
 python-chardet       noarch       2.2.1-3.el7              base          227 k
 python-kitchen       noarch       1.1.1-5.el7              base          267 k

Transaction Summary
================================================================================
Install  1 Package (+2 Dependent packages)


Installed:
  yum-utils.noarch 0:1.1.31-54.el7_8

Dependency Installed:
  python-chardet.noarch 0:2.2.1-3.el7    python-kitchen.noarch 0:1.1.1-5.el7

Complete!
[root@localhost ~]# package-cleanup --cleandupes
Loaded plugins: fastestmirror
--> Running transaction check
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch          Version           Repository        Size
================================================================================
Removing:
 perl-Getopt-Long        noarch        2.40-2.el7        installed        132 k 
 # 自动移除了已安装的重复的低版本的rpm包
Transaction Summary
================================================================================
Remove  1 Package

Installed size: 132 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : perl-Getopt-Long-2.40-2.el7.noarch                           1/1
  Verifying  : perl-Getopt-Long-2.40-2.el7.noarch                           1/1

Removed:
  perl-Getopt-Long.noarch 0:2.40-2.el7

Complete!
[root@localhost ~]#

  • 到此问题初步解决,如果还有其他因前期手动强制安装rpm包导致的问题,还需要等问题在合适的时机暴露出来。

自动清理时遇到依赖问题

该案例是:重复的版本本身存储相关依赖性,如下是处理过程:
# 先临时将依赖卸载,再清理重复,清理重复后再安装回依赖。

[root@yzj5612020114680-0724651 tmp]# package-cleanup --cleandupes
Loaded plugins: fastestmirror, langpacks
--> Running transaction check
---> Package perl.x86_64 4:5.16.3-292.el7 will be erased
---> Package perl-Getopt-Long.noarch 0:2.40-2.el7 will be erased
---> Package perl-Pod-Escapes.noarch 1:1.04-292.el7 will be erased
---> Package perl-libs.x86_64 4:5.16.3-292.el7 will be erased
---> Package perl-macros.x86_64 4:5.16.3-292.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================
 Package                Arch      Version              Repository    Size
==========================================================================
Removing:
 perl                   x86_64    4:5.16.3-292.el7     installed     22 M
 perl-Getopt-Long       noarch    2.40-2.el7           installed    132 k
 perl-Pod-Escapes       noarch    1:1.04-292.el7       installed     21 k
 perl-libs              x86_64    4:5.16.3-292.el7     installed    1.6 M
 perl-macros            x86_64    4:5.16.3-292.el7     installed    5.0 k

Transaction Summary
==========================================================================
Remove  5 Packages

Installed size: 24 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
/usr/bin/perl is needed by (installed) perl-4:5.16.3-293.el7.x86_64
/usr/bin/perl is needed by (installed) perl-podlators-2.5.1-3.el7.noarch
/usr/bin/perl is needed by (installed) perl-Pod-Perldoc-3.20-4.el7.noarch
/usr/bin/perl is needed by (installed) perl-Encode-2.51-7.el7.x86_64
/usr/bin/perl is needed by (installed) perl-Pod-Usage-1.63-3.el7.noarch
/usr/bin/perl is needed by (installed) perl-IO-Compress-2.061-2.el7.noarch
/usr/bin/perl is needed by (installed) perl-DBI-1.627-4.el7.x86_64
Complete!
(1, [])
[root@yzj5612020114680-0724651 tmp]# yum erase perl

Complete!
[root@yzj5612020114680-0724651 tmp]# yum install perl
[root@yzj5612020114680-0724651 tmp]# package-cleanup --cleandupes
Loaded plugins: fastestmirror, langpacks
No duplicates to remove
[root@yzj5612020114680-0724651 tmp]#

强制安装导致的混合性依赖问题

该案例情况描述:
服务器可联网,但使用yum命令时直接报错,如下:

[root@DB ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
[root@DB ~]# yum makecache
error: Failed to initialize NSS library
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   cannot import name ts

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Aug  4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

[root@DB ~]# rpm -qa
错误:Failed to initialize NSS library
[root@DB ~]# rpm -iVh *.rpm 报错同样,说明已经无法通过命令安装软件包了。

# 最终了解了服务器相关情况,前期项目部署了oracle数据库,会不会是在那个时候出现了问题,
# 排查了命令历史记录,定位到以下目录,发现与上面报错有一定关系的2个软件包:
nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm 
nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64.rpm
# 以下都是离线安装oracle时用到的依赖,但从软件包版本上看,是早于当前系统版本的centos7.3发行版中的包(当前的是centos版本7.4)。
# 我去,部署人员也**太有勇气去强制安装了。
[root@DB ~]# ls /opt/rpm/
binutils-2.25.1-22.base.el7.x86_64.rpm          libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm
compat-libcap1-1.10-7.el7.x86_64.rpm            libX11-1.6.3-3.el7.i686.rpm
cpp-4.8.5-11.el7.x86_64.rpm                     libX11-1.6.3-3.el7.x86_64.rpm
gcc-4.8.5-11.el7.x86_64.rpm                     libX11-common-1.6.3-3.el7.noarch.rpm
gcc-c++-4.8.5-11.el7.x86_64.rpm                 libXau-1.0.8-2.1.el7.i686.rpm
glibc-2.17-157.el7_3.5.i686.rpm                 libXau-1.0.8-2.1.el7.x86_64.rpm
glibc-2.17-157.el7_3.5.x86_64.rpm               libxcb-1.11-4.el7.i686.rpm
glibc-common-2.17-157.el7_3.5.x86_64.rpm        libxcb-1.11-4.el7.x86_64.rpm
glibc-devel-2.17-157.el7_3.5.i686.rpm           libXext-1.3.3-3.el7.i686.rpm
glibc-devel-2.17-157.el7_3.5.x86_64.rpm         libXext-1.3.3-3.el7.x86_64.rpm
glibc-headers-2.17-157.el7_3.5.x86_64.rpm       libXi-1.7.4-2.el7.i686.rpm
kernel-headers-3.10.0-514.26.2.el7.x86_64.rpm   libXi-1.7.4-2.el7.x86_64.rpm
ksh-20120801-26.el7.x86_64.rpm                  libXtst-1.2.2-2.1.el7.i686.rpm
libaio-0.3.109-13.el7.i686.rpm                  libXtst-1.2.2-2.1.el7.x86_64.rpm
libaio-0.3.109-13.el7.x86_64.rpm                lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64.rpm
libaio-devel-0.3.109-13.el7.i686.rpm            make-3.82-23.el7.x86_64.rpm
libaio-devel-0.3.109-13.el7.x86_64.rpm          mpfr-3.1.1-4.el7.x86_64.rpm
libgcc-4.8.5-11.el7.i686.rpm                    ncurses-libs-5.9-13.20130511.el7.i686.rpm
libgcc-4.8.5-11.el7.x86_64.rpm                  nss-softokn-freebl-3.16.2.3-14.4.el7.i686.rpm
libgomp-4.8.5-11.el7.x86_64.rpm                 nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64.rpm
libmpc-1.0.1-3.el7.x86_64.rpm                   readline-6.2-9.el7.i686.rpm
libstdc++-4.8.5-11.el7.i686.rpm                 sysstat-10.1.5-11.el7.x86_64.rpm
libstdc++-4.8.5-11.el7.x86_64.rpm               unixODBC-2.3.1-11.el7.i686.rpm
libstdc++-devel-4.8.5-11.el7.i686.rpm           unixODBC-2.3.1-11.el7.x86_64.rpm
libstdc++-devel-4.8.5-11.el7.x86_64.rpm         unixODBC-devel-2.3.1-11.el7.i686.rpm
libtool-ltdl-2.4.2-22.el7_3.i686.rpm            unixODBC-devel-2.3.1-11.el7.x86_64.rpm
[root@DB ~]# 

# 这个测试是在yum正常的服务器上做的输出结果
[root@localhost ~]# yum install nss-softokn-freebl     
# 由于使用的是在线yum,截止此时输出的软件包版本是centos7.8的,但对于了解依赖关系要用到的包当然是足够的了。
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.cn99.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 nss-softokn-freebl.x86_64.0.3.34.0-2.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新
--> 正在处理依赖关系 nss-util >= 3.44.0-3,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在处理依赖关系 nspr >= 4.21.0,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在检查事务
---> 软件包 nspr.x86_64.0.4.17.0-1.el7 将被 升级
---> 软件包 nspr.x86_64.0.4.21.0-1.el7 将被 更新
---> 软件包 nss-util.x86_64.0.3.34.0-2.el7 将被 升级
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新
--> 解决依赖关系完成

依赖关系解决

================================================================================
 Package                  架构         版本                    源          大小
================================================================================
正在更新:
 nss-softokn-freebl       x86_64       3.44.0-8.el7_7          base       224 k
为依赖而更新:
 nspr                     x86_64       4.21.0-1.el7            base       127 k
 nss-util                 x86_64       3.44.0-4.el7_7          base        79 k

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

总下载量:430 k
Is this ok [y/d/N]:


# 从中可以看到nss-softokn-freebl 依赖底层的nss-util和nspr,而且再验证一下可以确认nspr又只依赖nss-util。
# 即 nss-softokn-freebl --依赖--> nspr --依赖--> nss-util
# 所以出现问题的原因是依赖:依赖也是有版本要求的。强制使用时,不论是高版本
# 或低版本都会出现版本不符的情况而导致软件类库文件不可用。就如最上面的报错。

  • 处理过程

处理:
分析了以上原因之后,由于无法使用命令安装,那就只能文件替换了。(请有一定基础的人员操作)处理的过程:
替换当然时将上面可能与本次报错有关的且被强制安装的nss-softokn-freebl包作替换。
在历史软件包存档网站 https://archive.kernel.org/centos-vault/7.4.1708/os/x86_64/Packages/ 下载对应的nss-softokn-freebl的rpm包包

https://archive.kernel.org/centos-vault/7.4.1708/os/x86_64/Packages/nss-softokn-freebl-3.28.3-6.el7.i686.rpm
https://archive.kernel.org/centos-vault/7.4.1708/os/x86_64/Packages/nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm

# 先将nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm解压后替换
# 下面是包中的内文件树,因为文件多,一个一个操作太烦。直接解压后,sftp连接服务器,切换到根/目录,
# 将rpm包解压出的所有的文件选中拖入sftp窗口,传入服务器替换掉。

.
├── etc
│   └── prelink.conf.d
│       └── nss-softokn-prelink.conf
└── usr
    ├── lib
    │   └── dracut
    │       ├── dracut.conf.d
    │       │   └── 50-nss-softokn.conf
    │       └── modules.d
    │           └── 05nss-softokn
    │               └── module-setup.sh
    └── lib64
        ├── libfreebl3.chk
        ├── libfreebl3.so
        ├── libfreeblpriv3.chk
        └── libfreeblpriv3.so
        
# 回到故障服务器终端命令行界面
[root@DB ~]# yum makecache # 可以用了,但还有一些报错。
[root@DB ~]# yum makecache
已加载插件:fastestmirror
base                                    | 3.6 kB  00:00:00
extras                                  | 2.9 kB  00:00:00
updates                                 | 2.9 kB  00:00:00
(1/10): base/7/x86_64/group_gz          | 153 kB  00:00:00
(2/10): extras/7/x86_64/primary_db      | 206 kB  00:00:00
(3/10): extras/7/x86_64/other_db        | 124 kB  00:00:00
(4/10): base/7/x86_64/primary_db        | 6.1 MB  00:00:01
(5/10): extras/7/x86_64/filelists_db    | 217 kB  00:00:01
(6/10): updates/7/x86_64/primary_db     | 4.5 MB  00:00:01
(7/10): updates/7/x86_64/filelists_db   | 2.4 MB  00:00:01
(8/10): base/7/x86_64/filelists_db      | 7.1 MB  00:00:02
(9/10): base/7/x86_64/other_db          | 2.6 MB  00:00:05
(10/10): updates/7/x86_64/other_db      | 318 kB  00:00:06
Determining fastest mirrors
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.aliyun.com
元数据缓存已建立
[root@DB ~]# yum nss-softokn-freebl
已加载插件:fastestmirror
没有该命令:nss-softokn-freebl。请使用 /usr/bin/yum --help
[root@DB ~]# yum  install nss-softokn-freebl
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.28.3-6.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新
--> 正在处理依赖关系 nss-util >= 3.44.0-3,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在处理依赖关系 nspr >= 4.21.0,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在检查事务
---> 软件包 nspr.x86_64.0.4.13.1-1.0.el7_3 将被 升级
---> 软件包 nspr.x86_64.0.4.21.0-1.el7 将被 更新
---> 软件包 nss-util.x86_64.0.3.28.4-3.el7 将被 升级
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新
--> 解决依赖关系完成
错误: Multilib version problems found. This often means that the root
      cause is something else and multilib version checking is just
      pointing out that there is a problem. Eg.:

        1. You have an upgrade for nss-softokn-freebl which is missing some
           dependency that another package requires. Yum is trying to
           solve this by installing an older version of nss-softokn-freebl of the
           different architecture. If you exclude the bad architecture
           yum will tell you what the root cause is (which package
           requires what). You can try redoing the upgrade with
           --exclude nss-softokn-freebl.otherarch ... this should give you an error
           message showing the root cause of the problem.

        2. You have multiple architectures of nss-softokn-freebl installed, but
           yum can only see an upgrade for one of those architectures.
           If you don't want/need both architectures anymore then you
           can remove the one with the missing update and everything
           will work.

        3. You have duplicate versions of nss-softokn-freebl installed already.
           You can use "yum check" to get yum show these errors.

      ...you can also use --setopt=protected_multilib=false to remove
      this checking, however this is almost never the correct thing to
      do as something else is very likely to go wrong (often causing
      much more problems).

      保护多库版本:nss-softokn-freebl-3.44.0-8.el7_7.x86_64 != nss-softokn-freebl-3.16.2.3-14.4.el7.i686
      
[root@DB ~]# 

[root@DB ~]# package-cleanup --cleandupes
已加载插件:fastestmirror
Not removing libstdc++-4.8.5-11.el7.x86_64 because it is required by 1 installed package
Not removing glibc-common-2.17-157.el7_3.5.x86_64 because it is required by 1 installed package
Not removing libgomp-4.8.5-11.el7.x86_64 because it is required by 1 installed package
--> 正在检查事务
---> 软件包 binutils.x86_64.0.2.25.1-22.base.el7 将被 删除
---> 软件包 glibc.x86_64.0.2.17-157.el7_3.5 将被 删除
---> 软件包 libgcc.x86_64.0.4.8.5-11.el7 将被 删除
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 删除
--> 解决依赖关系完成

依赖关系解决

==========================================================================
 Package             架构        版本                  源            大小
==========================================================================
正在删除:
 binutils            x86_64      2.25.1-22.base.el7    installed     22 M
 glibc               x86_64      2.17-157.el7_3.5      installed     13 M
 libgcc              x86_64      4.8.5-11.el7          installed    175 k
 nss-softokn-freebl  x86_64      3.16.2.3-14.4.el7     installed    512 k

事务概要
==========================================================================
移除  4 软件包

安装大小:36 M
是否继续?[y/N]:y
Downloading packages:
Running transaction check
事务检查与依赖解决错误:
/usr/bin/nm 被 (已安裝) kmod-20-15.el7.x86_64 需要
/sbin/ldconfig 被 (已安裝) glibc-2.17-196.el7.x86_64 需要
/sbin/ldconfig 被 (已安裝) libstdc++-4.8.5-16.el7.x86_64 需要
/sbin/ldconfig 被 (已安裝) ncurses-libs-5.9-13.20130511.el7.x86_64 需要

...
省略100行
....

/sbin/ldconfig 被 (已安裝) libXi-1.7.4-2.el7.i686 需要
/sbin/ldconfig 被 (已安裝) libXtst-1.2.2-2.1.el7.i686 需要
/sbin/ldconfig 被 (已安裝) libxml2-2.9.1-6.el7.4.x86_64 需要
完毕!
Warning: Some duplicates were not removed because they are required by installed packages.
You can try --cleandupes with --removenewestdupes, or review them with --dupes and remove manually.
(1, [])
[root@DB ~]# package-cleanup --cleandupes --removenewestdupes
已加载插件:fastestmirror
Not removing nss-softokn-freebl-3.28.3-6.el7.x86_64 because it is required by 1 installed package
--> 正在检查事务
---> 软件包 binutils.x86_64.0.2.25.1-31.base.el7 将被 删除
---> 软件包 glibc.x86_64.0.2.17-196.el7 将被 删除
---> 软件包 glibc-common.x86_64.0.2.17-196.el7 将被 删除
---> 软件包 libgcc.x86_64.0.4.8.5-16.el7 将被 删除
---> 软件包 libgomp.x86_64.0.4.8.5-16.el7 将被 删除
---> 软件包 libstdc++.x86_64.0.4.8.5-16.el7 将被 删除
--> 解决依赖关系完成

依赖关系解决

==========================================================================
 Package            架构      版本                     源            大小
==========================================================================
正在删除:
 binutils           x86_64    2.25.1-31.base.el7       @anaconda     22 M
 glibc              x86_64    2.17-196.el7             @anaconda     13 M
 glibc-common       x86_64    2.17-196.el7             @anaconda    115 M
 libgcc             x86_64    4.8.5-16.el7             @anaconda    175 k
 libgomp            x86_64    4.8.5-16.el7             @anaconda    207 k
 libstdc++          x86_64    4.8.5-16.el7             @anaconda    1.0 M

事务概要
==========================================================================
移除  6 软件包

安装大小:152 M
是否继续?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在删除    : binutils-2.25.1-31.base.el7.x86_64         1/6
  正在删除    : libstdc++-4.8.5-16.el7.x86_64              2/6
  正在删除    : libgomp-4.8.5-16.el7.x86_64                3/6
  正在删除    : glibc-common-2.17-196.el7.x86_64           4/6
  正在删除    : glibc-2.17-196.el7.x86_64                  5/6
  正在删除    : libgcc-4.8.5-16.el7.x86_64                 6/6
  验证中      : libgcc-4.8.5-16.el7.x86_64                 1/6
  验证中      : libstdc++-4.8.5-16.el7.x86_64              2/6
  验证中      : binutils-2.25.1-31.base.el7.x86_64         3/6
  验证中      : glibc-common-2.17-196.el7.x86_64           4/6
  验证中      : libgomp-4.8.5-16.el7.x86_64                5/6
  验证中      : glibc-2.17-196.el7.x86_64                  6/6

删除:
  binutils.x86_64 0:2.25.1-31.base.el7          glibc.x86_64 0:2.17-196.el7            glibc-common.x86_64 0:2.17-196.el7
  libgcc.x86_64 0:4.8.5-16.el7                  libgomp.x86_64 0:4.8.5-16.el7          libstdc++.x86_64 0:4.8.5-16.el7

完毕!
Warning: Some duplicates were not removed because they are required by installed packages.
You can try --cleandupes without --removenewestdupes, or review them with --dupes and remove manually.


[root@DB ~]# yum  install nss-softokn-freebl
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.28.3-6.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新
--> 正在处理依赖关系 nss-util >= 3.44.0-3,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在处理依赖关系 nspr >= 4.21.0,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在检查事务
---> 软件包 nspr.x86_64.0.4.13.1-1.0.el7_3 将被 升级
---> 软件包 nspr.x86_64.0.4.21.0-1.el7 将被 更新
---> 软件包 nss-util.x86_64.0.3.28.4-3.el7 将被 升级
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新
--> 解决依赖关系完成
错误: Multilib version problems found. This often means that the root
      cause is something else and multilib version checking is just
      pointing out that there is a problem. Eg.:

        1. You have an upgrade for nss-softokn-freebl which is missing some
           dependency that another package requires. Yum is trying to
           solve this by installing an older version of nss-softokn-freebl of the
           different architecture. If you exclude the bad architecture
           yum will tell you what the root cause is (which package
           requires what). You can try redoing the upgrade with
           --exclude nss-softokn-freebl.otherarch ... this should give you an error
           message showing the root cause of the problem.

        2. You have multiple architectures of nss-softokn-freebl installed, but
           yum can only see an upgrade for one of those architectures.
           If you don't want/need both architectures anymore then you
           can remove the one with the missing update and everything
           will work.

        3. You have duplicate versions of nss-softokn-freebl installed already.
           You can use "yum check" to get yum show these errors.

      ...you can also use --setopt=protected_multilib=false to remove
      this checking, however this is almost never the correct thing to
      do as something else is very likely to go wrong (often causing
      much more problems).

      保护多库版本:nss-softokn-freebl-3.44.0-8.el7_7.x86_64 != nss-softokn-freebl-3.16.2.3-14.4.el7.i686
[root@DB ~]# rm -fr /var/cache/yum
/var/cache/yum -> /var/cache/yum
[root@DB ~]# yum makecache
已加载插件:fastestmirror
base                                          | 3.6 kB  00:00:00
extras                                        | 2.9 kB  00:00:00
updates                                       | 2.9 kB  00:00:00
(1/10): extras/7/x86_64/filelists_db          | 217 kB  00:00:00
(2/10): extras/7/x86_64/primary_db            | 206 kB  00:00:00
(3/10): extras/7/x86_64/other_db              | 124 kB  00:00:00
(4/10): base/7/x86_64/group_gz                | 153 kB  00:00:00
(5/10): base/7/x86_64/other_db                | 2.6 MB  00:00:00
(6/10): updates/7/x86_64/other_db             | 318 kB  00:00:00
(7/10): base/7/x86_64/primary_db              | 6.1 MB  00:00:01
(8/10): base/7/x86_64/filelists_db            | 7.1 MB  00:00:01
(9/10): updates/7/x86_64/primary_db           | 4.5 MB  00:00:01
(10/10): updates/7/x86_64/filelists_db        | 2.4 MB  00:00:01
Determining fastest mirrors
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
元数据缓存已建立
[root@DB ~]# yum  install nss-softokn-freebl
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.28.3-6.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新
--> 正在处理依赖关系 nss-util >= 3.44.0-3,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在处理依赖关系 nspr >= 4.21.0,它被软件包 nss-softokn-freebl-3.44.0-8.el7_7.x86_64 需要
--> 正在检查事务
---> 软件包 nspr.x86_64.0.4.13.1-1.0.el7_3 将被 升级
---> 软件包 nspr.x86_64.0.4.21.0-1.el7 将被 更新
---> 软件包 nss-util.x86_64.0.3.28.4-3.el7 将被 升级
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新
--> 解决依赖关系完成
错误: Multilib version problems found. This often means that the root
      cause is something else and multilib version checking is just
      pointing out that there is a problem. Eg.:

        1. You have an upgrade for nss-softokn-freebl which is missing some
           dependency that another package requires. Yum is trying to
           solve this by installing an older version of nss-softokn-freebl of the
           different architecture. If you exclude the bad architecture
           yum will tell you what the root cause is (which package
           requires what). You can try redoing the upgrade with
           --exclude nss-softokn-freebl.otherarch ... this should give you an error
           message showing the root cause of the problem.

        2. You have multiple architectures of nss-softokn-freebl installed, but
           yum can only see an upgrade for one of those architectures.
           If you don't want/need both architectures anymore then you
           can remove the one with the missing update and everything
           will work.

        3. You have duplicate versions of nss-softokn-freebl installed already.
           You can use "yum check" to get yum show these errors.

      ...you can also use --setopt=protected_multilib=false to remove
      this checking, however this is almost never the correct thing to
      do as something else is very likely to go wrong (often causing
      much more problems).

      保护多库版本:nss-softokn-freebl-3.44.0-8.el7_7.x86_64 != nss-softokn-freebl-3.16.2.3-14.4.el7.i686
      
#  嗯,为什么还是报这个 “保护多库版本” 错:哦,发现上面报错的是i686版本,那么2个一同yum安装一下,因为i686版本的也被强制安装了,才有这个错,
#  另外这里应该也可先用yum或rpm强制卸载点i686版本的(未验证)。
[root@DB ~]# yum localinstall nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm nss-softokn-freebl-3.28.3-6.el7.i686.rpm


已加载插件:fastestmirror
nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm                                                                  | 213 kB  00:00:28
正在检查 /var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm: nss-softokn-freebl-3.28.3-6.el7.x86_64
/var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm 将作为 nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 的更新
/var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm 将作为 nss-softokn-freebl-3.16.2.3-14.4.el7.i686 的更新
/var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.x86_64.rpm:不更新已安装的软件包。
nss-softokn-freebl-3.28.3-6.el7.i686.rpm                                                                    | 198 kB  00:00:22
正在检查 /var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.i686.rpm: nss-softokn-freebl-3.28.3-6.el7.i686
/var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.i686.rpm 将被安装
/var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.i686.rpm 将作为 nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 的更新
/var/tmp/yum-root-juVYMh/nss-softokn-freebl-3.28.3-6.el7.i686.rpm 将作为 nss-softokn-freebl-3.16.2.3-14.4.el7.i686 的更新
正在解决依赖关系
--> 正在检查事务
---> 软件包 nss-softokn-freebl.i686.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.i686.0.3.28.3-6.el7 将被 更新
---> 软件包 nss-softokn-freebl.x86_64.0.3.28.3-6.el7 将被 升级
--> 正在处理依赖关系 libfreebl3.so()(64bit),它被软件包 chrony-3.1-2.el7.centos.x86_64 需要
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.aliyun.com
--> 正在处理依赖关系 libfreebl3.so()(64bit),它被软件包 p11-kit-trust-0.23.5-3.el7.x86_64 需要
--> 正在处理依赖关系 libfreebl3.so()(64bit),它被软件包 glibc-2.17-157.el7_3.5.x86_64 需要
--> 正在处理依赖关系 libfreebl3.so(NSSRAWHASH_3.12.3)(64bit),它被软件包 chrony-3.1-2.el7.centos.x86_64 需要
--> 正在处理依赖关系 libfreebl3.so(NSSRAWHASH_3.12.3)(64bit),它被软件包 p11-kit-trust-0.23.5-3.el7.x86_64 需要
--> 正在处理依赖关系 libfreebl3.so(NSSRAWHASH_3.12.3)(64bit),它被软件包 glibc-2.17-157.el7_3.5.x86_64 需要
--> 正在处理依赖关系 nss-softokn-freebl(x86-64) >= 3.28.3-6.el7,它被软件包 nss-softokn-3.28.3-6.el7.x86_64 需要
--> 正在检查事务
---> 软件包 chrony.x86_64.0.3.1-2.el7.centos 将被 升级
---> 软件包 chrony.x86_64.0.3.1-2.el7.centos 将被 升级
---> 软件包 chrony.x86_64.0.3.4-1.el7 将被 更新
---> 软件包 glibc.i686.0.2.17-157.el7_3.5 将被 升级
--> 正在处理依赖关系 glibc = 2.17-157.el7_3.5,它被软件包 glibc-devel-2.17-157.el7_3.5.x86_64 需要
--> 正在处理依赖关系 glibc = 2.17-157.el7_3.5,它被软件包 glibc-devel-2.17-157.el7_3.5.i686 需要
--> 正在处理依赖关系 glibc = 2.17-157.el7_3.5,它被软件包 glibc-common-2.17-157.el7_3.5.x86_64 需要
--> 正在处理依赖关系 glibc = 2.17-157.el7_3.5,它被软件包 glibc-headers-2.17-157.el7_3.5.x86_64 需要
---> 软件包 glibc.x86_64.0.2.17-157.el7_3.5 将被 升级
---> 软件包 glibc.x86_64.0.2.17-157.el7_3.5 将被 升级
---> 软件包 glibc.i686.0.2.17-307.el7.1 将被 更新
---> 软件包 glibc.x86_64.0.2.17-307.el7.1 将被 更新
---> 软件包 nss-softokn.x86_64.0.3.28.3-6.el7 将被 升级
---> 软件包 nss-softokn.x86_64.0.3.44.0-8.el7_7 将被 更新
--> 正在处理依赖关系 nss-util >= 3.44.0-3,它被软件包 nss-softokn-3.44.0-8.el7_7.x86_64 需要
--> 正在处理依赖关系 nspr >= 4.21.0,它被软件包 nss-softokn-3.44.0-8.el7_7.x86_64 需要
---> 软件包 nss-softokn-freebl.i686.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.i686.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-14.4.el7 将被 升级
---> 软件包 nss-softokn-freebl.i686.0.3.28.3-6.el7 将被 更新
---> 软件包 nss-softokn-freebl.x86_64.0.3.28.3-6.el7 将被 升级
---> 软件包 nss-softokn-freebl.x86_64.0.3.28.3-6.el7 将被 升级
---> 软件包 nss-softokn-freebl.i686.0.3.44.0-8.el7_7 将被 更新
---> 软件包 nss-softokn-freebl.x86_64.0.3.44.0-8.el7_7 将被 更新
--> 正在检查事务
---> 软件包 glibc-common.x86_64.0.2.17-157.el7_3.5 将被 升级
---> 软件包 glibc-common.x86_64.0.2.17-307.el7.1 将被 更新
---> 软件包 glibc-devel.i686.0.2.17-157.el7_3.5 将被 升级
---> 软件包 glibc-devel.x86_64.0.2.17-157.el7_3.5 将被 升级
---> 软件包 glibc-devel.i686.0.2.17-307.el7.1 将被 更新
---> 软件包 glibc-devel.x86_64.0.2.17-307.el7.1 将被 更新
---> 软件包 glibc-headers.x86_64.0.2.17-157.el7_3.5 将被 升级
---> 软件包 glibc-headers.x86_64.0.2.17-307.el7.1 将被 更新
---> 软件包 nspr.x86_64.0.4.13.1-1.0.el7_3 将被 升级
---> 软件包 nspr.x86_64.0.4.21.0-1.el7 将被 更新
---> 软件包 nss-util.x86_64.0.3.28.4-3.el7 将被 升级
---> 软件包 nss-util.x86_64.0.3.44.0-4.el7_7 将被 更新
--> 解决依赖关系完成

依赖关系解决

====================================================================
 Package                 架构      版本              源        大小
====================================================================
正在更新:
 glibc                   i686      2.17-307.el7.1    base     4.3 M
为依赖而更新:
 chrony                  x86_64    3.4-1.el7         base     251 k
 glibc                   x86_64    2.17-307.el7.1    base     3.6 M
 glibc-common            x86_64    2.17-307.el7.1    base      11 M
 glibc-devel             i686      2.17-307.el7.1    base     1.1 M
 glibc-devel             x86_64    2.17-307.el7.1    base     1.1 M
 glibc-headers           x86_64    2.17-307.el7.1    base     689 k
 nspr                    x86_64    4.21.0-1.el7      base     127 k
 nss-softokn             x86_64    3.44.0-8.el7_7    base     330 k
 nss-softokn-freebl      i686      3.44.0-8.el7_7    base     214 k
 nss-softokn-freebl      x86_64    3.44.0-8.el7_7    base     224 k
 nss-util                x86_64    3.44.0-4.el7_7    base      79 k

事务概要
====================================================================
升级  1 软件包 (+11 依赖软件包)

总下载量:23 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/12): chrony-3.4-1.el7.x86_64.rpm                                          | 251 kB  00:00:00
(2/12): glibc-2.17-307.el7.1.x86_64.rpm                                      | 3.6 MB  00:00:00
(3/12): glibc-devel-2.17-307.el7.1.x86_64.rpm                                | 1.1 MB  00:00:00
(4/12): glibc-headers-2.17-307.el7.1.x86_64.rpm                              | 689 kB  00:00:00
(5/12): nspr-4.21.0-1.el7.x86_64.rpm                                         | 127 kB  00:00:00
(6/12): nss-softokn-3.44.0-8.el7_7.x86_64.rpm                                | 330 kB  00:00:00
(7/12): glibc-devel-2.17-307.el7.1.i686.rpm                                  | 1.1 MB  00:00:01
(8/12): nss-softokn-freebl-3.44.0-8.el7_7.x86_64.rpm                         | 224 kB  00:00:00
(9/12): nss-softokn-freebl-3.44.0-8.el7_7.i686.rpm                           | 214 kB  00:00:00
(10/12): nss-util-3.44.0-4.el7_7.x86_64.rpm                                  |  79 kB  00:00:00
(11/12): glibc-2.17-307.el7.1.i686.rpm                                       | 4.3 MB  00:00:01
(12/12): glibc-common-2.17-307.el7.1.x86_64.rpm                              |  11 MB  00:00:01
----------------------------------------------------------------------------------------------------
总计                                                                 13 MB/s |  23 MB  00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在更新    : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                                             1/25
  正在更新    : glibc-common-2.17-307.el7.1.x86_64                                                   2/25
  正在更新    : glibc-2.17-307.el7.1.x86_64                                                          3/25
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
  正在更新    : nspr-4.21.0-1.el7.x86_64                                                             4/25
  正在更新    : nss-util-3.44.0-4.el7_7.x86_64                                                       5/25
  正在更新    : glibc-headers-2.17-307.el7.1.x86_64                                                  6/25
  正在更新    : glibc-devel-2.17-307.el7.1.x86_64                                                    7/25
  正在更新    : nss-softokn-3.44.0-8.el7_7.x86_64                                                    8/25
  正在更新    : chrony-3.4-1.el7.x86_64                                                              9/25
  正在更新    : glibc-2.17-307.el7.1.i686                                                           10/25
ERROR: ld.so: object '/usr/lib64/libnspr4.so' from LD_PRELOAD cannot be preloaded: ignored.
  正在更新    : nss-softokn-freebl-3.44.0-8.el7_7.i686                                              11/25
  正在更新    : glibc-devel-2.17-307.el7.1.i686                                                     12/25
  清理        : glibc-devel-2.17-157.el7_3.5                                                        13/25
  清理        : glibc-devel-2.17-157.el7_3.5                                                        14/25
  清理        : nss-softokn-3.28.3-6.el7.x86_64                                                     15/25
  清理        : nss-softokn-freebl                                                                  16/25
  清理        : glibc-2.17-157.el7_3.5                                                              17/25
  清理        : nss-util-3.28.4-3.el7.x86_64                                                        18/25
  清理        : chrony-3.1-2.el7.centos.x86_64                                                      19/25
  清理        : glibc-headers-2.17-157.el7_3.5.x86_64                                               20/25
  清理        : nspr-4.13.1-1.0.el7_3.x86_64                                                        21/25
  清理        : nss-softokn-freebl                                                                  22/25
  清理        : nss-softokn-freebl                                                                  23/25
  清理        : glibc-2.17-157.el7_3.5                                                              24/25
  清理        : glibc-common-2.17-157.el7_3.5.x86_64                                                25/25
  验证中      : glibc-devel-2.17-307.el7.1.i686                                                      1/25
  验证中      : chrony-3.4-1.el7.x86_64                                                              2/25
  验证中      : glibc-common-2.17-307.el7.1.x86_64                                                   3/25
  验证中      : glibc-2.17-307.el7.1.i686                                                            4/25
  验证中      : glibc-2.17-307.el7.1.x86_64                                                          5/25
  验证中      : nss-softokn-freebl-3.44.0-8.el7_7.i686                                               6/25
  验证中      : nss-softokn-freebl-3.44.0-8.el7_7.x86_64                                             7/25
  验证中      : glibc-headers-2.17-307.el7.1.x86_64                                                  8/25
  验证中      : glibc-devel-2.17-307.el7.1.x86_64                                                    9/25
  验证中      : nss-util-3.44.0-4.el7_7.x86_64                                                      10/25
  验证中      : nspr-4.21.0-1.el7.x86_64                                                            11/25
  验证中      : nss-softokn-3.44.0-8.el7_7.x86_64                                                   12/25
  验证中      : nspr-4.13.1-1.0.el7_3.x86_64                                                        13/25
  验证中      : glibc-2.17-157.el7_3.5.i686                                                         14/25
  验证中      : nss-softokn-3.28.3-6.el7.x86_64                                                     15/25
  验证中      : nss-util-3.28.4-3.el7.x86_64                                                        16/25
  验证中      : glibc-2.17-157.el7_3.5.x86_64                                                       17/25
  验证中      : nss-softokn-freebl-3.16.2.3-14.4.el7.i686                                           18/25
  验证中      : glibc-common-2.17-157.el7_3.5.x86_64                                                19/25
  验证中      : nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64                                         20/25
  验证中      : glibc-devel-2.17-157.el7_3.5.x86_64                                                 21/25
  验证中      : chrony-3.1-2.el7.centos.x86_64                                                      22/25
  验证中      : nss-softokn-freebl-3.28.3-6.el7.x86_64                                              23/25
  验证中      : glibc-devel-2.17-157.el7_3.5.i686                                                   24/25
  验证中      : glibc-headers-2.17-157.el7_3.5.x86_64                                               25/25

更新完毕:
  glibc.i686 0:2.17-307.el7.1

作为依赖被升级:
  chrony.x86_64 0:3.4-1.el7                     glibc.x86_64 0:2.17-307.el7.1          glibc-common.x86_64 0:2.17-307.el7.1
  glibc-devel.i686 0:2.17-307.el7.1             glibc-devel.x86_64 0:2.17-307.el7.1    glibc-headers.x86_64 0:2.17-307.el7.1
  nspr.x86_64 0:4.21.0-1.el7                    nss-softokn.x86_64 0:3.44.0-8.el7_7    nss-softokn-freebl.i686 0:3.44.0-8.el7_7
  nss-softokn-freebl.x86_64 0:3.44.0-8.el7_7    nss-util.x86_64 0:3.44.0-4.el7_7

完毕!
[root@DB ~]#

End

linux_basic/package_manager/yum_troubleshooting.txt · 最后更改: 2020/10/23 17:05 (modify by Amos)