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

說明當前系統(tǒng)里存在二個版本的sudo軟件。需要卸載一個低版本的。切勿手動卸載,使用 yum 自帶命令:

# 提示不存在命令則:yum install yum-utils, 系統(tǒng)會提示是否卸載,選擇: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
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容