Issue
Execution of apt update && apt upgrade fails with:
E: The package imunify360-ossec-server needs to be reinstalled, but an archive for it can't be found.
Environment
- Imunify360
- wazuh-agent
- Plesk
- Ubuntu 20.04
Solution
Unfortunately, Wazuh and OSSEC cannot be installed on the server together. The wazuh-agent uses the OSSEC components, similar to what imunify360 does, therefore conflicts.
The package wazuh-agent should be removed or Imunify uninstalled:
1. Remove broken packages
# dpkg --purge --force-all imunify360-ossec-server
2. Remove all leftovers, by using our deploy script is recommended for such scenarios
# wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
# bash i360deploy.sh --uninstall
3. Remove wazuh-agent and its ossec components.
4. Connect to Plesk UI and proceed with a reinstall of the imunify360 Extention OR just run the script without passing the "--uninstall" flag:
# bash i360deploy.sh
Removing wazuh-agent, Imunify360 will install smoothly with all components in.
Cause
Partial not finished installation of imunify360-ossec-server:
# apt info imunify360-ossec-server
Package: imunify360-ossec-server
Version: 3.1.0-98
Status: deinstall reinstreq half-installed
Priority: extra
Section: admin
Installed-Size: unknown
Download-Size: unknown
APT-Manual-Installed: no
APT-Sources: /var/lib/dpkg/status
It happens because the Imunify360 installer is not able to install all components due to conflicts. The package imunify360-ossec-server depends on ossec-hids, however, it's already being used by other packages, specifically wazuh-agent. Imunify360 installation routines fail here:
dpkg: error processing archive /var/cache/apt/archives/imunify360-ossec-server_3.1.0-98_amd64.deb (--unpack):
trying to overwrite '/var/ossec/bin/manage_agents', which is also in package wazuh-agent 3.13.2-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
To double-check the conflicts, see:
# dpkg -S /var/ossec/bin/manage_agents
wazuh-agent: /var/ossec/bin/manage_agents
Imunify360 conflicts with the Wazuh agent since both uses OSSEC components.
Comments
0 comments
Please sign in to leave a comment.