Looks like it is indeed the postinst. This has:
if [ "$type" = "configure" ]
then
    [...]
    # Add support for /etc/ld.so.conf.d
    if dpkg --compare-versions $preversion lt 2.3.6-16; then
Which is probably not correct on initial installation.
Attachment:
pgpfpLsBZCRGL.pgp
Description: PGP signature