我嘗試安裝cassandra appache。我正在按照debianpackaging wiki中的步驟操作。我已經添加了兩行到我的sources.list:cassandra的安裝未能滿足依賴關係
[email protected]:~$ cat /etc/apt/sources.list | grep "apache"
deb http://www.apache.org/dist/cassandra/debian 30x main
deb-src http://www.apache.org/dist/cassandra/debian 30x main
[email protected]:~$
我的Java版本看起來不錯,以及:
[email protected]:~$ java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
[email protected]:~$
然而,當我嘗試安裝它,我收到以下錯誤消息:
[email protected]:~$ sudo apt-get install cassandra
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:
cassandra : Depends: openjdk-8-jre-headless but it is not installable or
java8-runtime but it is not installable
Recommends: ntp but it is not going to be installed or
time-daemon
E: Unable to correct problems, you have held broken packages.
我該如何解決這個問題?
你使用'的apt-GET'安裝Java? –