Public bug reported:

When you try to install sun-java6-bin while chrooted, libjli.so cannot
be found. The output of dpkg is as follows:

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
Errors were encountered while processing:
 sun-java6-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

It's likely that several of the bugs filed against sun-java6-bin
regarding installation/configuration errors can be attributed to the
trouble this package has with chroot. Rather than try to take over one
of those I opened this bug report.

You can work around the configuration problem by temporarily setting
LD_LIBRARY_PATH:

LD_LIBRARY_PATH=/opt/jdk1.7.0/jre/lib/i386/jli dpkg --configure -a

You still can't *run* java in the chroot environment, but at least it's
installed properly.

** Affects: sun-java6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
sun-java6-bin fails to install in a chrooted environment
https://bugs.launchpad.net/bugs/176198
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to