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

Install reliably fails on Ubuntu 22 VM #1454

Open
hyperknot opened this issue Dec 14, 2023 · 2 comments
Open

Install reliably fails on Ubuntu 22 VM #1454

hyperknot opened this issue Dec 14, 2023 · 2 comments

Comments

@hyperknot
Copy link

hyperknot commented Dec 14, 2023

Hi, I'm trying to run the install command on a minimal Ubuntu 22 VM in orbstack.

I've read this thread:
#639

My problem is that the installation reliably (100%) fails with this error:

gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: keybox '/usr/share/keyrings/k6-archive-keyring.gpg' created
gpg: keyserver receive failed: No route to host

I had to install dirmngr, without it didn't even got this far. I've seen that it might be related to dirmngr trying to use Tor protocol?

Now if I understand dirmngr is a daemon which has to run in the background? Just to receive a single key? (What a crazy decision by Ubuntu, I mean seriously? Now, to deprecate apt-key, we need a daemon running in the background which cannot connect because it uses Tor??)

@hyperknot
Copy link
Author

hyperknot commented Dec 14, 2023

I recommend the project to follow what nginx does.

curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \
    | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null

This way you save yourself this whole mess by Ubuntu.

@hyperknot
Copy link
Author

OK, I found the key. So this command is beautiful, fast and reliable:

curl https://dl.k6.io/key.gpg | gpg --dearmor \
    | sudo tee /usr/share/keyrings/k6-archive-keyring.gpg >/dev/null

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

No branches or pull requests

1 participant