rubypool / tips-errors-challenges

0 stars 0 forks source link

GPG key error in scripted installation of RVM #3

Open ektaverma1 opened 9 years ago

ektaverma1 commented 9 years ago

I tried updating rvm using 'rvm get stable' and came up with this error:

ekta@ubuntu:~$ rvm get stable % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184 100 184 0 0 136 0 0:00:01 0:00:01 --:--:-- 271 100 22721 100 22721 0 0 6771 0 0:00:03 0:00:03 --:--:-- 17216 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: directory /home/ekta/.gnupg' created gpg: new configuration file/home/ekta/.gnupg/gpg.conf' created gpg: WARNING: options in /home/ekta/.gnupg/gpg.conf' are not yet active during this run gpg: keyring/home/ekta/.gnupg/pubring.gpg' created gpg: Signature made Tue 31 Mar 2015 03:22:13 AM IST using RSA key ID BF04FF17 gpg: Can't check signature: public key not found Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found. Assuming you trust Michal Papis import the mpapis public key (downloading the signatures).

GPG signature verification failed for '/home/ekta/.rvm/archives/rvm-1.26.11.tgz' - 'https://github.com/rvm/rvm/releases/download/1.26.11/1.26.11.tar.gz.asc'! try downloading the signatures:

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

or if it fails:

command curl -sSL https://rvm.io/mpapis.asc | gpg --import -

the key can be compared with:

https://rvm.io/mpapis.asc
https://keybase.io/mpapis


To resolve this issue run the following command:

ekta@ubuntu:~$ sudo apt-get install gnupg2

Once this completes, you can run this command to update rvm on your machine:

ekta@ubuntu:~$ curl -L get.rvm.io | bash -s stable

This command should successfully update rvm.

Note: After the installation, you can cleanup the previous versions of rvm by running :

ekta@ubuntu:~$ rvm reload

Hope this helps :bowtie: