# 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:** 2

<div class="post-metadata">

**Author:** ![MaJaHa95](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majaha95/32/26121_2.png) [@MaJaHa95](https://discuss.elastic.co/u/MaJaHa95)\
**Post date:** [May 29, 2020, 7:07am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/21 "2020-05-29T07:07:34Z")

</div>

FYI all, the issue may be _partially_ resolved. I just ran an upgrade, and got through four of my five notes, then the fifth encountered this error. So if you intend to have your cluster upgraded in entirety (e.g. if you want Kibana to start up), be careful about beginning the process now. All of my nodes are in SFO2.

I haven't played yet to see whether I can get around the issue somehow.

---

<div class="post-metadata">

**Author:** ![nmngt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nmngt/32/69381_2.png) [@nmngt](https://discuss.elastic.co/u/nmngt)\
**Post date:** [May 29, 2020, 10:19am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/22 "2020-05-29T10:19:33Z")

</div>

The issue still exists.. Digital Ocean, FRA1..

---

<div class="post-metadata">

**Author:** ![CarbonRook](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CarbonRook](https://discuss.elastic.co/u/CarbonRook)\
**Post date:** [May 29, 2020, 1:34pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/23 "2020-05-29T13:34:26Z")

</div>

Likewise in AMS3.

---

<div class="post-metadata">

**Author:** ![Kamal\_Saleh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kamal_saleh/32/24892_2.png) [@Kamal\_Saleh](https://discuss.elastic.co/u/Kamal_Saleh)\
**Post date:** [May 31, 2020, 2:51pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/24 "2020-05-31T14:51:18Z")

</div>

E: Failed to fetch [https://artifacts.elastic.co/packages/6.x/apt/dists/stable/InRelease](https://artifacts.elastic.co/packages/6.x/apt/dists/stable/InRelease) 451 Unavailable For Legal Reasons [IP: 151.101.210.222 443]

---

<div class="post-metadata">

**Author:** ![MaJaHa95](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majaha95/32/26121_2.png) [@MaJaHa95](https://discuss.elastic.co/u/MaJaHa95)\
**Post date:** [June 1, 2020, 12:48am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/25 "2020-06-01T00:48:43Z")

</div>

Still getting it on my fifth server as well. I scp'd the deb file to get Kibana working without having to leave the server off, but now I can't do backups because installing `repository-azure` calls out to the same CDN.

---

<div class="post-metadata">

**Author:** ![MikeHarness](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikeharness/32/67763_2.png) [@MikeHarness](https://discuss.elastic.co/u/MikeHarness)\
**Post date:** [June 2, 2020, 2:25am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/26 "2020-06-02T02:25:14Z")

</div>

This is getting old. Still failing for me as well.

---

<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 2, 2020, 2:28am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/27 "2020-06-02T02:28:54Z")

</div>

From time to time, IP blocks can be reallocated around the internet, and things like this happen. It's not super common to see such an impact, but I've definitely been hit by similar thing with bogon IP ranges in the past.

Our infra team has been working with our CDN provider on this, and the provider has made multiple changes to mitigate issues. I have made them aware of this thread as well so they can follow up.

---

<div class="post-metadata">

**Author:** ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)\
**Post date:** [June 2, 2020, 11:42pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/28 "2020-06-02T23:42:45Z")

</div>

To workaround this problem you can download the plugin zip file and install it locally [following those steps](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-management-custom-url.html).

---

<div class="post-metadata">

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

</div>

DigitalOcean FRA1 - still happening.

---

<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 6, 2020, 11:45am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/30 "2020-06-06T11:45:47Z")

</div>

DigitalOcean FRA1 - Still happening as of today

---

<div class="post-metadata">

**Author:** ![darii\_petru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darii_petru/32/69957_2.png) [@darii\_petru](https://discuss.elastic.co/u/darii_petru)\
**Post date:** [June 9, 2020, 9:09am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/31 "2020-06-09T09:09:44Z")

</div>

DigitalOcean FRA1 - Still happening as of today

```auto
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.1-linux-x86_64.tar.gz
--2020-06-09 09:07:39-- https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.1-linux-x86_64.tar.gz
Resolving artifacts.elastic.co (artifacts.elastic.co)... 151.101.14.222, 2a04:4e42:1b::734
Connecting to artifacts.elastic.co (artifacts.elastic.co)|151.101.14.222|:443... connected.
HTTP request sent, awaiting response... 451 Unavailable For Legal Reasons
2020-06-09 09:07:39 ERROR 451: Unavailable For Legal Reasons.

```

---

<div class="post-metadata">

**Author:** ![CarbonRook](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@CarbonRook](https://discuss.elastic.co/u/CarbonRook)\
**Post date:** [June 9, 2020, 1:01pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/32 "2020-06-09T13:01:34Z")

</div>

Also still occurring in AMS3, one of my droplets that was receiving 451 is now correctly getting a 200 so there appears to have been some minor progress. Any more news from Fastly?

```auto
# curl -A 'Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0' -I https://artifacts.elastic.co/packages/6.x/apt/dists/stable/InRelease -vvv
* Trying 151.101.2.222:443...
* TCP_NODELAY set
* Connected to artifacts.elastic.co (151.101.2.222) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Elasticsearch, Inc.; CN=*.elastic.co
* start date: Mar 7 00:00:00 2019 GMT
* expire date: Apr 22 12:00:00 2021 GMT
* subjectAltName: host "artifacts.elastic.co" matched cert's "*.elastic.co"
* issuer: C=US; O=DigiCert Inc; CN=DigiCert SHA2 Secure Server CA
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x5571907e27c0)
> HEAD /packages/6.x/apt/dists/stable/InRelease HTTP/2
> Host: artifacts.elastic.co
> user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
> accept: */*
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 451 
HTTP/2 451 
< retry-after: 0
retry-after: 0
< accept-ranges: bytes
accept-ranges: bytes
< date: Tue, 09 Jun 2020 12:52:53 GMT
date: Tue, 09 Jun 2020 12:52:53 GMT
< via: 1.1 varnish
via: 1.1 varnish
< x-served-by: cache-ams21055-AMS
x-served-by: cache-ams21055-AMS
< x-cache: MISS
x-cache: MISS
< x-cache-hits: 0
x-cache-hits: 0
< x-timer: S1591707173.413919,VS0,VE0
x-timer: S1591707173.413919,VS0,VE0
< server: ElasticInfrastructure
server: ElasticInfrastructure
< content-length: 0
content-length: 0

< 
* Connection #0 to host artifacts.elastic.co left intact

```

---

<div class="post-metadata">

**Author:** ![Yehor\_Ivanov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yehor_ivanov/32/70144_2.png) [@Yehor\_Ivanov](https://discuss.elastic.co/u/Yehor_Ivanov)\
**Post date:** [June 11, 2020, 12:11pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/33 "2020-06-11T12:11:17Z")

</div>

Still facing this issue. Any updates?

```
Failed to download key at https://artifacts.elastic.co/GPG-KEY-elasticsearch: HTTP Error 451: Unavailable For Legal Reasons
```

---

<div class="post-metadata">

**Author:** ![btnrsec](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@btnrsec](https://discuss.elastic.co/u/btnrsec)\
**Post date:** [June 11, 2020, 5:02pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/34 "2020-06-11T17:02:42Z")

</div>

As of today still I am also experiencing this issue on some VMs in DigitalOcean but not all. About 5/8 are having the issue in NYC3 and 4/10 in TOR1 when attempting to update (they previously have installed fine before):

```
Err:11 https://artifacts.elastic.co/packages/7.x/apt stable Release
451 Unavailable For Legal Reasons
```

---

<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 12, 2020, 11:41am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/35 "2020-06-12T11:41:25Z")

</div>

I'm also experiencing issues on one of my DigitalOcean servers, seems to only affect my newest box which was added ~30days ago, but older boxes are still fine.

Need to add filebeat before I can use this box within our infrastructure.

---

<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 14, 2020, 11:05pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/36 "2020-06-14T23:05:29Z")

</div>

If you can please share the public IP of the host you are on when you encounter this, it'll help us work with our service provider 🙂

---

<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 15, 2020, 7:01am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/37 "2020-06-15T07:01:07Z")

</div>

Hi, I faced with the same issue on Digital Ocean NYC

```auto
wget -O - https://artifacts.elastic.co/GPG-KEY-elasticsearch
--2020-06-15 06:51:49-- https://artifacts.elastic.co/GPG-KEY-elasticsearch
Resolving artifacts.elastic.co (artifacts.elastic.co)... 151.101.210.222, 2a04:4e42:46::734
Connecting to artifacts.elastic.co (artifacts.elastic.co)|151.101.210.222|:443... connected.
HTTP request sent, awaiting response... 451 Unavailable For Legal Reasons
2020-06-15 06:51:49 ERROR 451: Unavailable For Legal Reasons.

```

---

<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 15, 2020, 7:07am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/38 "2020-06-15T07:07:43Z")

</div>

Hey Mark,

This is the public IP of the host 161.35.45.94

I have checked this morning and the problem is still occurring.

---

<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 15, 2020, 11:21am UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/39 "2020-06-15T11:21:28Z")

</div>

since today I've started experiencing this issue to additional DO droplets in Canada that were previously working fine

---

<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 15, 2020, 9:39pm UTC](https://discuss.elastic.co/t/official-apt-repository-451-unavailable-for-legal-reasons/232494/40 "2020-06-15T21:39:19Z")

</div>

Please provide the IPs so we can chase up with our provider.

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

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