This is related to the known issue of debconf not setting DPKG_MAINTSCRIPT_PACKAGE (and related variables) when invoking maintainer scripts.
This is related to the known issue of debconf not setting DPKG_MAINTSCRIP T_PACKAGE (and related variables) when invoking maintainer scripts.