openoffice.org-gcj dpkg error - snippet out of date

Bug #299229 reported by Liz Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
java-gcj-compat (Ubuntu)
Invalid
Undecided
Unassigned
openoffice.org (Ubuntu)
Fix Released
Undecided
Chris Cheney

Bug Description

Binary package hint: openoffice.org-gcj

1) Description: Ubuntu 8.04.1
Release: 8.04

2) apt-cache policy openoffice.org-gcj
openoffice.org-gcj:
  Installed: 1:2.4.1-1ubuntu2
  Candidate: 1:2.4.1-1ubuntu2
  Version table:
 *** 1:2.4.1-1ubuntu2 0
        500 http://archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     1:2.4.0-3ubuntu6 0
        500 http://archive.ubuntu.com hardy/main Packages

3) Expected the updates to openoffice.org to apply without errors.

4) Instead this error occurred on the openoffice.org-gcj package:
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/openoffice.org-gcj_1%3a2.4.1-1ubuntu2_i386.deb (--unpack):
 subprocess new post-removal script returned error exit status 2
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/openoffice.org-gcj_1%3a2.4.1-1ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The package database is now in an inconsistent state and nothing will install/reinstall/remove.

# dpkg --status openoffice.org-gcj
Package: openoffice.org-gcj
Status: install reinstreq half-installed

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 0B/2210kB of archives.
After this operation, 0B of additional disk space will be used.
(Reading database ... 189772 files and directories currently installed.)
Preparing to replace openoffice.org-gcj 1:2.4.1-1ubuntu2 (using .../openoffice.org-gcj_1%3a2.4.1-1ubuntu2_i386.deb) ...
Unpacking replacement openoffice.org-gcj ...
dpkg: warning - old post-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: error processing /var/cache/apt/archives/openoffice.org-gcj_1%3a2.4.1-1ubuntu2_i386.deb (--unpack):
 subprocess new post-removal script returned error exit status 2
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/openoffice.org-gcj_1%3a2.4.1-1ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

# dpkg --configure -a
Setting up bsh-gcj (2.0b4-7ubuntu1) ...
dpkg: error processing bsh-gcj (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libhsqldb-java-gcj (1.8.0.9-2) ...
dpkg: error processing libhsqldb-java-gcj (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libjaxp1.3-java-gcj (1.3.04-2) ...
dpkg: error processing libjaxp1.3-java-gcj (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of libxerces2-java-gcj:
 libxerces2-java-gcj depends on libjaxp1.3-java-gcj; however:
  Package libjaxp1.3-java-gcj is not configured yet.
dpkg: error processing libxerces2-java-gcj (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libxalan2-java-gcj:
 libxalan2-java-gcj depends on libjaxp1.3-java-gcj; however:
  Package libjaxp1.3-java-gcj is not configured yet.
 libxalan2-java-gcj depends on libxerces2-java-gcj; however:
  Package libxerces2-java-gcj is not configured yet.
dpkg: error processing libxalan2-java-gcj (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bsh-gcj
 libhsqldb-java-gcj
 libjaxp1.3-java-gcj
 libxerces2-java-gcj
 libxalan2-java-gcj

Revision history for this message
Liz Young (liz) wrote :

Workaround for this packaging bug:
Rename /usr/bin/rebuild-gcj-db; reinstall openoffice.org-gcj; purge openoffice.org-gcj.
Clue found in bug #64395
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/64395/comments/11

Revision history for this message
Chris Cheney (ccheney) wrote :

This looks like bug 64395 but that was closed as fixed, the problem with the generated snippet that Tollef mentioned still appears to be occurring even in Jaunty.

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

it is fixed:

if [ -x "/usr/bin/rebuild-gcj-db" ]; then
        /usr/bin/rebuild-gcj-db || true
fi

how does the openoffice.org-gcj postrm look like?

Changed in java-gcj-compat:
status: New → Incomplete
Revision history for this message
Chris Cheney (ccheney) wrote :

It has this in it:

if [ -x /usr/bin/rebuild-gcj-db ]; then
     /usr/bin/rebuild-gcj-db
fi

Revision history for this message
Chris Cheney (ccheney) wrote :

Doh, this is hardcoded into the postrm.in :(

No cookie for me.

Chris Cheney (ccheney)
Changed in java-gcj-compat:
status: Incomplete → Invalid
Changed in openoffice.org:
assignee: nobody → ccheney
milestone: none → jaunty-alpha-5
status: New → Fix Committed
Chris Cheney (ccheney)
Changed in openoffice.org:
milestone: jaunty-alpha-5 → jaunty-alpha-6
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openoffice.org - 1:3.0.1-4ubuntu1

---------------
openoffice.org (1:3.0.1-4ubuntu1) jaunty; urgency=low

  * Resynchronise with Debian (r1417). Remaining changes:
    - Add Launchpad integration support.
    - Add Launchpad translations support.
    - Add package openoffice.org-style-human.
    - Add some Ubuntu-specific bitmaps. Adjust broffice diversions for these.
    - Add support for compressing debs with lzma.
    - Add support for shared /usr/share/doc directories.
    - Add support to build l10n as a separate source.
    - Add support to build on lpia.
    - Add support to turn off building on sparc.
    - Add Xb-Npp-xxx tags according to "firefox distro add-on suport" spec.
    - Set startcenter.desktop to not display in the menu.
    - Use imagemagick instead of graphicsmagick.
    - openoffice.org-help switch to internal copy of lucene.
    - Add support for DEB_BUILD_OPTIONS noopt. LP: #252226
    - Change name of desktop files to openoffice.org-(app).desktop. LP: #331768
    - Update rebuild-gcj-db snippet. Closes LP: #299229
    - Update splash screen.
  * Resynchronise with ooo-build-3-0-1 (r15493).
    - Fedora fix for OpenOffice.org crash when fontconfig sees new fonts.
    - javaldx error message now tells user to install openoffice.org-java-common
      and remove the javasettings_Linux_*.xml file. LP: #249352

 -- Chris Cheney <email address hidden> Thu, 05 Mar 2009 22:00:00 -0600

Changed in openoffice.org:
status: Fix Committed → Fix Released
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.