2015-06-17 82 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版本的安裝計劃。 –