Bootstrap

解决一次keepalived依赖的问题

安装时报错报错

[root@node4 ~]# yum install keepalived
Loaded plugins: fastestmirror, langpacks
dsp-core                                                                                                                                                                                   | 2.9 kB  00:00:00     
dsp-core/primary_db                                                                                                                                                                        | 390 kB  00:00:00     
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package keepalived.x86_64 0:1.3.5-19.el7 will be installed
--> Processing Dependency: ipset-libs >= 7.1 for package: keepalived-1.3.5-19.el7.x86_64
--> Processing Dependency: libnl-genl-3.so.200(libnl_3)(64bit) for package: keepalived-1.3.5-19.el7.x86_64
--> Processing Dependency: libnl-3.so.200(libnl_3_2_27)(64bit) for package: keepalived-1.3.5-19.el7.x86_64
--> Processing Dependency: libnl-3.so.200(libnl_3)(64bit) for package: keepalived-1.3.5-19.el7.x86_64
--> Processing Dependency: libnetsnmpmibs.so.31()(64bit) for package: keepalived-1.3.5-19.el7.x86_64
--> Processing Dependency: libnetsnmpagent.so.31()(64bit) for package: keepalived-1.3.5-19.el7.x86_64
--> Processing Dependency: libnetsnmp.so.31()(64bit) for package: keepalived-1.3.5-19.el7.x86_64
--> Running transaction check
---> Package ipset-libs.x86_64 0:7.1-1.el7 will be installed
---> Package libnl3.x86_64 0:3.2.21-10.el7 will be updated
--> Processing Dependency: libnl3 = 3.2.21-10.el7 for package: libnl3-cli-3.2.21-10.el7.x86_64
---> Package libnl3.x86_64 0:3.2.28-4.el7 will be an update
---> Package net-snmp-agent-libs.x86_64 1:5.7.2-49.el7 will be installed
---> Package net-snmp-libs.x86_64 1:5.7.2-49.el7 will be installed
--> Finished Dependency Resolution
Error: Package: libnl3-cli-3.2.21-10.el7.x86_64 (@anaconda)
           Requires: libnl3 = 3.2.21-10.el7
           Removing: libnl3-3.2.21-10.el7.x86_64 (@anaconda)
               libnl3 = 3.2.21-10.el7
           Updated By: libnl3-3.2.28-4.el7.x86_64 (dsp-core)
               libnl3 = 3.2.28-4.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@node4 ~]# 

原因是因为keepalived需要把包libnl3-3.2.21-10.el7.x86_64更新到 libnl3 = 3.2.28-4.el7,但是libnl3-cli-3.2.21-10.el7.x86_64需要libnl3-3.2.21-10.el7.x86_64,所以无法会报错
解决办法:
把libnl3-cli=3.2.28-4.el7包和相关依赖也下载下来就行了

;