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.
This commit is contained in:
Tim Gross
2023-04-03 10:06:59 -04:00
committed by GitHub
parent 78c90c57c5
commit d14f685f28

View File

@@ -74,16 +74,23 @@ distributions.
<Tabs>
<Tab heading="Ubuntu/Debian">
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.