我按照此处的详细信息创建了一个魅力@ https://jujucharms.com/docs/stable/tools-charm-tools
我创造了一个叫做“foo”的魅力
$ charm create foo
INFO: Using default charm template (reactive-python). To select a different template, use the -t option.
INFO: Generating charm for foo in ./foo
INFO: No foo in apt cache; creating an empty charm instead.
Cloning into '/tmp/tmpytr_hB'...
remote: Counting objects: 27, done.
remote: Total 27 (delta 0), reused 0 (delta 0), pack-reused 27
Unpacking objects: 100% (27/27), done.
Checking connectivity... done.
它是空的,什么都没有。那没问题。
现在,当我尝试使用 charm list
列出此 charm 时,它在下面显示了 ERROR
$ charm list
ERROR cannot create the charm store client: cannot load the cookie jar
我在其他几个 charm 选项上遇到了同样的错误。有人可以帮我吗?
最佳答案
发生这种情况是因为我的用户没有根访问权限。
没有sudo
:
$ charm list
ERROR cannot create the charm store client: cannot load the cookie jar
使用sudo
:
$ sudo charm list
No charms found.
所有其他魅力选项也可用。
关于ubuntu - charm 无法创建 charm store 客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41800677/