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

时间:2018-04-12 07:27:01

标签: java ubuntu-16.04

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

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时,它似乎无法识别它。

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

1 个答案:

答案 0 :(得分:-1)

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

原来我只需要将openjdk-6-jre的依赖项更改为openjdk-8-jre,一切似乎都正常。