Wazuh Agent Installlation Conflicts on Centos Stream 9

82 views
Skip to first unread message

Peter Wong

unread,
Dec 6, 2024, 5:49:49 AM12/6/24
to Wazuh | Mailing List
Dear forumer, 

I had installed Wazuh dashboard on my Linux machine using this command

curl -sO https://packages.wazuh.com/4.9/wazuh-install.sh && sudo bash ./wazuh-install.sh -a

I can access the wazuh dashboard using https://localhost:443. I follow the instructions here to deploy wazuh agent for my Centos stream 9. 

When issued the command yum install wazuh-agent, i get conflicts mesages on console. 

Error:
 Problem: problem with installed package wazuh-manager-4.9.2-1.x86_64
  - package wazuh-manager-4.9.2-1.x86_64 from @System conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.9.2-1.x86_64 from @System
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.0.0-1.x86_64 from wazuh
  - package wazuh-manager-4.0.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.0.1-1.x86_64 from wazuh
  - package wazuh-manager-4.0.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.0.2-1.x86_64 from wazuh
  - package wazuh-manager-4.0.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.0.3-1.x86_64 from wazuh
  - package wazuh-manager-4.0.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.0.4-1.x86_64 from wazuh
  - package wazuh-manager-4.0.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.1.0-1.x86_64 from wazuh
  - package wazuh-manager-4.1.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.1.1-1.x86_64 from wazuh
  - package wazuh-manager-4.1.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.1.2-1.x86_64 from wazuh
  - package wazuh-manager-4.1.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.1.3-1.x86_64 from wazuh
  - package wazuh-manager-4.1.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.1.4-1.x86_64 from wazuh
  - package wazuh-manager-4.1.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.1.5-1.x86_64 from wazuh
  - package wazuh-manager-4.1.5-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.0-1.x86_64 from wazuh
  - package wazuh-manager-4.2.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.1-1.x86_64 from wazuh
  - package wazuh-manager-4.2.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.2-1.x86_64 from wazuh
  - package wazuh-manager-4.2.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.3-1.x86_64 from wazuh
  - package wazuh-manager-4.2.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.4-1.x86_64 from wazuh
  - package wazuh-manager-4.2.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.5-1.x86_64 from wazuh
  - package wazuh-manager-4.2.5-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.6-1.x86_64 from wazuh
  - package wazuh-manager-4.2.6-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.2.7-1.x86_64 from wazuh
  - package wazuh-manager-4.2.7-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.0-1.x86_64 from wazuh
  - package wazuh-manager-4.3.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.1-1.x86_64 from wazuh
  - package wazuh-manager-4.3.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.10-1.x86_64 from wazuh
  - package wazuh-manager-4.3.10-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.11-1.x86_64 from wazuh
  - package wazuh-manager-4.3.11-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.2-1.x86_64 from wazuh
  - package wazuh-manager-4.3.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.3-1.x86_64 from wazuh
  - package wazuh-manager-4.3.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.4-1.x86_64 from wazuh
  - package wazuh-manager-4.3.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.5-1.x86_64 from wazuh
  - package wazuh-manager-4.3.5-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.6-1.x86_64 from wazuh
  - package wazuh-manager-4.3.6-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.7-1.x86_64 from wazuh
  - package wazuh-manager-4.3.7-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.7-2.x86_64 from wazuh
  - package wazuh-manager-4.3.7-2.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.8-1.x86_64 from wazuh
  - package wazuh-manager-4.3.8-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.3.9-1.x86_64 from wazuh
  - package wazuh-manager-4.3.9-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.4.0-1.x86_64 from wazuh
  - package wazuh-manager-4.4.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.4.1-1.x86_64 from wazuh
  - package wazuh-manager-4.4.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.4.2-1.x86_64 from wazuh
  - package wazuh-manager-4.4.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.4.3-1.x86_64 from wazuh
  - package wazuh-manager-4.4.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.4.4-1.x86_64 from wazuh
  - package wazuh-manager-4.4.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.4.5-1.x86_64 from wazuh
  - package wazuh-manager-4.4.5-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.5.0-1.x86_64 from wazuh
  - package wazuh-manager-4.5.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.5.1-1.x86_64 from wazuh
  - package wazuh-manager-4.5.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.5.2-1.x86_64 from wazuh
  - package wazuh-manager-4.5.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.5.3-1.x86_64 from wazuh
  - package wazuh-manager-4.5.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.5.4-1.x86_64 from wazuh
  - package wazuh-manager-4.5.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.6.0-1.x86_64 from wazuh
  - package wazuh-manager-4.6.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.7.0-1.x86_64 from wazuh
  - package wazuh-manager-4.7.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.7.1-1.x86_64 from wazuh
  - package wazuh-manager-4.7.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.7.2-1.x86_64 from wazuh
  - package wazuh-manager-4.7.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.7.3-1.x86_64 from wazuh
  - package wazuh-manager-4.7.3-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.7.4-1.x86_64 from wazuh
  - package wazuh-manager-4.7.4-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.7.5-1.x86_64 from wazuh
  - package wazuh-manager-4.7.5-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.8.0-1.x86_64 from wazuh
  - package wazuh-manager-4.8.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.8.1-1.x86_64 from wazuh
  - package wazuh-manager-4.8.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.8.2-1.x86_64 from wazuh
  - package wazuh-manager-4.8.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.9.0-1.x86_64 from wazuh
  - package wazuh-manager-4.9.0-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.9.1-1.x86_64 from wazuh
  - package wazuh-manager-4.9.1-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - package wazuh-agent-4.9.2-1.x86_64 from wazuh conflicts with wazuh-manager provided by wazuh-manager-4.9.2-1.x86_64 from wazuh
  - package wazuh-manager-4.9.2-1.x86_64 from wazuh conflicts with wazuh-agent provided by wazuh-agent-4.9.2-1.x86_64 from wazuh
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

