我无法快速将我的项目上传到我的 PPA。我已经设置了我的 PGP 密钥并用它来签署行为准则,而且 PPA 已经存在。我不知道我还能提供什么其他有用的信息。
robin@RobinJ:~/Ubuntu One/Python/gtkreddit$ quickly share --ppa robinj/gtkredditGet Launchpad Settings
Launchpad connection is ok
gpg: WARNING: unsafe permissions on configuration file `/home/robin/.gnupg/gpg.conf'
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/robin/.gnupg/gpg.conf'
gpg: WARNING: unsafe permissions on configuration file `/home/robin/.gnupg/gpg.conf'
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/robin/.gnupg/gpg.conf'
Traceback (most recent call last):
File "/usr/share/quickly/templates/ubuntu-application/share.py", line 138, in <module>
license.licensing()
File "/usr/share/quickly/templates/ubuntu-application/license.py", line 284, in licensing
{'translatable': 'yes'})
File "/usr/share/quickly/templates/ubuntu-application/internal/quicklyutils.py", line 166, in change_xml_elem
xml_tree.find(parent_node).insert(0, new_node)
AttributeError: 'NoneType' object has no attribute 'insert'
ERROR: share command failed
Aborting
我在 Launchpad 上将此报告为错误,因为我认为这是一个错误。如果您知道快速解决方法,请告诉我。
https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/1018138
答案1
如果您的密钥和配置没有正确的权限,GPG 不会运行。具体来说,它不喜欢其他用户能够读取它们。因此,请尝试运行:chmod 600 /home/robin/.gnupg/gpg.conf
然后重试。如果您收到相同的错误,但来自 中的另一个文件,请对该文件/home/robin/.gnupg/
执行相同的操作。chmod 600