Ubuntu / Linux news and application reviews.

What To Do When keyserver.ubuntu.com Is Down?

You probably know that to use a Launchpad PPA repository, you must also import the GPG key. This is how it worked until Ubuntu Karmic Koala:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 247510BE


And starting with Ubuntu Karmic Koala, you can add both the GPG key and the PPA repository, with a single command:
sudo add-apt-repository ppa:PPA_NAME


BUT keyserver.ubuntu.com goes down from time to time. When it's down, you'll see an error similar to this:
gpg: keyserver receive failed: keyserver error


Lately it happens quite often (people leave comments about this all the time, on Web Upd8 - example), so how can we solve this?