0

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

Continuation
  • 3,080
  • 5
  • 30
  • 38

2 Answers2

2

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
Steven Monday
  • 13,599
  • 4
  • 36
  • 45
  • Thank you very much. It worked. Now that I got the key, how do I actually install the Percona Server? Thanks again. – Continuation Nov 03 '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 03 '10 at 18:19
0

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

wget -O - http://www.percona.com/redir/downloads/RPM-GPG-KEY-percona | 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 http://www.percona.com/ssh-key-rotation/instructions

wkoot
  • 101
  • 1
  • 5