error during java install

Asked by jonathan

After unpacking 0B of additional disk space will be used.
Setting up sun-java5-bin (1.5.0-13-0ubuntu1) ...
Error: could not find libjava.so
I am trying to install java on my ubuntu usb stick. I can install other packaged once I updated the source.list, but when I tried to install sun-java I get this following error

Error: could not find Java 2 Runtime Environment.
dpkg: error processing sun-java5-bin (--configure):
 subprocess post-installation script returned error exit status 2
Setting up sun-java6-bin (6-03-0ubuntu2) ...
/usr/lib/jvm/java-6-sun-1.6.0.03/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
dpkg: error processing sun-java6-bin (--configure):
 subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of sun-java6-plugin:
 sun-java6-plugin depends on sun-java6-bin (= 6-03-0ubuntu2); however:
  Package sun-java6-bin is not configured yet.
dpkg: error processing sun-java6-plugin (--configure):
 dependency problems - leaving unconfigured
sun-java6-bin
 sun-java6-plugin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
jonathan
Solved:
Last query:
Last reply:
Revision history for this message
Isak Frants (isakfrants) said :
#1

Well, sun-java6-plugin cannot be installed since you don't have sun-java6-bin. sun-java6-bin on the other hand has problems in finding some files. But what on earth is sun-java5-bin doing in the installation of java6 ? And sun-java6-jre isn't even mentioned in your list, but still both -plugin and -bin is depentent on -jre.
"Error: could not find Java 2 Runtime Environment.". Where's your -jre ?

Try installing only
sun-java6-bin
sun-java6-jre
sun-java6-plugin

and will see if the lack of -java5- is helping us.

Revision history for this message
jonathan (jejo5205) said :
#2

ln -s / /cow