安装RVM失败: public key not found

错误是这样的:git

[plain]  view plain  copy
  print ?
  1. $ curl -L get.rvm.io | bash -s stable --ruby  
  2.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
  3.                                  Dload  Upload   Total   Spent    Left  Speed  
  4. 100   184  100   184    0     0     30      0  0:00:06  0:00:06 --:--:--    40  
  5. 100 22721  100 22721    0     0   1845      0  0:00:12  0:00:12 --:--:--  6170  
  6. Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz  
  7. Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc  
  8. gpg: Signature made Tue 31 Mar 2015 05:52:13 CST using RSA key ID BF04FF17  
  9. gpg: Can't check signature: public key not found  
  10. Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.  
  11. Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).  
  12.   
  13. GPG signature verification failed for '/home/charles/.rvm/archives/rvm-1.26.11.tgz' - 'https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc'!  
  14. try downloading the signatures:  
  15.   
  16.     gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3  
  17.   
  18. or if it fails:  
  19.   
  20.     command curl -sSL https://rvm.io/mpapis.asc | gpg --import -  
  21.   
  22. the key can be compared with:  
  23.   
  24.     https://rvm.io/mpapis.asc  
  25.     https://keybase.io/mpapis  
解决方法是:

[plain]  view plain  copy
 print ?
  1. $  gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3  
  2. gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net  
  3. gpg: /home/charles/.gnupg/trustdb.gpg: trustdb created  
  4. gpg: key D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported  
  5. gpg: no ultimately trusted keys found  
  6. gpg: Total number processed: 1  
  7. gpg:               imported: 1  (RSA: 1)  

而后,从新执行: curl -L get.rvm.io | bash -s stable --ruby
[plain]  view plain  copy
 print ?
  1. $ curl -L get.rvm.io | bash -s stable --ruby  
  2.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
  3.                                  Dload  Upload   Total   Spent    Left  Speed  
  4. 100   184  100   184    0     0    229      0 --:--:-- --:--:-- --:--:--   229  
  5. 100 22721  100 22721    0     0  21250      0  0:00:01  0:00:01 --:--:-- 6802k  
  6. Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz  
  7. Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc  
  8. gpg: Signature made Tue 31 Mar 2015 05:52:13 CST using RSA key ID BF04FF17  
  9. gpg: Good signature from "Michal Papis (RVM signing) <mpapis@gmail.com>"  
  10. gpg: WARNING: This key is not certified with a trusted signature!  
  11. gpg:          There is no indication that the signature belongs to the owner.  
  12. Primary key fingerprint: 409B 6B17 96C2 7546 2A17  0311 3804 BB82 D39D C0E3  
  13.      Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36  166B E206 C29F BF04 FF17  
  14. GPG verified '/home/charles/.rvm/archives/rvm-1.26.11.tgz'  
  15.   
  16. Installing RVM to /home/charles/.rvm/  
  17.     Adding rvm PATH line to /home/charles/.profile /home/charles/.mkshrc /home/charles/.bashrc /home/charles/.zshrc.  
  18.     Adding rvm loading line to /home/charles/.profile /home/charles/.bash_profile /home/charles/.zlogin.  
  19. Installation of RVM in /home/charles/.rvm/ is almost complete:  
  20.   
  21.   * To start using RVM you need to run `source /home/charles/.rvm/scripts/rvm`  
  22.     in all your open shell windows, in rare cases you need to reopen all shell windows.  
  23.   
  24. # ,  
  25. #  
  26. #   Thank you for using RVM!  
  27. #   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!  
  28. #  
  29. # ~Wayne, Michal & team.  
  30.   
  31. In case of problems: http://rvm.io/help and https://twitter.com/rvm_io  
  32. rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]  
  33. Searching for binary rubies, this might take some time.  
  34. No binary rubies available for: ubuntu/14.04/i386/ruby-2.2.1.  
  35. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.  
  36. Checking requirements for ubuntu.  
  37. Installing requirements for ubuntu.  
  38. Updating system...........  
  39. Installing required packages: libreadline6-dev, libyaml-dev, libsqlite3-dev, sqlite3, libgdbm-dev, bison........  
  40. Requirements installation successful.  
  41. Found user configured '-j' flag in 'rvm_make_flags', please note that RVM can detect number of CPU threads and set the '-j' flag automatically if you do not set it.  
  42. Installing Ruby from source to: /home/charles/.rvm/rubies/ruby-2.2.1, this may take a while depending on your cpu(s)...  
  43. ruby-2.2.1 - #downloading ruby-2.2.1, this may take a while depending on your connection...  
  44.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
  45.                                  Dload  Upload   Total   Spent    Left  Speed  
  46. 100 12.7M  100 12.7M    0     0   108k      0  0:02:00  0:02:00 --:--:--  130k  
  47. ruby-2.2.1 - #extracting ruby-2.2.1 to /home/charles/.rvm/src/ruby-2.2.1....  
  48. ruby-2.2.1 - #applying patch /home/charles/.rvm/patches/ruby/2.2.1/fix_installing_bundled_gems.patch.  
  49. ruby-2.2.1 - #configuring.........................................................  
  50. ruby-2.2.1 - #post-configuration..  
  51. ruby-2.2.1 - #compiling...............................................................................  
  52. ruby-2.2.1 - #installing............................  
  53. ruby-2.2.1 - #making binaries executable..  
  54. ruby-2.2.1 - #downloading rubygems-2.4.8  
  55.   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
  56.                                  Dload  Upload   Total   Spent    Left  Speed  
  57. 100  437k  100  437k    0     0   522k      0 --:--:-- --:--:-- --:--:--  522k  
  58. No checksum for downloaded archive, recording checksum in user configuration.  
  59. ruby-2.2.1 - #extracting rubygems-2.4.8....  
  60. ruby-2.2.1 - #removing old rubygems.........  
  61. ruby-2.2.1 - #installing rubygems-2.4.8......................  
  62. ruby-2.2.1 - #gemset created /home/charles/.rvm/gems/ruby-2.2.1@global  
  63. ruby-2.2.1 - #importing gemset /home/charles/.rvm/gemsets/global.gems...............................................  
  64. ruby-2.2.1 - #generating global wrappers........  
  65. ruby-2.2.1 - #gemset created /home/charles/.rvm/gems/ruby-2.2.1  
  66. ruby-2.2.1 - #importing gemsetfile /home/charles/.rvm/gemsets/default.gems evaluated to empty gem list  
  67. ruby-2.2.1 - #generating default wrappers........  
  68. ruby-2.2.1 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).  
  69. Install of ruby-2.2.1 - #complete   
  70. Ruby was built without documentation, to build it run: rvm docs generate-ri  
  71. Creating alias default for ruby-2.2.1...  
  72.   
  73.   * To start using RVM you need to run `source /home/charles/.rvm/scripts/rvm`  
  74.     in all your open shell windows, in rare cases you need to reopen all shell windows.