The message error is '/var/lib/dpkg/info/zentyal-ca.postrm: line 10: /usr/share/zentyal/purge-module: No such file or directory' . This script is provided by zentyal-core, which is dpendency of zentyal-ca .
So to arrive to this situation either zentyal-core has been removed forcing dependencies or you have broken packages
The message error is '/var/lib/ dpkg/info/ zentyal- ca.postrm: line 10: /usr/share/ zentyal/ purge-module: No such file or directory' . This script is provided by zentyal-core, which is dpendency of zentyal-ca .
So to arrive to this situation either zentyal-core has been removed forcing dependencies or you have broken packages