Public bug reported:

(using Ubuntu 8.10 32bit and the packages sun-java6-bin and sun-
java6-jre)

Uninstalling sun-java6 (6-10-0ubuntu2) and then installing openjdk-6
(6b12-0ubuntu6.1) leads to some "warnings" regarding binfmts:

(from /var/log/apt/term.log -- sorry, its partly german, but that should not 
matter)
-------------------
Richte openjdk-6-jre-headless ein (6b12-0ubuntu6.1) ...
Installiere neue Version der Konfigurationsdatei 
/etc/java-6-openjdk/security/java.security ...
update-binfmts: warning: current package is openjdk-6, but binary format
already installed by sun-java6
-------------------

The reason for this error message: even after a complete uninstall of
sun-java6 I get:

-------------------
$ update-binfmts --display

jar (enabled):
     package = sun-java6
        type = magic
      offset = 0
       magic = PK\x03\x04
        mask = 
 interpreter = /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/jexec
    detector = 
-------------------

To get rid of the error message from update-binfmts I had to manually
remove that entry:

-------------------
$ update-binfmts --package sun-java6 --remove jar 
/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/jexec

update-binfmts: warning: no executable
/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/jexec found, but continuing anyway as
you request 
-------------------

After doing the above and installing openjdk-6 the binftms-entry for
"jar" is correct:

-------------------
$ update-binfmts --display

jar (enabled):
     package = openjdk-6
        type = magic
      offset = 0
       magic = PK\x03\x04
        mask = 
 interpreter = /usr/bin/jexec
    detector = 
-------------------

But _without_ manual intervention (i.e. NOT running "update-binfmts
--package sun-java6 --remove jar
/usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/jexec") uninstalling sun-java6
and installing openjdk-6 leads to a wrong binfmts-entry:

-------------------
$ update-binfmts --display

jar (enabled):
     package = sun-java6
        type = magic
      offset = 0
       magic = PK\x03\x04
        mask = 
 interpreter = /usr/lib/jvm/java-6-sun-1.6.0.10/jre/lib/jexec
    detector = 
-------------------

I think it is expected that uninstalling sun-java6 does remove its 
binfmts-entry for "jar" automatically, so please include this behavior in the 
package.
(oh, and uninstalling openjdk-6 doesn't remove its binfmts-entry either so that 
must have been overlooked as well..)

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

-- 
Uninstalling sun-java6-* does not remove the binfmts-entry for "jar"
https://bugs.launchpad.net/bugs/328174
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to