Installing from the APT repository

I have been unable to install ES 7.8 per the instructions here


  1. wget -qO - | sudo apt-key add -
  2. sudo apt-get install apt-transport-https
  3. echo "deb 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 stable main

Here is the error that appears for apt update:
root@sari:/home/john# apt update
Hit:1 bionic InRelease
Hit:2 bionic InRelease
Get:3 bionic-updates InRelease [88.7 kB]
Get:4 bionic-security InRelease [88.7 kB]
Get:6 bionic-backports InRelease [74.6 kB]
Ign:7 stable InRelease
Get:8 bionic-updates/main i386 Packages [709 kB]
Err:9 stable Release **
** 404 Not Found [IP: 443]

Hit:5 bionic InRelease
Get:10 bionic-updates/main amd64 Packages [1,000 kB]
Get:11 bionic-updates/universe i386 Packages [1,024 kB]
Get:12 bionic-updates/universe amd64 Packages [1,089 kB]
Reading package lists... Done
E: The repository ' 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.

My system:
Ubuntu 18.04
64 bit
2 cores

Your assistance is greatly appreciated! Thanks

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

1 Like

Java version is 11

The error seems to indicate package elasticsearch cannot be found.

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