package sun-java6-jre 6-04-1 failed to install/upgrade: "... libjli.so: cannot open shared object file"

Bug #190794 reported by DeeDee0815
This bug report is a duplicate of:  Bug #103933: Java install via Add/Remove crashed. Edit Remove
8
Affects Status Importance Assigned to Milestone
sun-java6 (Debian)
Fix Released
Unknown
sun-java6 (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Only running Ubuntu Hardy Alpha4 LiveCD and install Java 6 Web Start.

ProblemType: Package
Architecture: i386
Date: Sun Feb 10 22:23:55 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: Abhängigkeitsprobleme - lasse es unkonfiguriert
Package: sun-java6-jre 6-04-1
PackageArchitecture: all
SourcePackage: sun-java6
Title: package sun-java6-jre 6-04-1 failed to install/upgrade: Abhängigkeitsprobleme - lasse es unkonfiguriert
Uname: Linux ubuntu 2.6.24-5-generic #1 SMP Thu Jan 24 19:45:21 UTC 2008 i686 GNU/Linux

Revision history for this message
DeeDee0815 (deedee0815) wrote :
Revision history for this message
Matti Lindell (mlind) wrote :

Can you reproduce this issue with up-to-date Hardy?

Changed in sun-java6:
status: New → Incomplete
Revision history for this message
DeeDee0815 (deedee0815) wrote :

Yes, of course.

Heres the full apt-code.

ubuntu@ubuntu:~$ sudo apt-get install sun-java6-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  java-common odbcinst1debian1 sun-java6-bin unixodbc
Suggested packages:
  equivs binfmt-support sun-java6-fonts sun-java6-plugin ia32-sun-java6-plugin
  libmyodbc odbc-postgresql libct1
Recommended packages:
  gsfonts-x11
The following NEW packages will be installed:
  java-common odbcinst1debian1 sun-java6-bin sun-java6-jre unixodbc
0 upgraded, 5 newly installed, 0 to remove and 336 not upgraded.
Need to get 34.0MB of archives.
After this operation, 97.8MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com hardy/main java-common 0.27ubuntu1 [78.0kB]
Get:2 http://archive.ubuntu.com hardy/main odbcinst1debian1 2.2.11-16 [67.3kB]
Get:3 http://archive.ubuntu.com hardy/main unixodbc 2.2.11-16 [297kB]
Get:4 http://archive.ubuntu.com hardy/multiverse sun-java6-bin 6-04-2 [27.2MB]
Get:5 http://archive.ubuntu.com hardy/multiverse sun-java6-jre 6-04-2 [6333kB]
Fetched 34.0MB in 4min30s (126kB/s)
Preconfiguring packages ...
Selecting previously deselected package java-common.
(Reading database ... 97852 files and directories currently installed.)
Unpacking java-common (from .../java-common_0.27ubuntu1_all.deb) ...
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-16_i386.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.11-16_i386.deb) ...
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-java6-bin_6-04-2_i386.deb) ...
Selecting previously deselected package sun-java6-jre.
Unpacking sun-java6-jre (from .../sun-java6-jre_6-04-2_all.deb) ...
sun-dlj-v1-1 license has already been accepted
Setting up java-common (0.27ubuntu1) ...

Setting up odbcinst1debian1 (2.2.11-16) ...

Setting up unixodbc (2.2.11-16) ...

Setting up sun-java6-bin (6-04-2) ...
/usr/lib/jvm/java-6-sun-1.6.0.04/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-jre:
 sun-java6-jre depends on sun-java6-bin (= 6-04-2) | ia32-sun-java6-bin (= 6-04-2); however:
  Package sun-java6-bin is not configured yet.
  Package ia32-sun-java6-bin is not installed.
dpkg: error processing sun-java6-jre (--configure):
 dependency problems - leaving unconfigured
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 sun-java6-bin
 sun-java6-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@ubuntu:~$

Greetings,
DeeDee0815

Revision history for this message
Matti Lindell (mlind) wrote :

I can reproduce this in a sandbox environment where there's no /proc mounted. You're running this on a LiveCD environment right? Could you check if the proc is mounted? --> mount | grep proc

If /proc is not mounted for some reason, then do 'sudo mount -t proc proc /proc' and try installing sun-java6-jre again.

Revision history for this message
DeeDee0815 (deedee0815) wrote :

Unfortunately this is not the reason for this error. When I type your given command, i get to know that /proc is mounted:

ubuntu@ubuntu:~$ mount | grep proc
proc on /proc type proc (rw)

Greetings,
DeeDee0815

P.S.: I think this bug's importance-state should be at least medium, cause if this bug will stay in the final release of gutsy, people will not be able to use java-apps. Of course, if this bug only occours in the live-system, it would be okay, but i don't think that this is like that.

P.P.S.: Excuse my possibly bad expression.

Changed in sun-java6:
status: Unknown → New
Revision history for this message
Nathaniel W. Turner (nturner) wrote :

I just hit this same issue on a gutsy live CD. Have not tried lately on gutsy proper.

Revision history for this message
Matti Lindell (mlind) wrote :

Is this only happening in LiveCD (casper) environment?

Could you post the output of
$ ldd /usr/lib/jvm/java-6-sun/bin/java

Related discussion in #ubuntu-java
http://irclogs.ubuntu.com/2007/08/28/%23ubuntu-java.txt

Revision history for this message
DeeDee0815 (deedee0815) wrote :

I don't know if this only happens in Casper-Environment: I don't want to install an Ubuntu-Alpha on my productive machine.

The output of ldd /usr/lib/jvm/java-6-sun/bin/java after the installation-failure:
 linux-gate.so.1 => (0xb7fa5000)
 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f7f000)
 libjli.so => not found
 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f7a000)
 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e2b000)
 /lib/ld-linux.so.2 (0xb7fa6000)

(Testet with the brand-new alpha6)

I apply to the maintainers of this package: The JRE is very important an this _has to be fixed_ up to the final release of gutsy.

Greetings,
DeeDee0815

P.S.: Excuse my possibly bad english.

Revision history for this message
DeeDee0815 (deedee0815) wrote :

Sorry, I meant hardy.

Revision history for this message
Daniel (x-uereb) wrote :

Package sun-java5-jdk is not installed, so not removed
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  sun-java6-bin: Depends: sun-java6-jre (= 6-06-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
daniel@daniel-desktop:~$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  sun-java6-bin: Depends: sun-java6-jre (= 6-06-0ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
daniel@daniel-desktop:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
daniel@daniel-desktop:~$ y
bash: y: command not found
daniel@daniel-desktop:~$

 what to do ??? :((

Changed in sun-java6:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.