Hello Rajendra,
Apologies for the late reply.
The error you are getting while installing the wazuh-manager package indicates a problem with dpkg package installer. The problem may be due to a previous failed software installation.
While checking the screenshot provided, I could see that you ran apt-get -y install wazuh-manager but DPKG is trying to upgrade the package. This means the package has been installed previously and probably failed.
Regarding the error you get while trying to initialize the indexer cluster, the issue may be due to certificates not existing or incorrectly configured. Please make sure to generate the certificates as explained
here and deploy them as explained
here.
I hope this helps. Please let me know if you need any further assistance here.