0

背景:我有一个 3 节点 cassandra (1.2.5) 集群,我正在尝试在其中一个节点上安装 datastax。我正在遵循以下说明:http

://www.datastax.com/docs/opscenter/install/install_deb 我已经安装了以下内容:
java -version = 1.6.0_24
python -V = 2.6.6
openssl version = 0.9.8g 19 2007 年 10 月

问题:当我运行“sudo apt-get install opscenter-free”时,安装开始但出现错误:
update-python-modules: error: no such option: --post-install dpkg: error processing opscenter-free (- -configure): 子进程安装后脚本返回错误退出状态 2

可能的根本原因:通过搜索错误,我可以收集到它看起来像 python 问题。

我运行 ls 来查看 python 所在的位置,这里有一些结果:
ls /usr/local/bin = python python2.6 python2.7
ls /usr/bin/ = python python2.5

如果我运行 'python -V' 之前指定结果是 2.6.6。
我不明白如何让我的 opscenter 安装程序查看适当的版本?或者如何理解它指的是哪个python?

4

1 回答 1

2

这很可能是 opscenter-free 软件包中的以下问题:

# cause any deferred python module compilation (like for telephus) to be done
# now, before the initscript starts
if which update-python-modules >/dev/null 2>&1; then
    update-python-modules --post-install
fi

update-python-modules 带有 python-support 包。看起来二进制文件可用,但无论安装过程找到什么版本都无法识别该--post-install选项。

如果which update-python-modules指向较旧 (<= 2.5) 或较新 (3.0+) 版本的脚本,您可以尝试删除包含该脚本的任何包,或更新 python-support 包。

于 2013-09-17T15:10:59.980 回答