Somebody had same kind of issue … not sure how/why all these packages are installed but somehow it was ~solved by
apt remove anthy uim libuim-custom2 libuim-scm0 libuim8 uim-anthy uim-fep uim-gtk2.0 uim-gtk3 uim-qt uim-qt5 uim-utils uim-xim uim-common
though you gotta be careful
Relevant thread: Dpkg errors with anthy/uim while migrating to buster