[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: java installation bug



I think this has something to do with gij-4.0; it lists rmiregistry as a slave:

# update-alternatives --display java
java - manual mode
 link currently points to /usr/lib/jvm/java-6-sun/jre/bin/java
/usr/bin/gij-wrapper-4.0 - priority 40
 slave java.1.gz: /usr/share/man/man1/gij-wrapper-4.0.1.gz
 slave rmiregistry: /usr/bin/grmiregistry-4.0
 slave rmiregistry.1.gz: /usr/share/man/man1/grmiregistry-4.0.1.gz
/usr/lib/j2sdk1.5-sun/bin/java - priority 315
 slave java.1.gz: /usr/lib/j2sdk1.5-sun/man/man1/java.1.gz
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java - priority 53
 slave java.1.gz: /usr/lib/jvm/java-1.5.0-sun/jre/man/man1/java.1.gz
/usr/lib/jvm/java-6-sun/jre/bin/java - priority 63
 slave java.1.gz: /usr/lib/jvm/java-6-sun/jre/man/man1/java.1.gz
Current `best' version is /usr/lib/j2sdk1.5-sun/bin/java.

note the other java alternatives do not.

Removing gij-4.0 worked for me.

Cheers,
Elizabeth

On Fri, Jul 31, 2009 at 3:58 PM, Fred<fred@namurlug.org> wrote:
>
> Hi,
>
> I'm running debian unstable and I'm regularly safe upgrade my distro.
> One of these last day, I felt on this error (see here under).
>
> Did anyone have this error ? Does anyone know how to fix this issue ?
>
> Thanks for your help.
>
> Fred.
>
>
> Setting up sun-java5-bin (1.5.0-19-1) ...
> update-alternatives: error: alternative rmiregistry can't be master: it is a
> slave of java
> dpkg: error processing sun-java5-bin (--configure):
>  subprocess installed post-installation script returned error exit status 2
> Setting up java-gcj-compat-headless (1.0.80-5.1) ...
> update-alternatives: error: alternative rmiregistry can't be master: it is a
> slave of java
> dpkg: error processing java-gcj-compat-headless (--configure):
>  subprocess installed post-installation script returned error exit status 2
> dpkg: dependency problems prevent configuration of java-gcj-compat:
>  java-gcj-compat depends on java-gcj-compat-headless (= 1.0.80-5.1); however:
>  Package java-gcj-compat-headless is not configured yet.
> dpkg: error processing java-gcj-compat (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  sun-java5-bin
>  java-gcj-compat-headless
>  java-gcj-compat
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> A package failed to install.  Trying to recover:
> Setting up sun-java5-bin (1.5.0-19-1) ...
> update-alternatives: error: alternative rmiregistry can't be master: it is a
> slave of java
> dpkg: error processing sun-java5-bin (--configure):
>  subprocess installed post-installation script returned error exit status 2
> dpkg: dependency problems prevent configuration of java-gcj-compat:
>  java-gcj-compat depends on java-gcj-compat-headless (= 1.0.80-5.1); however:
>  Package java-gcj-compat-headless is not configured yet.
> dpkg: error processing java-gcj-compat (--configure):
>  dependency problems - leaving unconfigured
> Errors were encountered while processing:
>  sun-java5-bin
>  java-gcj-compat
> Reading package lists... Done
>


Reply to: