Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

learn guide install instructions produce weird terminal output #14047

Closed
shoenig opened this issue Aug 8, 2022 · 4 comments
Closed

learn guide install instructions produce weird terminal output #14047

shoenig opened this issue Aug 8, 2022 · 4 comments
Assignees
Labels
theme/docs Documentation issues and enhancements type/bug

Comments

@shoenig
Copy link
Member

shoenig commented Aug 8, 2022

On a fresh VM, following the learn guide install instructions produces some binary output on the terminal. Hopefully the screen shot is self-explanatory.

Screenshot from 2022-08-08 09-18-39

ubuntu@ip-172-31-31-191:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
@shoenig shoenig added type/bug theme/docs Documentation issues and enhancements labels Aug 8, 2022
@shoenig shoenig self-assigned this Aug 8, 2022
@angrycub
Copy link
Contributor

Why not dd the apt source too. If I remember right, the sudo tee calls were just to facilitate the file creation at the end of the pipeline into root-only targets

@marcindulak
Copy link

The issue is still present in most if not all hashicorp installation guides, e.g. https://developer.hashicorp.com/vault/downloads or https://developer.hashicorp.com/terraform/downloads

Instead of:
wget --quiet -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
for example this would work
wget --quiet -O- https://apt.releases.hashicorp.com/gpg | sudo sh -c 'gpg --dearmor > /usr/share/keyrings/hashicorp-archive-keyring.gpg'

@marcindulak
Copy link

or use ... | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg as suggested in hashicorp/dev-portal#797 (comment)

@shoenig
Copy link
Member Author

shoenig commented Dec 6, 2023

Should be fixed a few months ago

@shoenig shoenig closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/docs Documentation issues and enhancements type/bug
Projects
None yet
Development

No branches or pull requests

3 participants