Linux
openjdk-8-jre-headless :取決於:ca-certificates-java 但不會安裝
無法安裝Java8
apt-get install openjdk-8-jre-headless 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: openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed E: Unable to correct problems, you have held broken packages
我搜尋了Google並添加了 repos 和其他建議,但沒有任何東西允許我安裝 Java 8。
想法?
lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.7 (jessie) Release: 8 Codename: jessie
這是傑西嗎?帶有反向埠
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
它不適用於 Jessie backports。我嘗試了拉伸並安裝了它。
echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list && \ apt-get update && \ apt-get install -y --no-install-recommends openjdk-8-jre-headless && \ rm /etc/apt/sources.list.d/stretch.list && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*
PS:因為我在這裡,所以我使用了澳大利亞鏡子。從這裡選擇最適合您的。