ossec / ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
http://www.ossec.net
Other
4.44k stars 1.04k forks source link

Amazon Linux - dependency errors #2025

Closed ylmig closed 2 years ago

ylmig commented 2 years ago

I would like to install OSSEC server on a ec2 instance. Unfortunately the install progress failed due to unresolved dependencies:

sudo yum install ossec-hids-server

Failed to set locale, defaulting to C Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00:00 amzn-updates | 3.8 kB 00:00:00 7 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package ossec-hids-server.x86_64 1:3.6.0-11279.amzn2.art will be installed --> Processing Dependency: ossec-hids = 1:3.6.0-11279.amzn2.art for package: 1:ossec-hids-server-3.6.0-11279.amzn2.art.x86_64 --> Processing Dependency: libGeoIP.so.1()(64bit) for package: 1:ossec-hids-server-3.6.0-11279.amzn2.art.x86_64 --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:ossec-hids-server-3.6.0-11279.amzn2.art.x86_64 --> Processing Dependency: libpcre2-8.so.0()(64bit) for package: 1:ossec-hids-server-3.6.0-11279.amzn2.art.x86_64 --> Running transaction check ---> Package GeoIP.x86_64 0:1.4.8-1.5.amzn1 will be installed ---> Package mysql55-libs.x86_64 0:5.5.62-1.23.amzn1 will be installed ---> Package ossec-hids.x86_64 1:3.6.0-11279.amzn2.art will be installed ---> Package ossec-hids-server.x86_64 1:3.6.0-11279.amzn2.art will be installed --> Processing Dependency: libpcre2-8.so.0()(64bit) for package: 1:ossec-hids-server-3.6.0-11279.amzn2.art.x86_64 --> Finished Dependency Resolution Error: Package: 1:ossec-hids-server-3.6.0-11279.amzn2.art.x86_64 (atomic) Requires: libpcre2-8.so.0()(64bit) You could try using --skip-broken to work around the problem

Is there anything I can do to solve this? What is the recommended way to get this working?

atomicturtle commented 2 years ago

According to my system this is a dependency distributed by amazon:

rpm -ql pcre2 |grep libpcre2-8 /usr/lib64/libpcre2-8.so.0 /usr/lib64/libpcre2-8.so.0.5.0

rpm -qi pcre2 Name : pcre2 Version : 10.23 Release : 2.amzn2.0.2 Architecture: x86_64 Install Date: Mon Jan 17 15:33:35 2022 Group : System Environment/Libraries Size : 581793 License : BSD Signature : RSA/SHA256, Fri Aug 24 13:45:35 2018, Key ID 11cf1f95c87f5b1a Source RPM : pcre2-10.23-2.amzn2.0.2.src.rpm Build Date : Tue Jul 31 21:05:23 2018 Build Host : build.amazon.com Relocations : (not relocatable) Packager : Amazon Linux Vendor : Amazon Linux URL : http://www.pcre.org/ Summary : Perl-compatible regular expression library

I think you'd need to contact amazon about what the problem is here. For reference the log attached is from an install on amazon linux: install.log