我想在我的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