# Error on import the Elasticsearch public GPG key into apt

**URL:** <https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337>\
**Category:** Elasticsearch\
**Created:** [April 13, 2022, 1:11pm UTC](https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337 "2022-04-13T13:11:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sashasingle](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sashasingle](https://discuss.elastic.co/u/sashasingle)\
**Post date:** [April 13, 2022, 1:11pm UTC](https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337/1 "2022-04-13T13:11:21Z")

</div>

Hi, cannot download GPG-KEY when i run this command wget -qO - [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch) | sudo apt-key add -. System send answer - gpg: no valid OpenPGP data found

---

<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:** [April 13, 2022, 2:11pm UTC](https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337/2 "2022-04-13T14:11:11Z")

</div>

is the key returned when running `wget` only without adding the key?

---

<div class="post-metadata">

**Author:** ![sashasingle](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@sashasingle](https://discuss.elastic.co/u/sashasingle)\
**Post date:** [April 13, 2022, 2:27pm UTC](https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337/3 "2022-04-13T14:27:43Z")

</div>

It isn't work with and without adding th key

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fa792c5bdeaa0d973f3d0aa5464e0f3da0ac9c9c.png)  
JHndrf0HF4dhgyVpkQOfXC.png)

---

<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:** [April 13, 2022, 2:58pm UTC](https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337/4 "2022-04-13T14:58:08Z")

</div>

Which country are you in? Care to share the IP address to make sure, there is no accidental IP block active (you can also send me a private message and I will forward that internally)?

---

<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 11, 2022, 2:58pm UTC](https://discuss.elastic.co/t/error-on-import-the-elasticsearch-public-gpg-key-into-apt/302337/5 "2022-05-11T14:58:39Z")

</div>

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