ubuntu - charm 无法创建 charm store 客户端

标签 ubuntu ubuntu-14.04 juju

我按照此处的详细信息创建了一个魅力@ 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/

相关文章:

kubernetes - 将裸机 kubernetes 集群暴露在互联网上

Git权限因文件夹而异?

ubuntu - Windows 主机的 Ansible-expect 模块

python - 错误: command 'c++' failed with exit status 1

istio-ingressgateway 始终等待 Istio Pilot 信息

ubuntu - Openstack 节点软件更新

postgresql - 启动 postgresql 服务器时出错 - 蛇油键出错

windows - 自动 Samba 共享脚本

mysql - Ubuntu Mysql 卸载/重新安装

MongoDB 未授权 : replSetGetConfig