Error on install - apt-key, invalid argument

I must be missing something obvious here, but I can’t seem to pin it down.

In following the Ubuntu install directions, the first command fails for me:

sudo apt-key adv --keyserver hkp:// --recv-keys 379CE192D401AB61
Executing: /tmp/apt-key-gpghome.MkWzfjdESc/ --keyserver hkp:// --recv-keys 379CE192D401AB61
gpg: keyserver receive failed: Invalid argument

Any help is appreciated, thanks!


this seems like a temporary error with the keyserver. Unfortunately GPG keyservers are notoriously slow and prone to errors.

Trying again a couple of times usually works, though I had no issues adding the key the first time:

Note that you can also use an alternative keyserver like hkp:// if the Ubuntu one is giving you issues.

If all else fails, I exported the Bintray key manually, which you can download from here and add it with sudo apt-key add



1 Like