如何在 Ubuntu 上安装 openjdk-6-jre



我试图使用 sudo apt-get install openjdk-6-jre 为 URSim 安装 openjdk-6-jre 这个 arfternoon 但我得到了以下内容

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package openjdk-6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
icedtea-netx:i386 icedtea-netx-common icedtea-netx
E: Package 'openjdk-6-jre' has no installation candidate

当我尝试使用 openjdk-8-jdk 安装 URSim 时,我得到以下内容

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libjava3d-jni' for glob 'libjava3d-*'
Note, selecting 'libjava3d-java-doc' for glob 'libjava3d-*'
Note, selecting 'libjava3d-java' for glob 'libjava3d-*'
Note, selecting 'ttf-dejavu-core' for glob 'ttf-dejavu*'
Note, selecting 'ttf-dejavu-extra' for glob 'ttf-dejavu*'
Note, selecting 'ttf-dejavu' for glob 'ttf-dejavu*'
Package openjdk-6-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  icedtea-netx:i386 icedtea-netx-common icedtea-netx
E: Package 'openjdk-6-jre' has no installation candidate

我还尝试从Oracle下载Java 1.6并安装它,但是当我尝试安装URSim时,它似乎无法识别它。

有关更新镜像的任何帮助?或者找到正确的安装文件和路径设置以使其正常工作?

我按照此处的说明找到了解决方案:https://github.com/arunavanag591/ursim

事实证明,我只需要将依赖项从openjdk-6-jre更改为openjdk-8-jre,一切似乎都正常。

最新更新