天天看點

RVM無法加載公鑰解決方法

一: 錯誤 :

$ curl -sSL https://get.rvm.io | bash -s stable

Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz…

Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc…

gpg: failed to create temporary file `/home/cky/.gnupg/.#lk0x2518060.cky-pc.29930’: 權限不夠

gpg: 密鑰塊資源‘/home/cky/.gnupg/pubring.gpg’:正常錯誤

gpg: 于 2015年03月31日 星期二 05時52分13秒 CST 建立的簽名,使用 RSA,鑰匙号 BF04FF17

gpg: 無法檢查簽名:找不到公鑰

二 :解決方法 :

**$ curl -sSL https://rvm.io/mpapis.asc | gpg –import -

$ gpg –keyserver hkp://http://keys.gnupg.net –recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

接下來再次執行:

$ curl -sSL https://get.rvm.io | bash -s stable

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

100 184 100 184 0 0 229 0 –:–:– –:–:– –:–:– 229

100 22721 100 22721 0 0 21250 0 0:00:01 0:00:01 –:–:– 6802k

Downloading https://github.com/rvm/rvm/archive/1.26.11.tar.gz

Downloading https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc

gpg: Signature made Tue 31 Mar 2015 05:52:13 CST using RSA key ID BF04FF17

gpg: Good signature from “Michal Papis (RVM signing) [email protected]”

gpg: WARNING: This key is not certified with a trusted signature!

gpg: There is no indication that the signature belongs to the owner.

Primary key fingerprint: 409B 6B17 96C2 7546 2A17 0311 3804 BB82 D39D C0E3

Subkey fingerprint: 62C9 E5F4 DA30 0D94 AC36 166B E206 C29F BF04 FF17

GPG verified ‘/home/charles/.rvm/archives/rvm-1.26.11.tgz’

Installing RVM to /home/charles/.rvm/

Adding rvm PATH line to /home/charles/.profile /home/charles/.mkshrc /home/charles/.bashrc /home/charles/.zshrc.

Adding rvm loading line to /home/charles/.profile /home/charles/.bash_profile /home/charles/.zlogin.

Installation of RVM in /home/charles/.rvm/ is almost complete:

*To start using RVM you need to run

source /home/charles/.rvm/scripts/rvm

in all your open shell windows, in rare cases you need to reopen all shell windows.

# Thank you for using RVM!

# We sincerely hope that RVM helps to make your life easier and more enjoyable!!!

#

~Wayne, Michal & team.

這時我們以安裝好了RVM,接下來就可以使用RVM安裝ruby了:

~$ rvm install ruby

~$ ruby -v

ruby 2.0.0p643 (2015-02-25 revision 49749) [i686-linux]

太棒了,ruby已安裝成功,接下來可以享受ruby帶來的快樂了。