Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I followed the instructions on this page:

~$ gpg --keyserver  hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
gpg: requesting key CD2EFD2A from hkp server keys.gnupg.net
gpg: key CD2EFD2A: public key "Percona MySQL Development Team <mysql-dev@percona.com>" 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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.