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.42k stars 1.03k forks source link

Debian 9 Stretch install from repository fail #1264

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi, I try to install ossec manager from repository on Debian 9 Stretch: apt install dirmngr apt-key adv --fetch-keys http://ossec.wazuh.com/repos/apt/conf/ossec-key.gpg.key echo 'deb http://ossec.wazuh.com/repos/apt/debian stretch main' >> /etc/apt/sources.list.d/ossec.list apt update apt install ossec-hids. then: apt install ossec-hids Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: ossec-hids : Depends: libmysqlclient18 but it is not installable Depends: libssl1.0.0 but it is not installable E: Unable to correct problems, you have held broken packages.

How to solve this?

dimumlik commented 6 years ago

I have same problem

ddpbsd commented 6 years ago

Is there a libmysqlclient package for your distro/version? I don't have a Debian system, and I don't use the Wazuh package. Perhaps the packages created by @atomicturtle would work for you? https://ossec.github.io/downloads.html

ritzmann commented 6 years ago

The one from @atomicturtle is producing a different obscure error:

$ sudo apt install ossec-hids-agent ossec-hids-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ossec-hids-server : Conflicts: ossec-hids-agent but 2.9.3.2912stretch is to be installed
E: Unable to correct problems, you have held broken packages.
atomicturtle commented 6 years ago

Thats valid, you cant install an agent and a server package at the same time

ritzmann commented 6 years ago

Oops, thanks, beginner's mistake...

Napsty commented 6 years ago

DUP: https://github.com/ossec/ossec-hids/issues/1167

After switching to Atomicorp repository (instructions http://www.ossec.net/downloads.html), server package (ossec-hids-server) now installs fine on Stretch.

# apt-cache show ossec-hids-server | grep -i version
Version: 2.9.3.4466stretch

# dpkg -l|grep ossec
ii  ossec-hids-server               2.9.3.4466stretch              amd64        OSSEC Server - Host Based Intrusion Detection System