从包中安装ckan后创建一个新的sysadmin用户需要virtualenv吗?

时间:2017-06-23 13:41:08

标签: ubuntu-14.04 ckan sysadmin

我刚从本地机器上的软件包安装了ckan。如何为我的实例创建新的sysadmin用户?如何在没有虚拟环境的情况下运行paster命令。文档没有说明从包中安装ckan的虚拟环境的要求。 当我运行以下命令时:

paster sysadmin add seanh -c /etc/ckan/default/production.ini

终端要求我获取python-pastescript。当我执行命令“sudo apt-get install python-pastescript”时,我得到以下结果:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

以下信息可能有助于解决问题:

The following packages have unmet dependencies:
 python-pastescript : Depends: python-setuptools but it is not going to be installed or
                               python-distribute
E: Unable to correct problems, you have held broken packages.

请帮助。

1 个答案:

答案 0 :(得分:0)

由于您installed CKAN from package我认为您需要在所有贴纸命令中使用sudo ckan而不是paster

e.g。

sudo ckan sysadmin add seanh -c /etc/ckan/default/production.ini
相关问题