Uninstalling sun-java6-* does not remove the binfmts-entry for "jar"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sun-java6 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
(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/
-------------------
Richte openjdk-
Installiere neue Version der Konfigurationsdatei /etc/java-
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/
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/
update-binfmts: warning: no executable
/usr/lib/
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/
-------------------
$ update-binfmts --display
jar (enabled):
package = sun-java6
type = magic
offset = 0
magic = PK\x03\x04
mask =
interpreter = /usr/lib/
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..)
I can confirm this behavior in Januty for both sun and openjdk
I have a virtual machine with Hardy installed and it does not suffer from this bug.