Closed as duplicate of#1302
Description
Type of issue
Inaccurate
What documentation page is affected
https://www.elastic.co/docs/reference/beats/filebeat/setup-repositories
What happened?
When I follow this step in the docs to set up the apt repository, and run apt update
, apt encounters a 404:
echo "deb https://artifacts.elastic.co/packages/9.0/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-9.0.list
Output of sudo apt update
:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:5 https://download.docker.com/linux/ubuntu noble InRelease
Ign:6 https://artifacts.elastic.co/packages/9.0/apt stable InRelease
Err:7 https://artifacts.elastic.co/packages/9.0/apt stable Release
404 Not Found [IP: 34.120.127.130 443]
Reading package lists... Done
E: The repository 'https://artifacts.elastic.co/packages/9.0/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.
However, changing the URL from 9.0
to 9.x
, resolves the error:
echo "deb https://artifacts.elastic.co/packages/9.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-9.x.list
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://download.docker.com/linux/ubuntu noble InRelease
Hit:5 https://artifacts.elastic.co/packages/9.x/apt stable InRelease
Hit:6 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The docs substitute in {{majorVersion}} which is 9.0, but that path doesn't appear to exist on the apt CDN.
Thanks!
Additional info
No response