Closed MikaelHashiCorp closed 1 year ago
Hi Mikael,
unprivileged users can't modify the Ubuntu system keyring (nor the apt sources), so you'll need to run these commands as a root user.
I'll make a PR to add a note about running as root to those instructions you linked. Thanks!
Confirmed that running command as root
worked:
root@ip-172-31-30-8:~# wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor > /usr/share/keyrings/hashicorp-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com jammy main" | tee /etc/apt/sources.list.d/hashicorp.list
--2023-01-31 19:08:15-- https://apt.releases.hashicorp.com/gpg
Resolving apt.releases.hashicorp.com (apt.releases.hashicorp.com)... 18.160.46.62, 18.160.46.37, 18.160.46.33, ...
Connecting to apt.releases.hashicorp.com (apt.releases.hashicorp.com)|18.160.46.62|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3980 (3.9K) [binary/octet-stream]
Saving to: ‘STDOUT’
- 100%[============================================================================>] 3.89K --.-KB/s in 0s
2023-01-31 19:08:15 (172 MB/s) - written to stdout [3980/3980]
What is the bug?
When I try to install hcdiag from the installation instructions for Example: Ubuntu, running the command:
I get the following error:
Full message:
What version are you using?
Trying to install hcdiag version hcdiag_0.5.0-rc1
Which HashiCorp products does this affect?
hcdiag
When does the error occur?
What is the expected behavior?
That the hashicorp repository would be added to the local package manager.
Is there a workaround?
No
How does this impact you?
I cannot install hcdiag hcdiag_0.5.0-rc1 for user acceptance testing.
Are there any deadlines?
"Tuesday, January 31st at the latest. " - Alicia Clark
Is there any additional context?
No.