In addition to what was said,
Note that a package from an APT-based distribution (e.g. Ubuntu) should not be installed in another APT-based distribution (e.g. Debian), as default. Also vice-versa.
This question is still useful if you are a package maintainer, but not for end-users. End-users should just don't install packages from alien distributions.
When you need cross-platform packages, see instead these solutions that were designed for that purpose:
Again, apt
packages are not designed to be cross-distribution and should not be used for that purpose. That is, if you are interested in avoiding to create Frankenstein.
Explanations:
https://wiki.debian.org/DontBreakDebian
https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian