Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

Please, give me some help:
How can I export PGP keys I used for registration on PPA and then import in virtual machine's Ubuntu?
Please, help me.

share|improve this question
You can View this and also installing seahorse would be helpful. Also found a Adding a Launchpad PPA's key to Ubuntu video – atenz Jun 25 '12 at 12:32
And the official GPG wiki – atenz Jun 25 '12 at 12:39

Have a look here and/or here.

share|improve this answer

This assumes you can copy-and-paste between the host and the virtual machine guest; it's easier than setting up sharing between the two, and more secure than emailing your private key to yourself, leaving key files lying around, etc.

  1. Host AND VM: Open a terminal, and sudo apt-get install xclip (a small tool to copy and paste to the clipboard from the command-line)
  2. Host: Type gpg --list-keys and select the 8-letter "pub" key you used for PPA signing, e.g. if the output is pub 2048D/ABCD0123 2012-05-02, you want ABCD0123.
  3. Host: Type gpg -a --export ABCD0123 | xclip
  4. VM: Type xclip -o | gpg --import, to add your public key.
  5. Host: Type gpg -a --export-secret-key ABCD0123 | xclip
  6. VM: Type xclip -o | gpg --allow-secret-key-import, to add your private key.

That's it!

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.