How to solve this?







Md. Nazmur Sakib

unread,
Dec 6, 2024, 6:11:45 AM12/6/24
to Wazuh | Mailing List

Hi Peter,


I can see different versions of Wazuh in your log.


Compatibility between the Wazuh agent and the Wazuh manager is guaranteed when the Wazuh manager's version is later than or equal to that of the Wazuh agent.


Uninstall the agent from your endpoint

yum remove wazuh-agent


systemctl disable wazuh-agent

systemctl daemon-reload



Ref: https://documentation.wazuh.com/current/installation-guide/uninstalling-wazuh/agent.html#uninstalling-linux-agent

Next, install again following this document:

https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-linux.html


You can also get the correct command for installing the agent from 

Deploy new agent of Endpoint Summary Dashboard





Let me know if this works for you.

Peter Wong

unread,
Dec 8, 2024, 11:49:41 PM12/8/24
to Md. Nazmur Sakib, Wazuh | Mailing List
Dear forumer, I still getting the same error message he issue this command
WAZUH_MANAGER="127.0.0.1" yum install wazuh-agent


Regards,

Nicholas Wong
016-396 3326


--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/PQK6GJLOh7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wazuh/6a8c1e8e-3845-490c-90e0-88c42501e6d9n%40googlegroups.com.

Md. Nazmur Sakib

unread,
Dec 9, 2024, 12:59:45 AM12/9/24
to Wazuh | Mailing List

Can you run these commands?

Uninstall the Wazuh agent


yum remove wazuh-agent
systemctl disable wazuh-agent

systemctl daemon-reload




Install  the Wazuh agent
curl -o wazuh-agent-4.9.1-1.x86_64.rpm https://packages.wazuh.com/4.x/yum/wazuh-agent-4.9.1-1.x86_64.rpm && sudo WAZUH_MANAGER='127.0.0.1' WAZUH_AGENT_GROUP='default' WAZUH_AGENT_NAME='my_agent' rpm -ihv wazuh-agent-4.9.1-1.x86_64.rpm

Replace 127.0.0.1 with the manager IP


Start the agent
sudo systemctl daemon-reload

sudo systemctl enable wazuh-agent

sudo systemctl start wazuh-agent



If you are still not able to install the agent following this

Download the agent using this link and copy it to your endpoint

https://packages.wazuh.com/4.x/yum/wazuh-agent-4.9.2-1.x86_64.rpm


If you have a different architecture you can find the packages on this page;
https://documentation.wazuh.com/current/installation-guide/packages-list.html#wazuh-agent

After installing the agent update the agent IP from the configuration before starting the agent.

/var/ossec/etc/ossec.conf

Let me know the update on the issue.
Reply all
Reply to author
Forward
0 new messages