J'essaie d'installer Ruby sur Ubuntu 16.04. Cependant, quand je rentre à commande suivante à la borne:Impossible d'installer Ruby rvm sur Ubuntu 16.04 en raison d'un bug gpg
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
Je reçois le texte suivant:
Downloading https://github.com/rvm/rvm/archive/1.29.1.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.1/1.29.1.tar.gz.asc
gpg: Signature made 19 فبر, 2017 EET 10:02:47 م using RSA key ID ********
gpg: Can't check signature: No public key
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/tamer/.rvm/archives/rvm-1.29.1.tgz' - 'https://github.com/rvm/rvm/releases/download/1.29.1/1.29.1.tar.gz.asc'! Try to install GPG v2 and then fetch the public key:
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys ****************************************
or if it fails:
command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
the key can be compared with:
https://rvm.io/mpapis.asc
https://keybase.io/mpapis
NOTE: GPG version 2.1.17 have a bug which cause failures during fetching keys from remote server. Please downgrade or upgrade to newer version (if available) or use the second method described above.
Quand j'ai essayé toute commande RVM je suis arrivé 'command not found'.
J'ai essayé de demander https://rvm.io/mpapis.asc via le navigateur. Ensuite, en cours d'exécution suivantes:
$ gpg --import mpapis.asc
, mais je suis arrivé ce qui suit:
gpg: fatal: can't open `/home/tamer/.gnupg/trustdb.gpg': Permission denied
secmem usage: 1408/1408 bytes in 2/2 blocks of pool 1408/65536
Je ne suis pas habitué à faire quelque chose que je ne comprends pas, alors je me suis arrêté et leur ai pas essayé sudo .
Alors, comment puis-je installer Ruby?
Mise à jour
J'ai aussi essayé d'installer gpg2 en utilisant:
$ sudo apt-get install gnupg2 -y
puis j'ai essayé
$ gpg2 --keyserver hkp://keys.gnupg.net --recv-keys <key>
et aussi
$ curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
Mais quand même, le même résultat quand j'essaye d'installer rvm avec la première commande.
n.b. J'ai remarqué que j'ai gpg v1.4.20 et gpg2 v2.1.11
Merci! Enfin quelque chose qui a fonctionné pour moi! – Plavookac
Je suis Glade ça m'a aidé :) – TamerB