如何在具有多架构的 amd64 服务器上安装 32 位 Java 运行时?

如何在具有多架构的 amd64 服务器上安装 32 位 Java 运行时?

我是 Ubuntu 的老用户,但最近几个版本我都没有关注社区。我刚刚在默认的最小 amd64 上安装了 Oneiric,我需要一个 32 位 JRE 来运行某个应用程序。我上次在 10.10 上安装这个,所以我对多架构的东西不太熟悉。我没有安装 ia32-libs,而是阅读了一些资料并尝试了:

aptitude install default-jre-headless:i386

但这让我:

The following NEW packages will be installed:
  default-jre-headless{b} openjdk-6-jre-headless{ab} 
The following packages are RECOMMENDED but will NOT be installed:
  icedtea-6-jre-cacao icedtea-6-jre-jamvm 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.3 MB of archives. After unpacking 82.1 MB will be used.
The following packages have unmet dependencies:
  default-jre-headless: Depends: java-common which is a virtual package.
  openjdk-6-jre-headless: Depends: openjdk-6-jre-lib (>= 6b23~pre10-0ubuntu5) which is a virtual package.
                      Depends: ca-certificates-java which is a virtual package.
                      Depends: tzdata-java which is a virtual package.
                      Depends: java-common (>= 0.28) which is a virtual package.
                      Depends: libcups2 but it is not going to be installed.
                      Depends: liblcms1 but it is not going to be installed.
                      Depends: libjpeg62 but it is not going to be installed.
                      Depends: libnss3-1d (>= 3.12.9+ckbi-1.82-0ubuntu4) but it is not going to be installed.
                      Depends: libc6 (>= 2.11) but it is not going to be installed.
                      Depends: libfreetype6 (>= 2.2.1) but it is not going to be installed.
                      Depends: libgcc1 (>= 1:4.1.1) but it is not going to be installed.
                      Depends: libstdc++6 (>= 4.1.1) but it is not going to be installed.
                      Depends: zlib1g (>= 1:1.1.4) but it is not going to be installed.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1)     default-jre-headless [Not Installed]               
2)     openjdk-6-jre-headless [Not Installed]             



Accept this solution? [Y/n/q/?] q

aptitude 是否未安装依赖项的 32 位版本?正确的做法是什么?如果这很重要,我可能想要 64 位和 32 位 JRE。

答案1

多架构支持仍处于非常早期的阶段。在 11.10 中,有足够的多架构支持 flash 和 skype。在 12.04 中,它将覆盖 ia32-libs 所做的一切,但不是所有其他的。这将需要数年时间,尽管最受欢迎的部分可能会首先出现。

答案2

回答我自己的问题:我找不到这样做的方法,我只是使用 Sun 的 32 位 JRE 包并将其安装到 /opt 中。

我在安装 WINE 时也遇到过类似的问题。但这似乎只是因为 aptitude 无法与多架构兼容,apt-get install WINE 工作正常。

相关内容