我想在我的Ubuntu机具有以下信息安装RVM:RVM Ubuntu上安装失败(错误导入公共密钥)Kodign VM]
- DISTRIB_ID = Ubuntu的
- DISTRIB_RELEASE = 14.04
- DISTRIB_CODENAME =信赖
- DISTRIB_DESCRIPTION =“Ubuntu的LTS 14.04
我按照官方RVM导这样做,prese这里nted:
但是我在第一个命令失败,我无法导入mpapi的公共密钥(使用sudo即使):
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
我得到以下错误:
fl4m3ph03n1x: ~ $ sudo gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
gpg: WARNING: unsafe ownership on configuration file `/home/fl4m3ph03n1x/.gnupg/gpg.conf'
gpg: external program calls are disabled due to unsafe options file permissions
gpg: keyserver communications error: general error
gpg: keyserver receive failed: general error
起初我以为问题是ap (通过检查警告),但在下面的讨论中阅读并尝试解决方案后,没有任何更改。
下面是对文件的访问权限:
fl4m3ph03n1x: ~ $ ls -ld /home/fl4m3ph03n1x/.gnupg/gpg.conf
-rwx------ 1 fl4m3ph03n1x fl4m3ph03n1x 9398 Jul 21 14:43 /home/fl4m3ph03n1x/.gnupg/gpg.conf
fl4m3ph03n1x: ~ $ ls -l /home/fl4m3ph03n1x/.gnupg/gpg.conf
-rwx------ 1 fl4m3ph03n1x fl4m3ph03n1x 9398 Jul 21 14:43 /home/fl4m3ph03n1x/.gnupg/gpg.conf
我在做什么错?我该如何解决我的问题?
有问题的文件的所有权设置和权限是什么? – sevenseacat
可能重复的[gpg:警告:配置文件上的不安全所有权,Ubuntu9.10上的$ gpg --fingerprint](http://stackoverflow.com/questions/2182938/gpg-warning-unsafe-ownership-on-configuration- file-gpg-fingerprint-on-ubun) –
假设你运行的是'fl4m3ph03n1x'用户:'sudo chown fl4m3ph03n1x /home/fl4m3ph03n1x/.gnupg/gpg.conf && chmod 600 /home/fl4m3ph03n1x/.gnupg/gpg .conf' – mudasobwa