As MrGeneration noted, it would helpful to get the full error.
I just attempted to install on a fresh Ubuntu 22.04.5 install and did not have any issues when following the guide here: Install with Package Manager — Zammad System Documentation documentation