writer2latex hangs on .uno installation

Bug #247779 reported by darvids0n
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenOffice
Invalid
Undecided
Unassigned
writer2latex (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: openoffice.org-writer2latex

This kind of sucks. I was doing a partial upgrade on Gutsy from the Hardy repo (essentially upgrading, but without the xorg packages), and it was all installing fine. I ran into a bit of a problem, however, when OOo was upgrading. writer2latex was trying to be installed, and it seemed like it was doing nothing. I waited a few hours, still nothing. So I had to ctrl+c it. And now the metapackage is listed as broken. Joy. writer2latex version was current as of yesterday, 11/07/2008.

ProblemType: Package
Architecture: amd64
Date: Fri Jul 11 20:22:17 2008
DistroRelease: Ubuntu 8.04
ErrorMessage:
 ErrorMessage: subprocess post-installation script killed by signal (Interrupt)
Package: openoffice.org-writer2latex 0.5-6
PackageArchitecture: all
SourcePackage: writer2latex
Title: package openoffice.org-writer2latex 0.5-6 failed to install/upgrade:
Uname: Linux 2.6.22-14-generic x86_64

Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Could you please add the log files from '/var/log/dist-upgrade/' to this bug report as seperate attachments? Thanks in advance.

Changed in writer2latex:
assignee: nobody → pascal-devuyst
status: New → Incomplete
Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :

Hey Pascal,

Thanks for addressing my issue. Here is the APT log file. It's a bit big, but here are the important bits anyway:

...
Installing openoffice.org-writer2latex as dep of openoffice.org
...
Selecting previously deselected package openoffice.org-writer2latex.
Unpacking openoffice.org-writer2latex (from .../openoffice.org-writer2latex_0.5-6_all.deb) ...
...
Setting up openoffice.org-writer2latex (0.5-6) ...
Adding extension /usr/lib/openoffice/share/extension/install/writer2latex.uno.pkg...

*a lot of time passes, I finally CTRL+C it*

ERROR:root:got an error from dpkg for pkg: 'openoffice.org-writer2latex': 'subprocess post-installation script killed by signal (Interrupt)
'
ERROR:root:got an error from dpkg for pkg: 'openoffice.org-writer2latex': 'subprocess post-installation script killed by signal (Interrupt)
'
dpkg: error processing openoffice.org-writer2latex (--configure):
 subprocess post-installation script killed by signal (Interrupt)
dpkg: dependency problems prevent configuration of openoffice.org:
 openoffice.org depends on openoffice.org-writer2latex; however:
  Package openoffice.org-writer2latex is not configured yet.
dpkg: error processing openoffice.org (--configure):
 dependency problems - leaving unconfigured
...
WARNING:root:no activity on terminal for 240 seconds (Configuring openoffice.org-writer2latex)
...
ERROR:root:got an error from dpkg for pkg: 'openoffice.org': 'dependency problems - leaving unconfigured
'
ERROR:root:got an error from dpkg for pkg: 'openoffice.org': 'dependency problems - leaving unconfigured
'
...

Though I'm sure you might be looking at more than just that :) Thanks!

Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :

Just in case it's different, here also is the relevant log data from /var/log/apt/term.log

Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :

Here's some lines from my /var/log/dpkg.log

2008-07-11 20:18:53 configure openoffice.org-writer2latex 0.5-6 0.5-6
2008-07-11 20:18:53 status unpacked openoffice.org-writer2latex 0.5-6
2008-07-11 20:18:53 status half-configured openoffice.org-writer2latex 0.5-6

Changed in writer2latex:
assignee: pascal-devuyst → nobody
status: Incomplete → Confirmed
Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :

Okay, so I have some new information about this bug.

The hanging occurs when, during the prerm or preinst scripts (either one), it executes unopkg list --shared or unopkg add --shared. I've tried running both commands without using --shared and they work fine, so for some reason, listing shared extensions on my system does not work, nor does adding shared extensions.

The relevant prerm/preinst lines:

remove_extension() {
  if /usr/lib/openoffice/program/unopkg list --shared $1 >/dev/null; then
    echo -n "Removing extension $1..."
    INSTDIR=`mktemp -d`
    /usr/lib/openoffice/program/unopkg remove --shared $1 \
      "-env:UserInstallation=file://$INSTDIR" \
      '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
      "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
    if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
    echo " done."
    flush_unopkg_cache
  fi
}

postinst:
add_extension() {
  echo -n "Adding extension $1..."
  INSTDIR=`mktemp -d`
  /usr/lib/openoffice/program/unopkg add --shared $1 \
    "-env:UserInstallation=file:///$INSTDIR" \
    '-env:UNO_JAVA_JFW_INSTALL_DATA=$ORIGIN/../share/config/javasettingsunopkginstall.xml' \
    "-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1"
  if [ -n $INSTDIR ]; then rm -rf $INSTDIR; fi
  echo " done."
}

"Adding extension $1..." is printed in postinst, but preinst/prerm doesn't get to "Removing extension $1...", because the if statement contains unopkg list --shared, which hangs. Let me know if I can do anything else to debug this, I've tried unopkg list --force --verbose --shared and that also hangs and prints no additional info. Thanks.

- David Nolan

Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :

Note that for the above comment, unopkg add --shared is executed during postinst and causes the hanging. I just forgot to make the connection there, but it hangs in postinst if an existing installation of writer2latex cannot be found, hence unopkg remove --shared is never called, and it can progress through the preinst script without error.

- David Nolan

Revision history for this message
darvids0n (darvids0n-deactivatedaccount) wrote :

Just thought I'd bump this bug, since it's still affecting me. When Intrepid's release candidate is uploaded I'll try a full upgrade and no doubt get openoffice.org-writer2latex hanging. unopkg add/list/remove --shared still hangs, and I have no idea why. The only possible reason could be because I've added a custom script to OOo in the statusbar, which for some reason isn't responding to unopkg the way it would like. Other than that, I'm totally stumped, and need someone who hacks on OpenOffice to tell me why unopkg --shared would hang before printing anything, even with --verbose flag.

Thanks.
- David Nolan

Chris Cheney (ccheney)
Changed in openoffice:
status: New → Invalid
Revision history for this message
lvaldes (leconval) wrote :

I am having same bug with jaunty 9.04 Used Add/Remove to install openoffice.org suite. When the package manager displayed
Adding extension /usr/lib/openoffice/share/extension/install/writer2latex.uno.pkg...
Gnome and my PC locked up entirely. I had to do a hard reboot. Now anytime we try to access openoffice.org in gnome,
my entire system locks up and I have to reboot. I cannot remove ANY packages, either using Add/Remove or Synaptic Package Manager. I get the following error when I try:
E: dpkg was interrupted, you must manually run 'sudo dpkg -a' to correct the problem. Hence synaptic will not come up without error. Once I close the error dialogue box, synaptic closes itself.

At the command line, when I run the sudo command, my entire system locks up, just as when I tried to initially install the openoffice.org suite.

FYI,
My wife had just installed openofficeorg for my daughter, but because it was missing some font choices, and because we use it for other apps, I tried to install the suite. So I am wondering if this is an issue with an openofficeorg package already installed?

Thank you for your time in advance, any help will be greatly appreciated.
dpkg.log:2009-05-19 19:25:24 configure openoffice.org-writer2latex 0.5-8ubuntu1 0.5-8ubuntu1
dpkg.log:2009-05-19 19:25:24 status unpacked openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 19:25:24 status half-configured openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 19:41:20 configure openoffice.org-writer2latex 0.5-8ubuntu1 0.5-8ubuntu1
dpkg.log:2009-05-19 19:41:20 status unpacked openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 19:41:20 status half-configured openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 19:49:31 configure openoffice.org-writer2latex 0.5-8ubuntu1 0.5-8ubuntu1
dpkg.log:2009-05-19 19:49:31 status unpacked openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 19:49:31 status half-configured openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 20:09:13 configure openoffice.org-writer2latex 0.5-8ubuntu1 0.5-8ubuntu1
dpkg.log:2009-05-19 20:09:13 status unpacked openoffice.org-writer2latex 0.5-8ubuntu1
dpkg.log:2009-05-19 20:09:13 status half-configured openoffice.org-writer2latex 0.5-8ubuntu1
fontconfig.log:/usr/share/fonts/truetype/openoffice: caching, new cache contents: 1 fonts, 0 dirs

lvaldes

Revision history for this message
lvaldes (leconval) wrote :

Sorry, forgot to add... I am using Jaunty Studio.

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.