# Installing from the APT repository

**URL:** <https://discuss.elastic.co/t/installing-from-the-apt-repository/239391>\
**Category:** Elasticsearch\
**Created:** [July 1, 2020, 2:31am UTC](https://discuss.elastic.co/t/installing-from-the-apt-repository/239391 "2020-07-01T02:31:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Allen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anthony_allen/32/71415_2.png) [@Anthony\_Allen](https://discuss.elastic.co/u/Anthony_Allen)\
**Post date:** [July 1, 2020, 2:31am UTC](https://discuss.elastic.co/t/installing-from-the-apt-repository/239391/1 "2020-07-01T02:31:58Z")

</div>

I have been unable to install ES 7.8 per the instructions [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html)

Steps:

1. wget -qO - [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch) | sudo apt-key add -
2. sudo apt-get install apt-transport-https
3. echo "deb [https://artifacts.elastic.co/packages/7.8/apt](https://artifacts.elastic.co/packages/7.8/apt) stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.8.list
4. sudo apt-get update && sudo apt-get install elasticsearch

In step 4 the error for sudo apt-get install elasticsearch is:  
**E: Unable to locate package elasticsearch**

sources.list.d/elastic-7.8.list contains:  
deb [https://artifacts.elasic.co/packages/7.8/apt](https://artifacts.elasic.co/packages/7.8/apt) stable main

**Here is the error that appears for apt update:**  
root@sari:/home/john# apt update  
Hit:1 [https://download.docker.com/linux/ubuntu](https://download.docker.com/linux/ubuntu) bionic InRelease  
Hit:2 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic InRelease  
Get:3 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic-updates InRelease [88.7 kB]  
Get:4 [http://security.ubuntu.com/ubuntu](http://security.ubuntu.com/ubuntu) bionic-security InRelease [88.7 kB]  
Get:6 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic-backports InRelease [74.6 kB]  
Ign:7 [https://artifacts.elastic.co/packages/7.8/apt](https://artifacts.elastic.co/packages/7.8/apt) stable InRelease  
Get:8 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic-updates/main i386 Packages [709 kB]  
**Err:9 [https://artifacts.elastic.co/packages/7.8/apt](https://artifacts.elastic.co/packages/7.8/apt) stable Release \*\*  
\*\* 404 Not Found [IP: 199.232.34.222 443]**  
Hit:5 [https://packages.gitlab.com/runner/gitlab-runner/ubuntu](https://packages.gitlab.com/runner/gitlab-runner/ubuntu) bionic InRelease  
Get:10 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic-updates/main amd64 Packages [1,000 kB]  
Get:11 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic-updates/universe i386 Packages [1,024 kB]  
Get:12 [http://us.archive.ubuntu.com/ubuntu](http://us.archive.ubuntu.com/ubuntu) bionic-updates/universe amd64 Packages [1,089 kB]  
Reading package lists... Done  
**E: The repository '[https://artifacts.elastic.co/packages/7.8/apt](https://artifacts.elastic.co/packages/7.8/apt) stable Release' does not have a Release file.**  
N: Updating from such a repository can't be done securely, and is therefore disabled by default.  
N: See apt-secure(8) manpage for repository creation and user configuration details.  
root@sari:/home/john#

My system:  
Ubuntu 18.04  
64 bit  
2 cores  
RAM 4G

Your assistance is greatly appreciated! Thanks

---

<div class="post-metadata">

**Author:** ![kase](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kase](https://discuss.elastic.co/u/kase)\
**Post date:** [July 1, 2020, 3:18am UTC](https://discuss.elastic.co/t/installing-from-the-apt-repository/239391/2 "2020-07-01T03:18:27Z")

</div>

Hi,  
have you ever check your java version?  
Elasticsearch is built using Java, and requires at least Java 8 in order to run.

---

<div class="post-metadata">

**Author:** ![Anthony\_Allen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anthony_allen/32/71415_2.png) [@Anthony\_Allen](https://discuss.elastic.co/u/Anthony_Allen)\
**Post date:** [July 1, 2020, 4:32pm UTC](https://discuss.elastic.co/t/installing-from-the-apt-repository/239391/3 "2020-07-01T16:32:14Z")

</div>

Java version is 11

The error seems to indicate package elasticsearch cannot be found.

---

<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:** [July 29, 2020, 4:32pm UTC](https://discuss.elastic.co/t/installing-from-the-apt-repository/239391/4 "2020-07-29T16:32:15Z")

</div>

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