Remove dependence on deprecated apt-key for installation

This commit is contained in:
a1346054 2022-08-09 08:59:57 +00:00
parent af77b859e3
commit f7ecf03232
No known key found for this signature in database
GPG Key ID: D149AD21DC40440C

View File

@ -8,8 +8,8 @@ chmod a+x ./install.bash
* Alternatively install vagrant following [https://www.vagrantup.com/downloads](https://www.vagrantup.com/downloads): * Alternatively install vagrant following [https://www.vagrantup.com/downloads](https://www.vagrantup.com/downloads):
{% if include.distro == "debian" or include.distro == "ubuntu" -%} {% if include.distro == "debian" or include.distro == "ubuntu" -%}
```shell ```shell
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add - curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.asc
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.asc ] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update && sudo apt-get install vagrant sudo apt-get update && sudo apt-get install vagrant
``` ```
{% elsif include.distro == "fedora" -%} {% elsif include.distro == "fedora" -%}