Failed to connect to keyserver
getting the following error when trying to install, the ports are open outbound:-
2026-02-16 17:04:45 346 [2644] ( INFO): Performing pre-flight check for keyserver connectivity...
2026-02-16 17:04:45 356 [2644] ( INFO): Testing connectivity to keyserver.ubuntu.com...
2026-02-16 17:04:45 357 [2644] (DEBUG): Running command: [timeout 30 gpg --batch --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3A79BD29]
2026-02-16 17:04:45 359 [2644] (DEBUG): - ssystem [BEGIN]: timeout 30 gpg --batch --no-tty --keyserver keyserver.ubuntu.com --recv-keys 3A79BD29
2026-02-16 17:04:55 359 [2644] (DEBUG): gpg: keyserver receive failed: Server indicated a failure
2026-02-16 17:04:55 359 [2644] (ERROR): - ssystem [EXIT_CODE] 'timeout' exited with 2
2026-02-16 17:04:55 359 [2644] (DEBUG): - ssystem [END]
2026-02-16 17:04:55 365 [2644] (ERROR): Failed to connect to keyserver keyserver.ubuntu.com (exit code: 2)
2026-02-16 17:04:55 366 [2644] (DEBUG): GPG output: 2
2026-02-16 17:04:55 46 [2644] ( INFO): cPanel is here to help! Our technical KnowledgeBase and cPanel Community is just a click away at https://support.cpanel.net/
2026-02-16 17:04:55 369 [2644] (FATAL):
-
Does it work by curl?
Andrew N. - cPanel Plesk VMWare Certified Professional
Do you need immediate assistance? 20 minutes response time!* Open a ticket
EmergencySupport - Professional Server Management and One-time Services0 -
There isn't anything we'll be able to do on our side to resolve this as this seems like a networking issue on the machine. I would try to ping that domain to see if you are able to connect from the server, but if not, you'll likely want to reach out to your host to see what the issue is as there could be a networking problem outside of your system causing this.
0 -
I have test all 3 ports (11371, 80, 443) to the keyserver.ubuntu.com and they are all connecting fine it's not a networking issue.
could someone else test the install on Ubuntu?0 -
The Ubuntu installer is working well on my end. Were you able to try the OS update like I mentioned?
0 -
the OS is up to date and I even reinstalled it, interesting how the install script is working for you but not me.
0 -
here is what i get when i run the command manually and if i change to http/s
root@cpanel:/home# gpg --keyserver keyserver.ubuntu.com --recv-keys 3A79BD29
gpg: keyserver receive failed: Server indicated a failure
root@cpanel:/home# gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3A79BD29
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 467B942D3A79BD29: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" imported
gpg: Total number processed: 1
gpg: imported: 1
root@cpanel:/home# gpg --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 3A79BD29
gpg: key 467B942D3A79BD29: "MySQL Release Engineering <mysql-build@oss.oracle.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1-1 -
Have you tried the workaround for that key issue mentioned here?
0 -
I tried this and it doesn't work
0 -
It would be best to create a ticket so this can be investigated directly in your environment. Since you don't have access to the server yet you can just message cs@cpanel.net and they'll get you over to the Technical Support team.
0 -
Hello PirateZebedee,
I just ran into this same error on my own DNS Only server (reinstalling). What do you have within your /etc/resolv.conf file?
Try setting that to a valid nameserver and it should work.0
Please sign in to leave a comment.
Comments
10 comments