所以我试图使用过去几个月一直在为我工作的方法安装 dsc21。我使用的命令如下
echo "deb http://debian.datastax.com/community stable main" | tee -a /etc/apt/sources.list.d/cassandra.sources.list
curl -L http://debian.datastax.com/debian/repo_key | apt-key add -
apt-get -q -y install dsc21
这今天停止为我工作,我收到一个错误说
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 information may help to resolve the situation:
The following packages have unmet dependencies:
dsc21 : Depends: cassandra (= 2.1.8) but 2.2.0 is to be installed
E: Unable to correct problems, you have held broken packages.
基本上我认为问题是在我不需要重新安装的时候,我认为 datastax 推送了 dsc22 并且做
apt-get install dsc22
确实有效。我现在无法升级,因为这意味着升级我使用的所有其他软件。编辑:我使用的操作系统是“ubuntu/trusty64”
Edit2:我试过运行
apt-get install dsc21=2.1.8-1
并且它产生与上面相同的错误 最佳答案
在错误之后,也为 cassandra 包指定正确的版本! apt-get install dsc21=2.1.8-1 cassandra=2.1.8
关于linux - 安装 dsc21 : "dsc21 : Depends: cassandra (= 2.1.8) but 2.2.0 is to be installed" 时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31617691/