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

Fixed getting-started for linux #1170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

goldcvt
Copy link

@goldcvt goldcvt commented Feb 4, 2025

The linux section of getting started was outdated and was failing with errors like so. Ubuntu server 18.04

sudo curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc |   sudo gpg --dearmor -o /usr/share/keyrings/ngrok.gpg &&   echo "deb [signed-by=/use/share/keyrings/ngrok.gpg] https://ngrok-agent.s3.amazonaws.com buster main" |   sudo tee /etc/apt/sources.list.d/ngrok.list &&   sudo apt update && sudo apt install ngrok
gpg: WARNING: unsafe ownership on homedir '/home/ubuntu/.gnupg'
deb [signed-by=/use/share/keyrings/ngrok.gpg] https://ngrok-agent.s3.amazonaws.com buster main
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:5 https://ngrok-agent.s3.amazonaws.com buster InRelease [20.3 kB]
Err:5 https://ngrok-agent.s3.amazonaws.com buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E61D3BBAAEE37FE
Reading package lists... Done
W: GPG error: https://ngrok-agent.s3.amazonaws.com buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0E61D3BBAAEE37FE
E: The repository 'https://ngrok-agent.s3.amazonaws.com buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

However the doc from the ngrok's download page works no problem

It seems to me that the script in the doc is outdated

Copy link

vercel bot commented Feb 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ngrok-docs ✅ Ready (Inspect) Visit Preview Feb 4, 2025 1:17am

@S3Prototype
Copy link
Collaborator

Thanks @goldcvt! I'll test this in a bit and then we'll get it merged

@S3Prototype
Copy link
Collaborator

S3Prototype commented Feb 7, 2025

I'll get to this on Monday 👍 I followed up internally just to be sure what the best snippet would be here. Likely we're gonna go with:

curl -sSL https://ngrok-agent.s3.amazonaws.com/ngrok.asc | 
sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com/ bookworm main" |
sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok

This will also need to be updated in other areas of the docs so I'll pull this branch down and make those changes. Thanks for calling this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants