# Public key is not available

**URL:** <https://discuss.elastic.co/t/public-key-is-not-available/164332>\
**Category:** Kibana\
**Created:** [January 15, 2019, 3:23pm UTC](https://discuss.elastic.co/t/public-key-is-not-available/164332 "2019-01-15T15:23:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_Nathan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucas_nathan/32/39802_2.png) [@Lucas\_Nathan](https://discuss.elastic.co/u/Lucas_Nathan)\
**Post date:** [January 15, 2019, 3:23pm UTC](https://discuss.elastic.co/t/public-key-is-not-available/164332/1 "2019-01-15T15:23:12Z")

</div>

Hi everyone.

I'm installing kibana using this process: [Install Kibana with Debian package | Kibana Guide [8.11] | Elastic](https://www.elastic.co/guide/en/kibana/current/deb.html)

Unfortunately, when I run sudo apt-get install kibana it presents me with this error:

`sudo apt-get update && sudo apt-get install kibana`

> **W: GPG error: [https://artifacts.elastic.co/packages/6.x/apt](https://artifacts.elastic.co/packages/6.x/apt) stable Release: The following signatures couldn't be verified because the public key is not available: NO\_PUBKEY D27D666CD88E42B4**  
> E: The repository '[https://artifacts.elastic.co/packages/6.x/apt](https://artifacts.elastic.co/packages/6.x/apt) stable Release' is not signed.  
> N: Updating from such a repository can't be done securely, and is therefore disabled by default.  
> N: See apt-secure(8) manpage for repository creation and user configuration details.  
> W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target Translations (main/i18n/Translation-en\_US) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2  
> W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target Translations (main/i18n/Translation-en\_US) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3  
> W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3

I tried in two different machines, the same happened on both of them. Is it a problem on my side or is it a problem with elastic gpg?

---

<div class="post-metadata">

**Author:** ![Lucas\_Nathan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lucas_nathan/32/39802_2.png) [@Lucas\_Nathan](https://discuss.elastic.co/u/Lucas_Nathan)\
**Post date:** [January 15, 2019, 3:44pm UTC](https://discuss.elastic.co/t/public-key-is-not-available/164332/2 "2019-01-15T15:44:54Z")

</div>

Nevermind. I just did the installation on a CentOS in which I had previous downloaded and added the key, and it worked like a charm.  
For some reason when I try: `wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -` on my Ubuntu, it just takes forever. Maybe its some inconsistency on my network.

Anyway, problem solved for me.

---

<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:** [February 12, 2019, 3:45pm UTC](https://discuss.elastic.co/t/public-key-is-not-available/164332/3 "2019-02-12T15:45:05Z")

</div>

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