# Unable to setup apt repo for opendistro in our org

**URL:** <https://forum.opensearch.org/t/unable-to-setup-apt-repo-for-opendistro-in-our-org/3124>\
**Category:** Build\
**Created:** [June 22, 2020, 8:21am UTC](https://forum.opensearch.org/t/unable-to-setup-apt-repo-for-opendistro-in-our-org/3124 "2020-06-22T08:21:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apednekar](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@apednekar](https://forum.opensearch.org/u/apednekar)\
**Post date:** [June 22, 2020, 8:21am UTC](https://forum.opensearch.org/t/unable-to-setup-apt-repo-for-opendistro-in-our-org/3124/1 "2020-06-22T08:21:49Z")

</div>

Hi, I was trying to setup a Jfrog Remote artifactory repository in our organisation and were unable to do so. It looks like there is some issue with the `https://d3g5vo6xdbdb9a.cloudfront.net/apt/`  
We have been able to setup all other kinds of external apt repos and have been using artifactory for a number of years now, so it doesn’t look like any issue with artifactory settings.  
The url `https://d3g5vo6xdbdb9a.cloudfront.net/apt/` if accessed via browser returns **Access denied**. I assume the permissions on these folders/objects should be recursively set to publicly browsable.

Note: We are able to use the repo on our machines by pointing to `https://d3g5vo6xdbdb9a.cloudfront.net/apt/`in source.list however not able to set remote repo in artifactory. Please fix the permissions on the repo folders.

Also a completely seperate issue : I inspected the contents of `https://d3g5vo6xdbdb9a.cloudfront.net/apt/dists/stable/main/binary-amd64/Packages`  
and found the the Homepage link mentioned in the description of all the packages gives a 404. ([https://opendistro.github.io/elasticsearch/downloads](https://opendistro.github.io/elasticsearch/downloads))

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/1X/c44eb919cd95f8c16ce5529b94347b517fbceff5.png)

---

<div class="post-metadata">

**Author:** ![bpavani](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bpavani](https://forum.opensearch.org/u/bpavani)\
**Post date:** [June 22, 2020, 6:20pm UTC](https://forum.opensearch.org/t/unable-to-setup-apt-repo-for-opendistro-in-our-org/3124/2 "2020-06-22T18:20:24Z")

</div>

Thanks @apednekar. Could you please open an issue on github?

---

<div class="post-metadata">

**Author:** ![apednekar](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@apednekar](https://forum.opensearch.org/u/apednekar)\
**Post date:** [July 15, 2020, 11:39am UTC](https://forum.opensearch.org/t/unable-to-setup-apt-repo-for-opendistro-in-our-org/3124/3 "2020-07-15T11:39:10Z")

</div>

done : [Opendistro apt repos have multiple issues · Issue #534 · opendistro-for-elasticsearch/opendistro-build · GitHub](https://github.com/opendistro-for-elasticsearch/community/issues/199)

---

<div class="post-metadata">

**Author:** ![zhujiaxi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/zhujiaxi/32/1353_2.png) [@zhujiaxi](https://forum.opensearch.org/u/zhujiaxi)\
**Post date:** [August 20, 2020, 11:32pm UTC](https://forum.opensearch.org/t/unable-to-setup-apt-repo-for-opendistro-in-our-org/3124/4 "2020-08-20T23:32:53Z")

</div>

Hi @apednekar we only allow users to directly retrieve the artifacts with static links.

If you want to add ODFE and all the dependencies to your artifactory, try these steps:

```auto
wget -qO - https://d3g5vo6xdbdb9a.cloudfront.net/GPG-KEY-opendistroforelasticsearch | sudo apt-key add -
echo "deb https://d3g5vo6xdbdb9a.cloudfront.net/apt stable main" | sudo tee -a /etc/apt/sources.list.d/opendistroforelasticsearch.list
sudo apt update
mkdir debs && cd debs
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-7.8.0-amd64.deb
sudo apt download opendistroforelasticsearch
sudo apt download opendistro-*

```

You should have all the required packages for now:

```auto
elasticsearch-oss-7.8.0-amd64.deb
opendistro-alerting_1.9.0.0-1_amd64.deb
opendistro-anomaly-detection_1.9.0.0-1_amd64.deb
opendistro-anomaly-detector_1.7.0.0-1_amd64.deb
opendistro-index-management_1.9.0.0-1_amd64.deb
opendistro-job-scheduler_1.9.0.0-1_amd64.deb
opendistro-knn_1.9.0.0-1_amd64.deb
opendistro-knnlib_1.9.0.0_amd64.deb
opendistro-performance-analyzer_1.9.0.1-1_amd64.deb
opendistro-security_1.9.0.0-0_amd64.deb
opendistro-sql_1.9.0.0-1_amd64.deb
opendistroforelasticsearch_1.9.0-1_amd64.deb

```

Thanks.
