# Installation problems - Public key not available

**URL:** <https://discuss.elastic.co/t/installation-problems-public-key-not-available/300571>\
**Category:** Elasticsearch\
**Created:** [March 24, 2022, 12:49pm UTC](https://discuss.elastic.co/t/installation-problems-public-key-not-available/300571 "2022-03-24T12:49:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user111](https://avatars.discourse-cdn.com/v4/letter/u/e95f7d/32.png) [@user111](https://discuss.elastic.co/u/user111)\
**Post date:** [March 24, 2022, 12:49pm UTC](https://discuss.elastic.co/t/installation-problems-public-key-not-available/300571/1 "2022-03-24T12:49:51Z")

</div>

Dear community,

I´m trying to install the ELK Stack as explained in the official documentation here:

> **[Install Elasticsearch with Debian Package | Elasticsearch Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html)**

I´m running a Ubuntu 18.04 machine and I´m getting the following error while executing `sudo apt-get update && sudo apt-get install elasticsearch`

Error:

```auto
Error:5 https://artifacts.elastic.co/packages/8.x/apt stable InRelease
  The following signatures could not be verified because their public key is not available: NO_PUBKEY D27D666CD88E42B4
Reading package lists... Done
W: GPG error: https://artifacts.elastic.co/packages/8.x/apt stable InRelease: The following signatures could not be verified because their public key is not available: NO_PUBKEY D27D666CD88E42B4
E: The repository https://artifacts.elastic.co/packages/8.x/apt stable InRelease is unsigned.
N: Updating from such a repository cannot be performed in a secure manner, so it is disabled by default.
N: See the apt-secure(8) man page for more details on creating repository packages and customizing them.

```

Can someone please assist me here. I did the installation as explained step by step.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 24, 2022, 1:10pm UTC](https://discuss.elastic.co/t/installation-problems-public-key-not-available/300571/2 "2022-03-24T13:10:43Z")

</div>

The above linked documentation has a paragraph named `Import the Elasticsearch PGP Key` at [Install Elasticsearch with Debian Package | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#deb-key)

Have you done this?

---

<div class="post-metadata">

**Author:** ![user111](https://avatars.discourse-cdn.com/v4/letter/u/e95f7d/32.png) [@user111](https://discuss.elastic.co/u/user111)\
**Post date:** [March 24, 2022, 1:12pm UTC](https://discuss.elastic.co/t/installation-problems-public-key-not-available/300571/3 "2022-03-24T13:12:43Z")

</div>

Hi Spinscale,

yes, I´ve done every single step. This is why I`m really confused.  
Thanks for your fast reply.

If I check the available keys I can find it in the apt-key list:

```auto
pub rsa2048 2013-09-16 [SC]
      4609 5ACC 8548 582C 1A26 99A9 D27D 666C D88E 42B4
uid [unkown] Elasticsearch (Elasticsearch Signing Key) <dev_ops@elasticsearch.org>
sub rsa2048 2013-09-16 [E]

/etc/apt/trusted.gpg.d/ansible_ubuntu_ansible.gpg

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2022, 1:13pm UTC](https://discuss.elastic.co/t/installation-problems-public-key-not-available/300571/4 "2022-04-21T13:13:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
