← Back to team overview

openjdk team mailing list archive

[Bug 103933] Re: Java install via Add/Remove crashed

 

Well, I install java from sun's .bin archive and the same, but the
problem is only on my USB portable HDD, on my desktop the installation
works. The problem is persistence related and with the user. When I
install fron ubuntu user that error (libjli.so not found) appears, so I
delete and reinstall but from sudo su and now the problem is
"libjava.so". This is the info that I have in order to help to resolve
the problem

jq@ubuntu:/usr/lib/jvm$ which java
/usr/bin/java
jq@ubuntu:/usr/lib/jvm$ file /etc/alternatives/java
/etc/alternatives/java: symbolic link to `/usr/lib/jvm/jdk1.6.0_03/bin/java'
jq@ubuntu:/usr/lib/jvm$ file /usr/lib/jvm/jdk1.6.0_03/bin/java
/usr/lib/jvm/jdk1.6.0_03/bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
jq@ubuntu:/usr/lib/jvm$ ldd /usr/lib/jvm/jdk1.6.0_03/bin/java
	linux-gate.so.1 =>  (0xb7fba000)
	libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f94000)
	libjli.so => /usr/lib/jvm/jdk1.6.0_03/jre/lib/i386/jli/libjli.so (0xb7f8a000)
	libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f86000)
	libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e37000)
	/lib/ld-linux.so.2 (0xb7fbb000)
jq@ubuntu:/usr/lib/jvm$ java -version
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.
jq@ubuntu:/usr/lib/jvm$ 

I'll try ASAP with the solution, please correct me if I wrong (I'm
newbie with these things), but the solution is to put on .profile a ln
-s /squashmnt / and ln -s /persistentmnt / ?

Thanks

-- 
Java install via Add/Remove crashed
https://bugs.launchpad.net/bugs/103933
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in Source Package "openjdk-6" in Ubuntu: New
Status in Source Package "sun-java5" in Ubuntu: Confirmed
Status in Source Package "sun-java6" in Ubuntu: Confirmed
Status in Source Package "sun-java6" in Debian GNU/Linux: New

Bug description:
Binary package hint: ubuntu-restricted-extras

Just picked a bunch of restricted stuff to install while running from the livecd. Here's the error output.
Setting up sun-java6-jre (6-00-2ubuntu2) ...

Setting up sun-java6-bin (6-00-2ubuntu2) ...
/usr/lib/jvm/java-6-sun-1.6.0.00/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-00-2ubuntu2); however:
  Package sun-java6-bin is not configured yet.
dpkg: error processing sun-java6-plugin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-restricted-extras:
 ubuntu-restricted-extras depends on sun-java6-plugin; however:
  Package sun-java6-plugin is not configured yet.
dpkg: error processing ubuntu-restricted-extras (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 sun-java6-bin
 sun-java6-plugin
 ubuntu-restricted-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up sun-java6-bin (6-00-2ubuntu2) ...
/usr/lib/jvm/java-6-sun-1.6.0.00/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-00-2ubuntu2); however:
  Package sun-java6-bin is not configured yet.
dpkg: error processing sun-java6-plugin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-restricted-extras:
 ubuntu-restricted-extras depends on sun-java6-plugin; however:
  Package sun-java6-plugin is not configured yet.
dpkg: error processing ubuntu-restricted-extras (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 sun-java6-bin
 sun-java6-plugin
 ubuntu-restricted-extras

ProblemType: Bug
Architecture: i386
Date: Fri Apr  6 22:57:27 2007
DistroRelease: Ubuntu 7.04
Uname: Linux ubuntu 2.6.20-12-generic #2 SMP Wed Mar 21 20:55:46 UTC 2007 i686 GNU/Linux