# PGP keys fails to install no valid openPGP data found

**URL:** <https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710>\
**Category:** Elasticsearch\
**Created:** [October 21, 2015, 5:51pm UTC](https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710 "2015-10-21T17:51:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoram](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yoram](https://discuss.elastic.co/u/yoram)\
**Post date:** [October 21, 2015, 5:51pm UTC](https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710/1 "2015-10-21T17:51:18Z")

</div>

Hi,

I am new to the elastic search technology and exploring my option with log analysis using Elastic search.  
The first step that I saw in installing Elasticsearch in to install the PGP key as follows:  
"wget -qO - [https://packages.elasticsearch.org/GPG-KEY-elasticsearch](https://packages.elasticsearch.org/GPG-KEY-elasticsearch) | sudo apt-key add -"

When I run the command I get an erro saying:  
GPG: no valid OpenPGP data found.

I didn't succeed to come around this issue.  
Can anyone help?

Using Ubuntu 14.04 on a VMWare

Thanks  
Yoram

---

<div class="post-metadata">

**Author:** ![yoram](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yoram](https://discuss.elastic.co/u/yoram)\
**Post date:** [October 22, 2015, 1:18am UTC](https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710/2 "2015-10-22T01:18:17Z")

</div>

Managed to resolve it.  
separated the command in to two commands and used directly the file name which was downloaded

---

<div class="post-metadata">

**Author:** ![czerasz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/czerasz/32/10964_2.png) [@czerasz](https://discuss.elastic.co/u/czerasz)\
**Post date:** [July 19, 2016, 11:05am UTC](https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710/3 "2016-07-19T11:05:25Z")

</div>

Happened to me when I installed `wget` like this:

```auto
apt-get install -y --no-install-recommends wget

```

Probably your `wget` can't handle `https`.

---

<div class="post-metadata">

**Author:** ![syswombat](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@syswombat](https://discuss.elastic.co/u/syswombat)\
**Post date:** [October 8, 2016, 4:49pm UTC](https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710/4 "2016-10-08T16:49:10Z")

</div>

@yoram  
Hello  
i do have the same error but i can't only do the second part of the command "sudo apt-key add -" there is just nothing happen ...

after a while tera Term is closing the conection and don't let me in again

---

<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:** [July 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/pgp-keys-fails-to-install-no-valid-openpgp-data-found/32710/5 "2017-07-05T22:13:50Z")

</div>


