我在这个旧的G4上运行debian,在安装Java时遇到了问题。在Google上搜索之后,我只发现了其他linux发行版的问题,主要是ubuntu。我遵循了说明here(与所有论坛上的说明几乎相同),但仍然得到下面的错误。所以我想我一定是错过了别的什么?
sudo apt-get install oracle-java7-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
icedtea-netx-common libatk-wrapper-java libatk-wrapper-java-jni libice-dev
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc
libxau-dev libxcb1-dev libxdmcp-dev libxt-dev tzdata-java x11proto-core-dev
x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Use 'apt-get autoremove' to remove them.
Suggested packages:
visualvm ttf-baekmuk ttf-unfonts ttf-unfonts-core ttf-kochi-gothic
ttf-sazanami-gothic ttf-kochi-mincho ttf-sazanami-mincho ttf-arphic-uming
The following NEW packages will be installed:
oracle-java7-installer
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/18.5 kB of archives.
After this operation, 111 kB of additional disk space will be used.
Preconfiguring packages ...
Please report to author unsupported platform 'ppc'.
Proceeding without web browser plugin support
Selecting previously unselected package oracle-java7-installer.
(Reading database ... 133336 files and directories currently installed.)
Unpacking oracle-java7-installer (from .../oracle-java7-installer_7u45-0~webupd8~6_all.deb) ...
Please report to author unsupported platform 'ppc'.
Proceeding without web browser plugin support
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for shared-mime-info ...
Setting up oracle-java7-installer (7u45-0~webupd8~6) ...
Please report to author unsupported platform 'ppc'.
Proceeding without web browser plugin support
Please report to author unsupported platform 'ppc'.
Proceeding without web browser plugin support
Downloading Oracle Java 7...
--2014-01-05 12:35:22-- http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-.tar.gz
Resolving download.oracle.com (download.oracle.com)... 165.254.157.186, 165.254.157.161
Connecting to download.oracle.com (download.oracle.com)|165.254.157.186|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-.tar.gz [following]
--2014-01-05 12:35:22-- https://edelivery.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.72.102.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.72.102.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-.tar.gz?AuthParam=1388954247_1ac88f4b088d579770b3688a530d3ce9 [following]
--2014-01-05 12:35:27-- http://download.oracle.com/otn-pub/java/jdk/7u45-b18/jdk-7u45-linux-.tar.gz?AuthParam=1388954247_1ac88f4b088d579770b3688a530d3ce9
Connecting to download.oracle.com (download.oracle.com)|165.254.157.186|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-01-05 12:35:27 ERROR 404: Not Found.
download failed
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
oracle-java7-installer
E: Sub-process /usr/bin/dpkg returned an error code (1)
最佳答案
如果你真的在G4上,那么你有一个PPC CPU。所以X86安装程序无法工作。错误“unsupported platform'ppc'”和“ERROR 404”说明了这一点。您要连接的存储库中没有可用的Java7PPC版本。我不确定Oracle是否为版本7制作了任何PPC版本的JVM。
特别是像这样的JVM构建,当Sun发布Java时,通常需要编译回自己。不确定Oracle是否允许您再编译自己的JVM。