# Error with the key

**URL:** <https://discuss.elastic.co/t/error-with-the-key/127267>\
**Category:** Beats\
**Created:** [April 9, 2018, 8:06am UTC](https://discuss.elastic.co/t/error-with-the-key/127267 "2018-04-09T08:06:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flochon](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@flochon](https://discuss.elastic.co/u/flochon)\
**Post date:** [April 9, 2018, 8:06am UTC](https://discuss.elastic.co/t/error-with-the-key/127267/1 "2018-04-09T08:06:39Z")

</div>

I want install filebeat on my server but when I write this command  
`wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -`

I got this error : `gpg: no valid OpenPGP data found.`

How resolve it ?

I run with Ubuntu 16.04.

---

<div class="post-metadata">

**Author:** ![flochon](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@flochon](https://discuss.elastic.co/u/flochon)\
**Post date:** [April 9, 2018, 8:52am UTC](https://discuss.elastic.co/t/error-with-the-key/127267/2 "2018-04-09T08:52:46Z")

</div>

I have this message also : `Could not resolve host: artifacts.elastic.co`

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [April 9, 2018, 9:25am UTC](https://discuss.elastic.co/t/error-with-the-key/127267/3 "2018-04-09T09:25:21Z")

</div>

Where are you trying to download this from? I am in Europe, but I can access `artifacts.elastic.co`.

---

<div class="post-metadata">

**Author:** ![flochon](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@flochon](https://discuss.elastic.co/u/flochon)\
**Post date:** [April 9, 2018, 9:49am UTC](https://discuss.elastic.co/t/error-with-the-key/127267/4 "2018-04-09T09:49:42Z")

</div>

Now the command runs, I change nothing.  
I don't understand why, in the morning, I couldn't launch it.

Thanks.

---

<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:** [May 7, 2018, 11:49am UTC](https://discuss.elastic.co/t/error-with-the-key/127267/5 "2018-05-07T11:49:43Z")

</div>

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