Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I followed the instructions on this page:

~$ gpg --keyserver  hkp:// --recv-keys 1C4CBDCDCD2EFD2A
gpg: requesting key CD2EFD2A from hkp server
gpg: key CD2EFD2A: public key "Percona MySQL Development Team <>" imported
gpg: Total number processed: 1
gpg:               imported: 1

So far so good. But the next command gave an error:

~$ gpg -a --export CD2EFD2A | apt-key add -
gpg: no writable keyring found: eof
gpg: error reading `-': general error
gpg: import from `-' failed: general error

What went wrong?

Also after I'm done with this, how exactly do I install Percona Server? There are many packages for Karmic and I don't know what to do.

I'm new to this and any help would be greatly appreciated. Thanks

share|improve this question
up vote 2 down vote accepted

You need to run apt-key as the user root. For your second command, try

gpg -a --export CD2EFD2A | sudo apt-key add -

Actually, it appears that the install instructions assume you are typing all your commands as the root user (note the prompt is a #). You may want to start over again, but first get a root prompt by running this:

sudo -i
share|improve this answer
Thank you very much. It worked. Now that I got the key, how do I actually install the Percona Server? Thanks again. – Continuation Nov 3 '10 at 17:18
I assume you can follow the guide you linked to in your original question. Since you have already imported the repository key, you can begin after that point. And remember, you need to be root, so begin your session with sudo -i. – Steven Monday Nov 3 '10 at 18:19

The key is also directly available from the Percona website. Import it as following:

wget -O - | gpg --import
gpg --armor --export 1C4CBDCDCD2EFD2A | apt-key add -

Edit: Percona is going to change their SSH key before the end of this year. See instructions on their website

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.