Jas*_*son 46 linux debian java software-installation
无法安装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
Run Code Online (Sandbox Code Playgroud)
我已经搜索过谷歌并添加了 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
Run Code Online (Sandbox Code Playgroud)
小智 90
这是杰西吗?带向后移植
apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
Run Code Online (Sandbox Code Playgroud)
小智 9
它不适用于 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/*
Run Code Online (Sandbox Code Playgroud)
PS:自从我在这里以来,我使用了澳大利亚镜子。从这里选择最适合您的。
归档时间: |
|
查看次数: |
41482 次 |
最近记录: |