From 5cc14b7f0795d53ce050d46028cbfa6af99cd78c Mon Sep 17 00:00:00 2001 From: Sebastian Utz Date: Fri, 2 Feb 2024 10:53:23 +0100 Subject: [PATCH] Update ubuntu install instructions, apt-key is deprecated apt-key is deprecated, also this instructions differs from the similar section at `Getting Started` which already contains up-to-date instructions. --- docs/self-hosted/ubuntu.rst | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/self-hosted/ubuntu.rst b/docs/self-hosted/ubuntu.rst index 1e77795..7f9e8a7 100644 --- a/docs/self-hosted/ubuntu.rst +++ b/docs/self-hosted/ubuntu.rst @@ -27,14 +27,15 @@ CrateDB repositories: .. code-block:: sh - # Download the CrateDB GPG key - sh$ wget https://cdn.crate.io/downloads/deb/DEB-GPG-KEY-crate + # Install prerequisites. + sudo apt update + sudo apt install --yes apt-transport-https apt-utils curl gnupg lsb-release - # Add the key to Apt - sh$ sudo apt-key add DEB-GPG-KEY-crate + # Import the public GPG key for verifying the package signatures. + curl -sS https://cdn.crate.io/downloads/deb/DEB-GPG-KEY-crate | sudo tee /etc/apt/trusted.gpg.d/cratedb.asc - # Add CrateDB repository to Apt - sh$ sudo add-apt-repository "deb https://cdn.crate.io/downloads/debian/stable/ default main" + # Add CrateDB repository to Apt + echo "deb https://cdn.crate.io/downloads/debian/stable/ default main" | sudo tee /etc/apt/sources.list.d/crate-stable.list .. NOTE::