From d14f685f28221125c625f741d8a5d5c469cd6942 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 3 Apr 2023 10:06:59 -0400 Subject: [PATCH] docs: fix install instructions for apt (#16764) The workflow described in the docs for apt installation is deprecated. Update to match the workflow described in the Tutorials and official packaging guide. --- website/content/docs/install/index.mdx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/website/content/docs/install/index.mdx b/website/content/docs/install/index.mdx index fbf3fa124..94da42658 100644 --- a/website/content/docs/install/index.mdx +++ b/website/content/docs/install/index.mdx @@ -74,16 +74,23 @@ distributions. +Install the required packages. + +```shell-session +$ sudo apt-get update && \ + sudo apt-get install wget gpg coreutils +``` + Add the HashiCorp [GPG key][gpg-key]. ```shell-session -$ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - +$ wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg ``` Add the official HashiCorp Linux repository. ```shell-session -$ sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main" +$ echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list ``` Update and install.