fail2ban
CentOS 6.9에는 설치할 수 없습니다 . 이것이 내 구성입니다.
# cat /etc/*release
CentOS release 6.9 (Final)
CentOS release 6.9 (Final)
CentOS release 6.9 (Final)
# rpm -q epel-release
epel-release-6-8.noarch
내 설치 로그
# yum install fail2ban
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.awanti.com
* epel: ftp.nluug.nl
* extras: mirror.awanti.com
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.awanti.com
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package fail2ban.noarch 0:0.9.7-1.el7 will be installed
--> Processing Dependency: fail2ban-server = 0.9.7-1.el7 for package: fail2ban-0.9.7-1.el7.noarch
--> Processing Dependency: fail2ban-sendmail = 0.9.7-1.el7 for package: fail2ban-0.9.7-1.el7.noarch
--> Processing Dependency: fail2ban-firewalld = 0.9.7-1.el7 for package: fail2ban-0.9.7-1.el7.noarch
--> Running transaction check
---> Package fail2ban-firewalld.noarch 0:0.9.7-1.el7 will be installed
--> Processing Dependency: firewalld for package: fail2ban-firewalld-0.9.7-1.el7.noarch
---> Package fail2ban-sendmail.noarch 0:0.9.7-1.el7 will be installed
---> Package fail2ban-server.noarch 0:0.9.7-1.el7 will be installed
--> Processing Dependency: python(abi) = 2.7 for package: fail2ban-server-0.9.7-1.el7.noarch
--> Processing Dependency: systemd-python for package: fail2ban-server-0.9.7-1.el7.noarch
--> Processing Dependency: systemd for package: fail2ban-server-0.9.7-1.el7.noarch
--> Processing Dependency: systemd for package: fail2ban-server-0.9.7-1.el7.noarch
--> Finished Dependency Resolution
Error: Package: fail2ban-server-0.9.7-1.el7.noarch (epel)
Requires: python(abi) = 2.7
Installed: python-2.6.6-66.el6_8.x86_64 (@base)
python(abi) = 2.6
Available: python34-3.4.9-1.el7.x86_64 (epel)
python(abi) = 3.4
Available: python36-3.6.6-1.el7.x86_64 (epel)
python(abi) = 3.6
python(abi) = 3.6
Error: Package: fail2ban-server-0.9.7-1.el7.noarch (epel)
Requires: systemd-python
Error: Package: fail2ban-firewalld-0.9.7-1.el7.noarch (epel)
Requires: firewalld
Error: Package: fail2ban-server-0.9.7-1.el7.noarch (epel)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
내 Python 로그
# python -V
Python 2.6.6
# python3.6 -V
Python 3.6.6
python-boto
UPD: 이전 설치가 해결되었습니다.fail2ban
yum install python-boto
답변1
가능하다면, failure2ban을 설치하기 전에 python 패키지를 epel에서 python36으로 업데이트하세요.
답변2
다음 명령을 실행한 후 문제가 해결되었으므로 이는 캐시 문제인 것 같습니다.
yum clean all; yum makecache