Package: ukui-power-manager Version: 4.20.0.0-1 Severity: serious Justification: fails to install
| Preparing to unpack .../276-ukui-power-manager_4.20.0.0-1_amd64.deb ... | /var/lib/dpkg/tmp.ci/preinst: line 7: dpkg-architecture: command not found | dpkg: error processing archive /tmp/apt-dpkg-install-f1rDWl/276-ukui-power-manager_4.20.0.0-1_amd64.deb (--unpack): | new ukui-power-manager package preinst maintainer script subprocess failed with exit status 127 | /var/lib/dpkg/tmp.ci/postrm: line 6: dpkg-architecture: command not found | dpkg: error while cleaning up: | new ukui-power-manager package postrm maintainer script subprocess failed with exit status 127 | Errors were encountered while processing: | /tmp/apt-dpkg-install-f1rDWl/276-ukui-power-manager_4.20.0.0-1_amd64.deb | E: Sub-process env returned an error code (1) For using dpkg-architecture in preinst, you must have Pre-Depends: dpkg-dev. More likely though, this is not the right solution. I looked into the preinst and see that the diversion path is computed using dpkg-architecture at runtime. This will be wrong when the package is installed for a foreign architecture. Instead, please interpolate the maintainer scripts at build time. Helmut

