Keyserver time out failure.

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
optimize me

Keyserver time out failure.

Post by optimize me »

For the last three or four days, I'm having trouble getting keys for any PPAs I'm adding, and am unable to install software. Ubuntu's keyserver is timing out:

Code: Select all

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6dfbcbae
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 6dfbcbae
gpg: requesting key 6DFBCBAE from hkp server keyserver.ubuntu.com
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error
Am I doing something wrong, or has anybody else been having problems getting keys from Ubuntu? I've got about 8 PPAs I can't get keys for in my sources.list and it's ticking me right off.

EDIT: To try it another way with the gpg command, I get a different error:

Code: Select all

$ sudo gpg --keyserver keyserver.ubuntu.com --recv 978228591BD3A65C
gpg: WARNING: unsafe ownership on configuration file `/home/zero/.gnupg/gpg.conf'
gpg: keyring `/home/zero/.gnupg/secring.gpg' created
gpg: keyring `/home/zero/.gnupg/pubring.gpg' created
gpg: external program calls are disabled due to unsafe options file permissions
gpg: keyserver communications error: general error
gpg: keyserver receive failed: general error
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
optimize me

Re: Keyserver time out failure.

Post by optimize me »

I got it to work by switching keyservers, but it still wasn't easy. I'd have to enter the command

Code: Select all

sudo gpg --keyserver subkeys.pgp.net --recv 0123456789ABCDEF
and wait for it to time out. Then if I immediately repeated the command it would go through faster than I could blink my eyes.

Follow it up with

Code: Select all

gpg --export --armor 89ABCDEF | sudo apt-key add -
and all is well.

I would think if Ubuntu is going to force application signing off on to everyone, they should at least make sure their keyserver is up and running.

Pricks.
Locked

Return to “Software & Applications”