我想在我的 Lubuntu 操作系统上安装 JDK 1.6。
但它是一些特定的.bin
文件,而不是tar.gs
Linux 的文件 -Java SE 开发套件 6u45。
更新:
按照以下建议后,我得到了以下信息:
error: Failed dependencies:
/bin/basename is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/cat is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/cp is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/gawk is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/grep is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/ln is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/ls is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/mkdir is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/mv is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/pwd is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/rm is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/sed is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/sort is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/touch is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/cut is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/dirname is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/expr is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/find is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/tail is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/tr is needed by jdk-2000:1.6.0_45-fcs.x86_64
/usr/bin/wc is needed by jdk-2000:1.6.0_45-fcs.x86_64
/bin/sh is needed by jdk-2000:1.6.0_45-fcs.x86_64
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
error: Failed dependencies:
/bin/sh is needed by sun-javadb-core-10.6.2-1.1.i386
我该如何解压并使用这个.bin
文件来解压 JDK?
答案1
使用以下命令使文件可执行:
chmod a+x <your_file>.bin
现在使用以下命令运行它:
./<your_file>.bin