На сайте рвм написано, что прежде чем я установлю его, я должен принять ключ.
я делаю sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
А потом я делаю \curl -sSL
https://get.rvm.io | bash -s stable --ruby и он мне выдает
detox@detox-desktop:~$ sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
[sudo] password for detox:
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: key D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" 1 new signature
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: new signatures: 1
detox@detox-desktop:~$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
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/detox/.gnupg/.#lk0x7f340c225b50.detox-desktop.10694': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: Signature made Вт. 31 марта 2015 00:52:13 MSK using RSA key ID BF04FF17
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/detox/.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:
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
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
detox@detox-desktop:~$ gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7ff5b74adc30.detox-desktop.10712': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/secring.gpg': General error
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7ff5b74adc70.detox-desktop.10712': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: no writable keyring found: Unknown system error
gpg: error reading `[stream]': General error
gpg: Total number processed: 0
detox@detox-desktop:~$ sudo gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: requesting key D39DC0E3 from hkp server keys.gnupg.net
gpg: key D39DC0E3: "Michal Papis (RVM signing) <mpapis@gmail.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
detox@detox-desktop:~$ sudo command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
sudo: command: command not found
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7f449c550b50.detox-desktop.10756': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/secring.gpg': General error
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7f449c550b90.detox-desktop.10756': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
detox@detox-desktop:~$ sudo curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7fed8fe95b50.detox-desktop.10775': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/secring.gpg': General error
gpg: failed to create temporary file `/home/detox/.gnupg/.#lk0x7fed8fe95b90.detox-desktop.10775': Permission denied
gpg: keyblock resource `/home/detox/.gnupg/pubring.gpg': General error
gpg: no writable keyring found: Unknown system error
gpg: error reading `-': General error
gpg: import from `-' failed: General error
gpg: Total number processed: 0
Почему он ключ не принимает?
Пользователь решил продолжить мысль 19 Апреля 2015, 20:34:12:
Отвечу сам себе на свою ошибку. Когда я первый раз запустил gpg от имени рута, все тогда и полете тар-тарары. Чтобы вылечить эту ошибку нужно сделать то, что попросили в этой инструкции и больше не когда не юзать sudo с gpg.
HOWTO
If you are unable to access your encryption keys and/or are having problems with gpg/the .gnupg folder in your home directory, do the following:
1. Start Nautilus as root by pressing Alt+F2 and typing 'gksudo nautilus'. Enter your password if prompted.
2. Go to your home directory (click 'Up', then double-click the 'home' folder. Double-click the folder with your username).
3. Show hidden files (press Ctrl+H)
4. Find the .gnupg folder, right click it, and select 'Properties'. Go to the 'Permissions' tab.
5. Set the permissions as follows:
Owner: your username
Folder access: Create/delete files
File access: ---
Group: your username
Folder access: none
File access: ---
Other
Folder access:none
File access: ---
Execute: A blank orange box (not unchecked or checked)
See Image 1 for more info.
6. Click 'Close'. Then, double-click the .gnupg folder. Select all the files in it, right click them, and select 'Properties'. Go to the permissions tab.
7. Set everything as follows:
Owner: your username
Access: Read and write
Group: your username
Access: none
Others
Access: none
Execute: unchecked
See Image 2 for more info.
8. Click close. Close the file browser. You should now be able to use gpg normally. To keep from ever having to do this again, remember to NEVER RUN GPG AS ROOT!!! Run it as yourself.