package openjdk-6-jre-headless 6b07-0ubuntu1 failed to install/upgrade: subprocess pre-removal script returned error exit status 2

Bug #206721 reported by Matti Lindell
64
This bug affects 8 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Removal of openjdk-6-jre-headless failed due 'update-binfmts: warning: /var/lib/binfmts/openjdk-6 does not exist'.

$ sudo aptitude purge openjdk-6-jre-headless openjdk-6-jre-lib
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be automatically REMOVED:
  openjdk-6-jre-headless{p}
The following packages will be REMOVED:
  openjdk-6-jre-headless{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 71,1MB will be freed.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 116840 files and directories currently installed.)
Removing openjdk-6-jre-headless ...
update-binfmts: warning: /var/lib/binfmts/openjdk-6 does not exist; nothing to do!
update-binfmts: exiting due to previous errors
dpkg: error processing openjdk-6-jre-headless (--purge):
 subprocess pre-removal script returned error exit status 2
dpkg: openjdk-6-jre-lib: dependency problems, but removing anyway as you request:
 openjdk-6-jre-headless depends on openjdk-6-jre-lib (>= 6b07-0ubuntu1).
Removing openjdk-6-jre-lib ...
Errors were encountered while processing:
 openjdk-6-jre-headless
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Building tag database... Done

ProblemType: Package
Architecture: i386
Date: Tue Mar 25 21:05:12 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess pre-removal script returned error exit status 2
NonfreeKernelModules: nvidia
Package: openjdk-6-jre-headless 6b07-0ubuntu1
PackageArchitecture: i386
SourcePackage: openjdk-6
Title: package openjdk-6-jre-headless 6b07-0ubuntu1 failed to install/upgrade: subprocess pre-removal script returned error exit status 2
Uname: Linux 2.6.24-12-generic i686

Related branches

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

I'm not yet able to reproduce this, independent of the install/removal order of binfmt-support and openjdk-6-jre-headless. It is clear that the openjdk-6-jre-headless fails if /var/lib/binfmts/openjdk-6 doesn't exist.
Who removes this file? Should the openjdk-6-jre-headless postinst ignore a missing file?

Changed in openjdk-6:
status: New → Incomplete
Revision history for this message
Matti Lindell (mlind) wrote :

I have no clue how I was able to do this as I cannot reproduce condition either. I remember checking that /var/lib/binfmts/openjdk-6 was indeed removed, but not by me. I installed icedtea-gcjwebplugin for testing and afterwards removed installed dependencies one-by-one when this happened.

Maybe ignoring the missing binfmts file would be okay as otherwise this results uninstallable package.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b08-0ubuntu1

---------------
openjdk-6 (6b08-0ubuntu1) hardy; urgency=low

  * New code drop (b08).
  * Update IcedTea build infrastructure.
  * Move binfmt-support references from -jre to -jre-headless package.
  * Don't fail on purge, if /var/lib/binfmts/openjdk-6 is missing. LP: #206721.
  * Only use the basename for icons in desktop files. LP: #207413.
  * Install javaws(1). LP: #191297.
  * Install a wrapper script for javaws, which calls `javaws -viewer' if no
    arguments are given (or else starting javaws from the desktop menu
    would not do anything).
  * debian/JB-web-start.applications.in: Remove the -viewer option from command.

 -- Matthias Klose <email address hidden> Fri, 28 Mar 2008 16:10:32 +0000

Changed in openjdk-6:
status: Incomplete → Fix Released
Revision history for this message
Martin G Miller (mgmiller) wrote :

I attempted to install the ubuntu-restricted-extras package and this is one of 3 packages that failed to install. I am running Hardy release candidate 04-19-2008.

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.