Gpg: keyserver receive failed (Ubuntu Installation)

Hi,
I am trying to install passbolt on Ubuntu 20.04 and having already issues right in the beginning when I follow the installation guide.
When trying to get the official GnuPG key in step 2, I get the following answers:

$ gpg --keyserver hkps://keys.mailvelope.com --receive-keys 0xDE8B853FC155581D 
gpg: keyserver receive failed: General error
$ gpg --keyserver hkps://gpg.mit.edu --receive-keys 0xDE8B853FC155581D 
gpg: keyserver receive failed: No name
$ gpg --keyserver hkps://keys.gnupg.net --receive-keys 0xDE8B853FC155581D 
gpg: keyserver receive failed: No name

Any ideas how to solve this?

Thanks in advance

Hi @taaz ,

I just tried right now and it works fine for these 3 servers.
Is your server behind a firewall or proxy ? Because hkps:// protocol connects on port 11371/TCP.

Let me know,

Best,

Hi @AnatomicJC ,

thanks for your quick reply.

I tried to install passbolt on my notebook at home before asking my provider to do changes on the managed server. So yes, I am behind a router (FRITZ!Box 7590) but it’s usually not blocking outgoing traffic.
I am assuming that the command is only sending an outgoing request so there isn’t the need for a port forwarding for incoming traffic, is there?

Yes, the command is only sending outgoing request, there is no need for a port forwarding for incoming traffic.

Ok, turns out it was some kind of DNS problem. After doing an online lookup for the ip and adding domain and ip to my hosts file, I could successfully execute the command.
Thank you for your quick replies!

You’re welcome :slight_smile:

By the way, you should have a look and fix your DNS configuration. You should use a working DNS server for finding other websites and not fill your /etc/hosts :confused:

That’s true and it was the first time that I did this. I am rather confused that this happened and have to investigate that still.
If I do “nslookup gpg.mit.edu” I just get the info “server can’t find gpg.mit.edu: NXDOMAIN” on my local machine and also on a webserver I can ssh to. If I do this with any other domain, I get the expected result. Really strange at the moment. Also tested as additional argument 8.8.8.8 to try via googles DNS. Same result :frowning:

It is pgp.mit.edu and not gpg.mit.edu :wink: