It checks the version number. Did you follow the instructions in Opensearch + Zammad: Version 2.0.0 of configured elasticsearch is not supported - #3 by sebix ?
You can workaround that by creating a dummy package, that provides elasticsearch:
Prepare the directory:
mkdir elasticsearch-dummy
cd elasticsearch-dummy
create a file elasticsearch-dummy
with content
Section: misc
Priority: optional
Standards-Version: 3.9.6
Package: elasticsearch-dummy
Version: 2.3.0-1 # or whatever you want
Maintainer: Your Name <yourname@example.com>
Provides: elasticsearch
Architecture: all
Description: Dummy package for ElasticSearch server
Dummy package for ElasticSearch server to satisfy dependencies of Zammad package.
Then build it:
equivs-build elasticsearch-dummy
install the resulting .deb
-file.