注意:我遵循了这里的所有说明:http://blog.taragana.com/index.php/archive/how-to-download-install-jdk-6/
- 我去了 java.sun 网站
- 我在 Java SE Development Kit 6u16、jdk-6u16-linux-ia64.bin 上运行了 wget
- 我将该文件修改为 chmod 755,然后执行它。
- 我向下滚动“条款和协议”,然后输入“是”。
Unpacking... Checksumming... Extracting... ./install.sfx.1354: 1: : not found ./install.sfx.1354: 1:ELF2@@h©@@!: not found ./install.sfx.1354: 2: Syntax error: "(" unexpected Failed to extract the files. Please refer to the Troubleshooting section of the Installation Instructions on the download page for more information.
编辑:我正在从 rackspace cloud 运行“64 位”服务器。uname -p = x86_64
**sudo aptitude install sun-java6-jdk** does not work!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
No candidate version found for sun-java6-jdk
No candidate version found for sun-java6-jdk
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
答案1
检查你的存储库是否在 /etc/apt/sources.list 中包含多元宇宙,这应该可以启用 aptitude 来安装 jdk。
答案2
怎么样aptitude install sun-java6-jdk
?
答案3
您已下载 Itantium (ia64) 二进制安装程序。您应该返回 sun 的网站并确保下载 x86 安装程序。您无法安装的原因是它正在寻找 IA64 特定的部分。
您的下载应该被命名jdk-6u16-linux-x64.bin
或jdk-6u16-linux-x64-rpm.bin
第二个是如果你有一个基于RedHat的系统