# Downloading deb package but error 403

**URL:** <https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137>\
**Category:** OpenSearch\
**Created:** [July 18, 2023, 7:19am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137 "2023-07-18T07:19:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lladasll](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@lladasll](https://forum.opensearch.org/u/lladasll)\
**Post date:** [July 18, 2023, 7:19am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/1 "2023-07-18T07:19:29Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Debian 11, Opensearch 2.8.0

**Describe the issue** :  
I was downloading Graylog but i wasnt able to download Opensearch. When using wget or curl, i was given 403 forbidden. I am new to Linux and Opensearch. Anyone able to guide?

**Configuration** :

**Relevant Logs or Screenshots** :

 ![Capture](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/360136683be5dc74c1ff0ff38bcffddbfd6613a1.png)

---

<div class="post-metadata">

**Author:** ![mglbn](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mglbn](https://forum.opensearch.org/u/mglbn)\
**Post date:** [July 18, 2023, 9:09am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/2 "2023-07-18T09:09:14Z")

</div>

Well, are you trying to install Opensearch by downloading the deb packages manually or through the apt repository?

It seems like your trying both, but you have to decide for one method.

To install it from the apt repo, simply follow the steps described in the documentation. Maybe start with a fresh Debian install.

The other way is by downloading the package manually. You already have the necessary files in your root users home directoriy. To install the packages simpy run  
sudo apt install ./opensearch\*.deb -y  
inside the root users directory .

---

<div class="post-metadata">

**Author:** ![lladasll](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@lladasll](https://forum.opensearch.org/u/lladasll)\
**Post date:** [July 18, 2023, 9:48am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/3 "2023-07-18T09:48:19Z")

</div>

![Capture](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/7/7eb871f58233d78bb195763b36fd5a1941e94a30.png)

I try to follow the documentation but it cannot be done.  
As for your instruction, i did it too but to no avail.

dpkg does not have the package and apt-get update come back with a error 403 forbidden

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [July 18, 2023, 9:57am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/4 "2023-07-18T09:57:24Z")

</div>

@lladasll Is there any reason for using Debian 11? Have you tried Ubuntu 22.04 instead?

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [July 18, 2023, 9:58am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/5 "2023-07-18T09:58:38Z")

</div>

@lladasll Please share the documentation you’ve followed to install OpenSearch.

---

<div class="post-metadata">

**Author:** ![lladasll](https://avatars.discourse-cdn.com/v4/letter/l/91b2a8/32.png) [@lladasll](https://forum.opensearch.org/u/lladasll)\
**Post date:** [July 18, 2023, 10:04am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/6 "2023-07-18T10:04:00Z")

</div>

This is the documentation that I followed:

> **[Debian](https://opensearch.org/docs/latest/install-and-configure/install-opensearch/debian/)**
>
> Documentation for OpenSearch, the Apache 2.0 search, analytics, and visualization suite with advanced security, alerting, SQL support, automated index management, deep performance analysis, and more.

[https://go2docs.graylog.org/5-0/downloading\_and\_installing\_graylog/debian\_installation.htm](https://go2docs.graylog.org/5-0/downloading_and_installing_graylog/debian_installation.htm)

I am doing testing on Graylog and my company are mostly using Debian 11  
I am stuck at installing Opensearch

---

<div class="post-metadata">

**Author:** ![mglbn](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@mglbn](https://forum.opensearch.org/u/mglbn)\
**Post date:** [July 18, 2023, 10:29am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/7 "2023-07-18T10:29:38Z")

</div>

The official deb package ist not signed. Therefore this error should not even be possible to occur.  
Also your downloadlink does not match the one from the opensearch documentation.

Consider downloading yout package via curl or wget from this link:

[https://artifacts.opensearch.org/releases/bundle/opensearch/2.8.0/opensearch-2.8.0-linux-x64.deb](https://artifacts.opensearch.org/releases/bundle/opensearch/2.8.0/opensearch-2.8.0-linux-x64.deb)

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [July 20, 2023, 10:07am UTC](https://forum.opensearch.org/t/downloading-deb-package-but-error-403/15137/8 "2023-07-20T10:07:11Z")

</div>

@lladasll You’ve used the incorrect URL for the APT repository.

According to your screenshot, you’ve configured.

```auto
https://artifacts.opensearch.org/release/bundle/opensearch/2.x/apt

```

That URL will cause reported error

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

The correct URL, as per the documentation, is:

```auto
https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt

```

> **[Debian](https://opensearch.org/docs/latest/install-and-configure/install-opensearch/debian/#install-opensearch-from-an-apt-repository)**
>
> Documentation for OpenSearch, the Apache 2.0 search, analytics, and visualization suite with advanced security, alerting, SQL support, automated index management, deep performance analysis, and more.

```auto
echo "deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main" | sudo tee /etc/apt/sources.list.d/opensearch-2.x.list

```

The quick fix is correcting the APT URL in `/etc/apt/sources.list.d/opensearch-2.x.list`

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

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