A solution for JDK dependency detection failure in ubuntu

Source: Internet
Author: User
A solution for JDK dependency detection failure installation in ubuntu-general Linux technology-Linux programming and kernel information. For details, refer to the following section. Ubuntu version 7.04
Jdk version 1.6u2

Dependency detection failed during installation
The following message is displayed:
Inflating: jdk-6u2-linux-i586.rpm
Inflating: sun-javadb-common-10.2.2-0.1.i386.rpm
Inflating: sun-javadb-core-10.2.2-0.1.i386.rpm
Inflating: sun-javadb-client-10.2.2-0.1.i386.rpm
Inflating: sun-javadb-demo-10.2.2-0.1.i386.rpm
Inflating: sun-javadb-docs-10.2.2-0.1.i386.rpm
Inflating: sun-javadb-javadoc-10.2.2-0.1.i386.rpm
Error: dependency detection failed:
/Bin/basename is required by the jdk-1.6.0_02-fcs.i586
/Bin/cat is required by the jdk-1.6.0_02-fcs.i586
/Bin/cp is required by the jdk-1.6.0_02-fcs.i586
/Bin/gawk required by jdk-1.6.0_02-fcs.i586
/Bin/grep is required by the jdk-1.6.0_02-fcs.i586
/Bin/ln required by jdk-1.6.0_02-fcs.i586
/Bin/ls is required by the jdk-1.6.0_02-fcs.i586
/Bin/mkdir required by the jdk-1.6.0_02-fcs.i586
/Bin/mv required by jdk-1.6.0_02-fcs.i586
/Bin/pwd is required by the jdk-1.6.0_02-fcs.i586
/Bin/rm required by jdk-1.6.0_02-fcs.i586
/Bin/sed is required by the jdk-1.6.0_02-fcs.i586
/Bin/sort is required by the jdk-1.6.0_02-fcs.i586
/Bin/touch is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/cut is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/dirname is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/expr is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/find is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/tail is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/tr is required by the jdk-1.6.0_02-fcs.i586
/Usr/bin/wc is required by the jdk-1.6.0_02-fcs.i586
/Bin/sh is required by the jdk-1.6.0_02-fcs.i586
Installing JavaDB
Error: dependency detection failed:
/Bin/sh is required by the sun-javadb-core-10.2.2-0.1.i386

Here, I have searched several times and found that my ubuntu does not have some commands in the above list in the bin directory. Later I checked the PATH at the prompt of my classmate zerray, and all the paths in the above list are available. But it still cannot solve the problem. So I had to find another path.

It is easy to use apt directly, but at least I did not use u2 during installation. Then I used the new software package to install java-doc. No way. Uninstall all jdk.

Then return to sun's jdk download page. There are two linux options: * rpm. bin is directly. bin. The last download was rpm. bin, this time directly download the jdk-6u2-linux-i586.bin file, after installation, everything is normal!

However, the installation process is actually decompression. Then you can move the directory to your favorite location.

Register jdk. Update-alternatives is used to register your java path, and then update-alternatives is used to select the java you just installed. This part is not described in detail on the network.

Back to java-version, you can view the version. Everything works.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.