apache / couchdb

Seamless multi-master syncing database with an intuitive HTTP/JSON API, designed for reliability
https://couchdb.apache.org/
Apache License 2.0
6.11k stars 1.02k forks source link

No Release file for Ubuntu 24.04 LTS #5077

Open aklehm opened 1 month ago

aklehm commented 1 month ago

Description

I want to install CouchDB on a Ubuntu Server 24.04 LTS and followed the offical docs here: CouchDB docs

But when update the repositores with sudo apt update, I get the following error messages.

Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Ign:5 https://apache.jfrog.io/artifactory/couchdb-deb noble InRelease
Err:6 https://apache.jfrog.io/artifactory/couchdb-deb noble Release
  404   [IP: 44.226.59.123 443]
Reading package lists... Done
E: The repository 'https://apache.jfrog.io/artifactory/couchdb-deb noble 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.

Steps to Reproduce

Fresh installation of Ubuntu Server 24.04 LTS

sudo apt update
sudo apt upgrade

Enabling the Apache CouchDB package repository

sudo apt install -y curl apt-transport-https gnupg
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor | sudo tee /usr/share/keyrings/couchdb-archive-keyring.gpg >/dev/null 2>&1
source /etc/os-release
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" | sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null
sudo apt update

Expected Behaviour

Update repositories und install CouchDB after enabling the Apache CouchDB package repository

Your Environment

Hardware: Raspberry Pi 3B OS: Ubuntu Server 24.04 LTS

big-r81 commented 1 month ago

Hi,

Ubuntu 24.04 LTS isn't listed under the convenience binary packages section in our docs, so you get the error message you encountered. I think and hope that this will be done in the near future.

In the meantime you could use the Snap package or build CouchDB on your Raspi by yourself.

goobemaster commented 2 days ago

@aklehm Docs does not explicitly explain that you have to either set this env variable or replace ${VERSION_CODENAME} to a OS version code name, in my case it was "bookworm" for Debian.

Try running "lsb_release -cs". If you get a correct code name you could do:

echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${lsb_release -cs} main" | sudo tee /etc/apt/sources.list.d/couchdb.list >/dev/null

But if you've run the command already fix the issue by manually editing /etc/apt/sources.list.d/couchdb.list

Hmm. Official page does not list the code name for Ubuntu 24.04 šŸ¤· https://wiki.ubuntu.com/DevelopmentCodeNames

So, while this is not a bug, the docs could be improved imho.