Installing from the APT repository

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

Steps:

  1. wget -qO - 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 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 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 bionic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:7 https://artifacts.elastic.co/packages/7.8/apt stable InRelease
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [709 kB]
Err:9 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 bionic InRelease
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1,000 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,024 kB]
Get:12 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 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

Hi,
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.