# Clean install of ES 7.13.2 on Ubuntu 20.04 hangs

**URL:** https://discuss.elastic.co/t/clean-install-of-es-7-13-2-on-ubuntu-20-04-hangs/276808
**Category:** Elasticsearch
**Created:** [June 23, 2021, 2:22pm UTC](https://discuss.elastic.co/t/clean-install-of-es-7-13-2-on-ubuntu-20-04-hangs/276808 "2021-06-23T14:22:57Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Roger\_Clark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roger_clark/32/77615_2.png) [@Roger\_Clark](https://discuss.elastic.co/u/Roger_Clark)
#### Post date: [June 24, 2021, 1:39pm UTC](https://discuss.elastic.co/t/clean-install-of-es-7-13-2-on-ubuntu-20-04-hangs/276808/4 "2021-06-24T13:39:15Z")

</div>

the problem sounds very similar to [Working with elasticsearch-keystore](https://discuss.elastic.co/t/working-with-elasticsearch-keystore/234429)

and possibly [Docs say elasticsearch-keystore must be run as the elasticsearch user but that fails because of permissions · Issue #66133 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/66133)

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

```auto
# 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:~$

```

---

_[View the full topic](https://discuss.elastic.co/t/clean-install-of-es-7-13-2-on-ubuntu-20-04-hangs/276808)._
