Clean install of ES 7.13.2 on Ubuntu 20.04 hangs

the problem sounds very similar to Working with elasticsearch-keystore

and possibly Docs say elasticsearch-keystore must be run as the elasticsearch user but that fails because of permissions · Issue #66133 · elastic/elasticsearch · GitHub

it's getting to /var/lib/dpkg/info/elasticsearch.postinst and hanging at the elasticsearch-keystore create in this seciton of that file:

# the equivalent code for rpm is in posttrans
if [ "$PACKAGE" = "deb" ]; then
    if [ ! -f "${ES_PATH_CONF}"/elasticsearch.keystore ]; then
        /usr/share/elasticsearch/bin/elasticsearch-keystore create
        chown root:elasticsearch "${ES_PATH_CONF}"/elasticsearch.keystore
        chmod 660 "${ES_PATH_CONF}"/elasticsearch.keystore
        md5sum "${ES_PATH_CONF}"/elasticsearch.keystore > "${ES_PATH_CONF}"/.elasticsearch.keystore.initial_md5sum
    else
        if /usr/share/elasticsearch/bin/elasticsearch-keystore has-passwd --silent ; then
          echo "### Warning: unable to upgrade encrypted keystore" 1>&2
          echo " Please run elasticsearch-keystore upgrade and enter password" 1>&2
        else
          /usr/share/elasticsearch/bin/elasticsearch-keystore upgrade
        fi
    fi
fi

exit 0
# Built for packages-7.13.2 (deb)

ubuntu@es-master1:~$