# Official apt repository (451 Unavailable For Legal Reasons)

**URL:** <https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494>\
**Category:** Elasticsearch\
**Created:** [May 13, 2020, 6:09pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494 "2020-05-13T18:09:39Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![oassuncao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oassuncao/32/70468_2.png) [@oassuncao](https://discuss.elastic.co/u/oassuncao)\
**Post date:** [June 16, 2020, 1:47pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/41 "2020-06-16T13:47:54Z")

</div>

Hey Mark,

I'm with the same problem, my host IP address is 165.22.236.91

---

<div class="post-metadata">

**Author:** ![mmenozzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmenozzi/32/70475_2.png) [@mmenozzi](https://discuss.elastic.co/u/mmenozzi)\
**Post date:** [June 16, 2020, 4:08pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/42 "2020-06-16T16:08:46Z")

</div>

Hi,  
same here now on DigitalOcean FRA1. Public IP address is 104.248.27.109.

```auto
$ wget -vO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
--2020-06-16 18:03:12-- https://artifacts.elastic.co/GPG-KEY-elasticsearch
Resolving artifacts.elastic.co (artifacts.elastic.co)... 151.101.114.222, 2a04:4e42:1b::734
Connecting to artifacts.elastic.co (artifacts.elastic.co)|151.101.114.222|:443... connected.
HTTP request sent, awaiting response... 451 Unavailable For Legal Reasons
2020-06-16 18:03:12 ERROR 451: Unavailable For Legal Reasons.

gpg: no valid OpenPGP data found.

```

---

<div class="post-metadata">

**Author:** ![busseyl](https://avatars.discourse-cdn.com/v4/letter/b/bc79bd/32.png) [@busseyl](https://discuss.elastic.co/u/busseyl)\
**Post date:** [June 16, 2020, 4:47pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/43 "2020-06-16T16:47:29Z")

</div>

This continues to be an issue. Most recent attempt from IP 159.203.7.233:  
...  
Err:12 [https://packages.elastic.co/kibana/4.6/debian](https://packages.elastic.co/kibana/4.6/debian) stable Release  
451 Unavailable For Legal Reasons  
Err:20 [https://artifacts.elastic.co/packages/5.x/apt](https://artifacts.elastic.co/packages/5.x/apt) stable Release  
451 Unavailable For Legal Reasons  
Err:23 [https://artifacts.elastic.co/packages/6.x/apt](https://artifacts.elastic.co/packages/6.x/apt) stable Release  
451 Unavailable For Legal Reasons  
Err:25 [https://artifacts.elastic.co/packages/7.x/apt](https://artifacts.elastic.co/packages/7.x/apt) stable Release  
451 Unavailable For Legal Reasons

---

<div class="post-metadata">

**Author:** ![crontab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/crontab/32/70477_2.png) [@crontab](https://discuss.elastic.co/u/crontab)\
**Post date:** [June 16, 2020, 5:54pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/44 "2020-06-16T17:54:11Z")

</div>

64.227.18.113, which is a droplet with Digital Ocean in their NYC1 datacenter:

# wget [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch)

--2020-06-16 17:52:37-- [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch)  
Resolving [artifacts.elastic.co](http://artifacts.elastic.co) ([artifacts.elastic.co](http://artifacts.elastic.co))... 151.101.210.222, 2a04:4e42:31::734  
Connecting to [artifacts.elastic.co](http://artifacts.elastic.co) ([artifacts.elastic.co](http://artifacts.elastic.co))|151.101.210.222|:443... connected.  
HTTP request sent, awaiting response... 451 Unavailable For Legal Reasons  
2020-06-16 17:52:37 ERROR 451: Unavailable For Legal Reasons.

Seriously guys, this makes it a pain in the ass to use your product correctly, and it's been going on for a long time. Give us a way around it or get it fixed. PLEASE.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 16, 2020, 10:46pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/45 "2020-06-16T22:46:57Z")

</div>

Thanks for the IPs folks, please do keep listing them and we will pass them to our provider.

---

<div class="post-metadata">

**Author:** ![hitman247m](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hitman247m/32/70494_2.png) [@hitman247m](https://discuss.elastic.co/u/hitman247m)\
**Post date:** [June 17, 2020, 4:47am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/46 "2020-06-17T04:47:16Z")

</div>

Hi,

I'm having the same issue from my colo provider in Canada:

```auto
$ sudo dnf update
CentOS-8 - AppStream 14 kB/s | 4.3 kB 00:00    
CentOS-8 - Base 719 B/s | 3.9 kB 00:05    
CentOS-8 - Base 270 kB/s | 2.2 MB 00:08    
CentOS-8 - Extras 4.8 kB/s | 1.5 kB 00:00    
Docker CE Stable - x86_64 77 kB/s | 3.5 kB 00:00    
Elastic repository for 7.x packages 0.0 B/s | 0 B 00:00    
Failed to download metadata for repo 'elastic-7.x'
Error: Failed to download metadata for repo 'elastic-7.x'
 
$ sudo rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch
curl: (22) The requested URL returned error: 451 
error: https://packages.elastic.co/GPG-KEY-elasticsearch: import read failed(2).

```

The public IP is 38.117.105.228

---

<div class="post-metadata">

**Author:** ![Dmitri\_Koukoulian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitri_koukoulian/32/52956_2.png) [@Dmitri\_Koukoulian](https://discuss.elastic.co/u/Dmitri_Koukoulian)\
**Post date:** [June 17, 2020, 11:54am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/47 "2020-06-17T11:54:14Z")

</div>

Hi warkolm,

here is my IP: 159.89.33.40

It's Digital Ocean NYC3, if it makes sense

Thank you for you time and support.

---

<div class="post-metadata">

**Author:** ![rickyodin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickyodin/32/70545_2.png) [@rickyodin](https://discuss.elastic.co/u/rickyodin)\
**Post date:** [June 17, 2020, 2:50pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/48 "2020-06-17T14:50:52Z")

</div>

`E: Failed to fetch https://artifacts.elastic.co/packages/7.x/apt/dists/stable/InRelease 451 Unavailable For Legal Reasons [IP: 151.101.18.222 443]`

DigitalOcean LON1, been waiting a week for fix - anyone know of mirror?

---

<div class="post-metadata">

**Author:** ![rmcevoy](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rmcevoy](https://discuss.elastic.co/u/rmcevoy)\
**Post date:** [June 17, 2020, 3:08pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/49 "2020-06-17T15:08:07Z")

</div>

I've checked round for a mirror but couldn't find one.

@warkolm any idea how long it'd take for each listed IP to be resolved?  
The trouble server is meant to be live on Friday but we'd have no central logging in place at this rate which would be scary.

---

<div class="post-metadata">

**Author:** ![rickyodin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickyodin/32/70545_2.png) [@rickyodin](https://discuss.elastic.co/u/rickyodin)\
**Post date:** [June 17, 2020, 3:47pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/50 "2020-06-17T15:47:18Z")

</div>

@rmcevoy need it for a production server also - considering installing openvpn and tunneling through one of my other servers, it should work in theory (then disconnect after). Or it might be possible to build from source?

---

<div class="post-metadata">

**Author:** ![rmcevoy](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rmcevoy](https://discuss.elastic.co/u/rmcevoy)\
**Post date:** [June 17, 2020, 5:13pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/51 "2020-06-17T17:13:45Z")

</div>

@rickyodin I attempted using OpenVPN and but the second I routed traffic through the vpn my SSH connection dropped and I had to reboot 😅  
I don't want to build from source as then I'll have to maintain the updates myself instead or roll-back later to the official releases

---

<div class="post-metadata">

**Author:** ![rickyodin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickyodin/32/70545_2.png) [@rickyodin](https://discuss.elastic.co/u/rickyodin)\
**Post date:** [June 17, 2020, 5:55pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/52 "2020-06-17T17:55:55Z")

</div>

Ah yes, good point. I'm wondering if another new droplet would be blocked? Because could build snapshot of droplet -\> restore to another droplet -\> install elasticsearch -\> snapshot -\> restore to original droplet. #effort

---

<div class="post-metadata">

**Author:** ![rmcevoy](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@rmcevoy](https://discuss.elastic.co/u/rmcevoy)\
**Post date:** [June 17, 2020, 6:10pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/53 "2020-06-17T18:10:13Z")

</div>

Problem is you won't know until you try it, unfortunately the floating IPs can't be seen by droplets either so you can't even use that as a workaround by routing all traffic through that IP.

If the problem isn't resolved by friday morning I'll have to duplicate my whole droplet and test if that works instead

---

<div class="post-metadata">

**Author:** ![Ste](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Ste](https://discuss.elastic.co/u/Ste)\
**Post date:** [June 17, 2020, 9:47pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/54 "2020-06-17T21:47:26Z")

</div>

I'm also experiencing this issue on DigitalOcean, but not on other providers.  
DigitalOcean Server IP: 167.71.9.136  
Datacenter: Amsterdam 3

---

<div class="post-metadata">

**Author:** ![JonathanBowker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathanbowker/32/85314_2.png) [@JonathanBowker](https://discuss.elastic.co/u/JonathanBowker)\
**Post date:** [June 18, 2020, 1:00pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/55 "2020-06-18T13:00:35Z")

</div>

I am also experiencing the same LON1 digitalocean

---

<div class="post-metadata">

**Author:** ![rugma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugma/32/69271_2.png) [@rugma](https://discuss.elastic.co/u/rugma)\
**Post date:** [June 18, 2020, 6:46pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/56 "2020-06-18T18:46:28Z")

</div>

the new one, in DigitalOcean Canada is 165.227.46.175

---

<div class="post-metadata">

**Author:** ![droplet](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@droplet](https://discuss.elastic.co/u/droplet)\
**Post date:** [June 18, 2020, 10:13pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/57 "2020-06-18T22:13:50Z")

</div>

This is unbelievable... still happening at FRA1 DigitalOcean.

I'd rather not list my ip publicly.

---

<div class="post-metadata">

**Author:** ![MBConsultingUK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbconsultinguk/32/70700_2.png) [@MBConsultingUK](https://discuss.elastic.co/u/MBConsultingUK)\
**Post date:** [June 19, 2020, 10:23am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/58 "2020-06-19T10:23:20Z")

</div>

Also seeing this - DO LON1

This is causing us a major issue at the moment as all our traffic flows through a couple of servers in this region which act as aggregators, and our outbound proxy is in this region as well meaning that anything behind the proxy (we have site-to-site VPN's for all traffic) is also denied access to deploy.

@warkolm: For obvious security reasons I'm unable to share the affected IP Addresses, but as a DO partner I'm happy to talk with them about it as well or at least put someone from Elastic in touch with them if you're not speaking already?

FWIW, we're using YUM, not Apt, but I suspect it's the same CDN causing these issues!

---

<div class="post-metadata">

**Author:** ![MBConsultingUK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbconsultinguk/32/70700_2.png) [@MBConsultingUK](https://discuss.elastic.co/u/MBConsultingUK)\
**Post date:** [June 19, 2020, 12:06pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/59 "2020-06-19T12:06:02Z")

</div>

I should also point out that this is happening with CURL as well when trying to download any of the binaries, so trying to install those "directly" isn't really an option either:

```auto
curl -I https://artifacts.elastic.co/downloads/logstash/logstash-7.8.0.rpm
HTTP/1.1 451 Unavailable For Legal Reasons
Connection: close
Content-Length: 0
Retry-After: 0
Accept-Ranges: bytes
Date: Fri, 19 Jun 2020 12:04:20 GMT
Via: 1.1 varnish
X-Served-By: cache-lcy19226-LCY
X-Cache: MISS
X-Cache-Hits: 0
X-Timer: S1592568260.049992,VS0,VE0
server: ElasticInfrastructure

```

---

<div class="post-metadata">

**Author:** ![MBConsultingUK](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mbconsultinguk/32/70700_2.png) [@MBConsultingUK](https://discuss.elastic.co/u/MBConsultingUK)\
**Post date:** [June 20, 2020, 7:03pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/60 "2020-06-20T19:03:54Z")

</div>

I've raised this with DO, they're looking into it.

[Previous page](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494.md?page=2)

[Next page](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494.md?page=4)
