2015-06-17 81 views
1

的版本尝试:无法安装上Datastax DSE

apt-get install 'dse-full=4.6.5-1' 

并获得:

failed: [dsenode01] => {"failed": true} 
stderr: E: Unable to correct problems, you have held broken packages. 

stdout: Reading package lists... 
Building dependency tree... 
Reading state information... 
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: 
dse-full : Depends: dse (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-hive (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-pig (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-demos (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-libsolr (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-libtomcat (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-libsqoop (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-liblog4j (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-libmahout (= 4.6.5-1) but 4.7.0-1 is to be installed 
      Depends: dse-libspark (= 4.6.5-1) but 4.7.0-1 is to be installed 

msg: 'apt-get install 'dse-full=4.6.5-1' ' failed: E: Unable to correct problems, you have held broken packages. 

我该怎么办错了吗?

回答

2

运行:

$ sudo易于得到更新$ sudo易于得到安装DSE全=版本1 DSE =版本1 DSE蜂箱=版本1 DSE猪=版本1 dse- demse =版本-1 dse-libsolr =版本-1 dse-libtomcat =版本-1 dse-libsqoop =版本-1 dse-liblog4j =版本-1 dse-libmahout =版本-1 dse-libhadoop-native =版本-1 dse -libcassandra =版本1 DSE-libhive =版本1 DSE-libpig =版本1 DSE-libhadoop =版本1

还是感谢@Ian埃文斯,使用aptitude:

sudo aptitude install dse-full=4.6.5-1

http://docs.datastax.com/en/datastax_enterprise/4.6/datastax_enterprise/install/installDEBdse.html

+0

谢谢!我已经使用安装C *。 5月份没事,两个月后它不起作用。我以前没有把这些命令放入Ansible。惊讶了一点...... P.S.最后更新时间:2015年6月12日omg ...谢谢...你救了我的一天。 – Sergey

+0

必须从4.7开始下降 – phact

+1

使用aptitude可以使这一切变得更加简单。 sudo aptitude install dse-full = 4.6.5-1 然后选择安装所有依赖关系的4.6.5版本的安装计划。 –