Unix

無法在 UBUNTU 上安裝 JAVA SDK

  • October 9, 2009

注意:我按照這裡的所有說明進行操作:http: //blog.taragana.com/index.php/archive/how-to-download-install-jdk-6/

  1. 我去了 java.sun 網站
  2. 我在 wget 上執行:Java SE Development Kit 6u16, jdk-6u16-linux-ia64.bin
  3. 我 chmod 755 文件,然後我執行了它。
  4. 我向下滾動“條款和協議”,然後輸入“是”。
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.

編輯:我正在從機架空間雲執行“64 位”伺服器。unname -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

檢查您的儲存庫是否在 /etc/apt/sources.list 中包含 multiverse,這應該使 aptitude 能夠安裝 jdk。

怎麼樣aptitude install sun-java6-jdk

引用自:https://serverfault.com/questions/72734