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

Ubuntu 22.04 setup - unable to add keyring: apt-key failed with message "keyserver receive failed: end of file" #879

Open
birbygit opened this issue May 2, 2024 · 3 comments

Comments

@birbygit
Copy link

birbygit commented May 2, 2024

Hello, I'm trying to install Krakend on Ubuntu 22.04
I'm following the official guide for Debian based distro on https://www.krakend.io/docs/overview/installing/
Issued commands:

sudo apt install -y ca-certificates gnupg
ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
ca-certificates set to manually installed.
gnupg is already the newest version (2.2.19-3ubuntu2.2).
gnupg set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 5DE6FD698AD6FDD2
Executing: /tmp/apt-key-gpghome.AZShtIgpeb/gpg.1.sh --keyserver keyserver.ubuntu.com --recv 5DE6FD698AD6FDD2
gpg: keyserver receive failed: End of file

I received same error on Ubuntu 20.04 also; since apt-key is officially deprecated, what is the recommended way to install Krakend on such os ?

Thanks.

@taik0
Copy link
Member

taik0 commented May 2, 2024

Hi @birbygit

I have no problem installing on Ubuntu 22.04:

root@bc0cc8b90fe8:/# apt-key adv --keyserver keyserver.ubuntu.com --recv 5DE6FD698AD6FDD2
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.aj97ve5IUI/gpg.1.sh --keyserver keyserver.ubuntu.com --recv 5DE6FD698AD6FDD2
gpg: key 5DE6FD698AD6FDD2: public key "Devops Faith Package Manager <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

@birbygit
Copy link
Author

birbygit commented May 2, 2024

Hi @birbygit

I have no problem installing on Ubuntu 22.04:

root@bc0cc8b90fe8:/# apt-key adv --keyserver keyserver.ubuntu.com --recv 5DE6FD698AD6FDD2
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.aj97ve5IUI/gpg.1.sh --keyserver keyserver.ubuntu.com --recv 5DE6FD698AD6FDD2
gpg: key 5DE6FD698AD6FDD2: public key "Devops Faith Package Manager <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Hi taik0, thanks for your feedback.
I noted that you issued the commands as root: why? sudo is not enough?
Anyway, is possible to install krakend by downloading the tar.gz file?

The server where I've to setup Krakend is managed by my client and is under strict security policy so I cannot login as root user.
Thanks.

@alombarte
Copy link
Member

Hi @birbygit ,

It shows root because it is the official Ubuntu Docker container. Yes, you can use the tar.gz file. The difference with package managers is that you only get the binary, so you must create the service that auto-starts the gateway on server restart.

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

3 participants