keepalived安装失败

错误信息

Error: Package: ipset-6.38-3.el7_6.x86_64 (updates)
           Requires: libipset.so.11(LIBIPSET_4.6)(64bit)
           Removing: ipset-libs-6.38-2.el7.x86_64 (@anaconda)
               libipset.so.11(LIBIPSET_4.6)(64bit)
           Updated By: ipset-libs-7.1-1.el7.x86_64 (local-packages)
              ~libipset.so.13(LIBIPSET_4.9)(64bit)
              ~libipset.so.13(LIBIPSET_4.8)(64bit)
              ~libipset.so.13(LIBIPSET_4.7)(64bit)
              ~libipset.so.13(LIBIPSET_4.6)(64bit)
              ~libipset.so.13(LIBIPSET_4.5)(64bit)
              ~libipset.so.13(LIBIPSET_4.4)(64bit)
              ~libipset.so.13(LIBIPSET_4.3)(64bit)
              ~libipset.so.13(LIBIPSET_4.2)(64bit)
              ~libipset.so.13(LIBIPSET_4.1)(64bit)
              ~libipset.so.13(LIBIPSET_4.0)(64bit)
              ~libipset.so.13(LIBIPSET_3.0)(64bit)
              ~libipset.so.13(LIBIPSET_2.0)(64bit)
              ~libipset.so.13(LIBIPSET_1.0)(64bit)
           Available: ipset-libs-6.38-3.el7_6.x86_64 (updates)
               libipset.so.11(LIBIPSET_4.6)(64bit)
Error: Package: ipset-6.38-3.el7_6.x86_64 (updates)
           Requires: libipset.so.11()(64bit)
           Removing: ipset-libs-6.38-2.el7.x86_64 (@anaconda)
               libipset.so.11()(64bit)
           Updated By: ipset-libs-7.1-1.el7.x86_64 (local-packages)
              ~libipset.so.13()(64bit)
           Available: ipset-libs-6.38-3.el7_6.x86_64 (updates)
               libipset.so.11()(64bit)
 You could try using --skip-broken to work around the problem
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
sudo-1.9.5-3.el7.x86_64 is a duplicate with sudo-1.8.23-3.el7.x86_64

重点信息:

** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
sudo-1.9.5-3.el7.x86_64 is a duplicate with sudo-1.8.23-3.el7.x86_64

查看安装列表信息:

rpm -qa |grep sudo 
sudo-1.9.5-3.el7.x86_64
sudo-1.8.23-3.el7.x86_64

说明当前系统里存在二个版本的sudo软件。需要卸载一个低版本的。切勿手动卸载,使用 yum 自带命令:

# 提示不存在命令则:yum install yum-utils, 系统会提示是否卸载,选择:Y 即可。
package-cleanup --cleandupes 
-> # package-cleanup --cleandupes
Loaded plugins: fastestmirror
--> Running transaction check
---> Package sudo.x86_64 0:1.8.23-3.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================================================================================================================================================
 Package                                                       Arch                                                            Version                                                                Repository                                                          Size
===============================================================================================================================================================================================================================================================================
Removing:
 sudo                                                          x86_64                                                          1.8.23-3.el7                                                           @anaconda                                                          3.0 M

Transaction Summary
===============================================================================================================================================================================================================================================================================
Remove  1 Package

Installed size: 3.0 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : sudo-1.8.23-3.el7.x86_64                                                                                                                                                                                                                                    1/1 
  Verifying  : sudo-1.8.23-3.el7.x86_64                                                                                                                                                                                                                                    1/1 

Removed:
  sudo.x86_64 0:1.8.23-3.el7

然后再确认是否卸载完成:

-> # rpm -qa |grep sudo 
sudo-1.9.5-3.el7.x86_64

你可能感兴趣的:(keepalived安装失败)