openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #00447
Bug#490672: openjdk-6-jre-headless: conflict with sun-java6 at 'update-binfmts'
On Mon, Jul 14, 2008 at 6:26 PM, Teodor <mteodor@xxxxxxxxx> wrote:
> This error can be reproduce by first installing sun-java6 and later
> openjdk. This is the complete error message at postinstall:
>
> Setting up openjdk-6-jre-headless (6b10dfsg-1) ...
> update-binfmts: warning: current package is openjdk-6, but binary format
> already installed by sun-java6
I've removed all sun-java6 packages but there is a configuration
dependecy circle:
inspire:~# dpkg --configure openjdk-6-jre-headless
dpkg: dependency problems prevent configuration of openjdk-6-jre-headless:
openjdk-6-jre-headless depends on ca-certificates-java; however:
Package ca-certificates-java is not configured yet.
dpkg: error processing openjdk-6-jre-headless (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openjdk-6-jre-headless
inspire:~#
inspire:~#
inspire:~# dpkg --configure ca-certificates-java
dpkg: dependency problems prevent configuration of ca-certificates-java:
ca-certificates-java depends on openjdk-6-jre-headless; however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing ca-certificates-java (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
ca-certificates-java
inspire:~#
The packages openjdk-6-jre-headless and ca-certificates-java are
waiting for each other to complete the configuration. The postinstall
script returns 1 at ca-certificates-java:
inspire:~# sh -x /var/lib/dpkg/info/openjdk-6-jre-headless.postinst
+ set -e
+ priority=1061
+ basedir=/usr/lib/jvm/java-6-openjdk
+ basediralias=/usr/lib/jvm/java-6-openjdk
+ jdiralias=java-6-openjdk
+ mandir=/usr/lib/jvm/java-6-openjdk/jre/man
+ srcext=1.gz
+ dstext=1.gz
+ jre_tools='java keytool pack200 rmid rmiregistry unpack200 orbd
servertool tnameserv'
+ case "$1" in
+ exit 0
inspire:~# sh -x /var/lib/dpkg/info/ca-certificates-java.postinst
+ set -e
+ JAVA_HOME=/usr/lib/jvm/java-6-openjdk
+ KEYTOOL=/usr/lib/jvm/java-6-openjdk/bin/keytool
+ KEYSTORE=/etc/ssl/certs/java/cacerts
+ case "$1" in
+ echo 'postinst called with unknown argument `'\'''
postinst called with unknown argument `'
+ exit 1
I tried to configure them together and it worked for ca-certs:
inspire:~# dpkg --configure ca-certificates-java openjdk-6-jre-headless
Setting up ca-certificates-java (20080712) ...
Setting up openjdk-6-jre-headless (6b10dfsg-1) ...
dpkg: error processing openjdk-6-jre-headless (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
openjdk-6-jre-headless
However, for openjdk the problem is the same even if the postinstall
scripts returns 0:
inspire:~# dpkg --configure -a
Setting up openjdk-6-jre-headless (6b10dfsg-1) ...
dpkg: error processing openjdk-6-jre-headless (--configure):
subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-6-dbg:
openjdk-6-dbg depends on openjdk-6-jre-headless (= 6b10dfsg-1); however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing openjdk-6-dbg (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openjdk-6-jre-headless
openjdk-6-dbg
inspire:~#
inspire:~#
inspire:~# sh -x /var/lib/dpkg/info/openjdk-6-jre-headless.postinst
+ set -e
+ priority=1061
+ basedir=/usr/lib/jvm/java-6-openjdk
+ basediralias=/usr/lib/jvm/java-6-openjdk
+ jdiralias=java-6-openjdk
+ mandir=/usr/lib/jvm/java-6-openjdk/jre/man
+ srcext=1.gz
+ dstext=1.gz
+ jre_tools='java keytool pack200 rmid rmiregistry unpack200 orbd
servertool tnameserv'
+ case "$1" in
+ exit 0
inspire:~#
inspire:~#
inspire:~# dpkg --configure -a
Setting up openjdk-6-jre-headless (6b10dfsg-1) ...
dpkg: error processing openjdk-6-jre-headless (--configure):
subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of openjdk-6-dbg:
openjdk-6-dbg depends on openjdk-6-jre-headless (= 6b10dfsg-1); however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing openjdk-6-dbg (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openjdk-6-jre-headless
openjdk-6-dbg
Thanks
References