failed to upgrade from Oneiric to Precise: ERROR: Cannot determine language! - exit status 134

Bug #916291 reported by Sathish Kumar
342
This bug affects 41 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
Critical
Björn Michaelsen
Precise
Fix Released
Critical
Björn Michaelsen

Bug Description

while upgrading 11.10 to 12.04

TEST CASE:
1. Install Ubuntu Oneiric Desktop, apply any updates available and reboot
2. Install the following packages:
libreoffice
libreoffice-base
libreoffice-base-core
libreoffice-calc
libreoffice-common
libreoffice-core
libreoffice-draw
libreoffice-emailmerge
libreoffice-filter-mobiledev
libreoffice-gnome
libreoffice-gtk
libreoffice-help-en-us
libreoffice-impress
libreoffice-java-common
libreoffice-kde
libreoffice-math
libreoffice-report-builder-bin
libreoffice-style-human
libreoffice-style-oxygen
libreoffice-writer
openclipart-libreoffice

3. Upgrade to Precise:
  $ do-release-upgrade -d

ACTUAL RESULT:
Release upgrade fails with error:
-----
Processing triggers for libreoffice-common ...

ERROR: Cannot determine language!
Exception details:
(com.sun.star.uno.RuntimeException) { { Message = "Cannot determine language!", Context = (com.sun.star.uno.XInterface) @0 } }

unopkg failed.
terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException'
Aborted (core dumped)
dpkg: error processing libreoffice-common (--unpack):
 subprocess installed post-installation script returned error exit status 134
Errors were encountered while processing:
 libreoffice-common
-----

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: libreoffice-common
ProcVersionSignature: Ubuntu 3.2.0-8.15-generic 3.2.0
Uname: Linux 3.2.0-8-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 1.90-0ubuntu1
Architecture: i386
Date: Sat Jan 14 03:49:52 2012
ErrorMessage: ErrorMessage: subprocess installed post-installation script returned error exit status 134
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PackageArchitecture: all
SourcePackage: libreoffice
Title: package libreoffice-common 1:3.5.0~beta2-2ubuntu2 failed to install/upgrade: ErrorMessage: subprocess installed post-installation script returned error exit status 134
UpgradeStatus: Upgraded to precise on 2012-01-13 (0 days ago)

Revision history for this message
Sathish Kumar (sathish-394) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
summary: - package libreoffice-common 1:3.5.0~beta2-2ubuntu2 failed to
- install/upgrade: ErrorMessage: subprocess installed post-installation
- script returned error exit status 134
+ failed to upgrade from Oneiric to Precise: ERROR: Cannot determine
+ language! - exit status 134
Changed in libreoffice (Ubuntu Precise):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
importance: Undecided → High
Martin Pitt (pitti)
Changed in libreoffice (Ubuntu Precise):
assignee: Canonical Desktop Team (canonical-desktop-team) → Björn Michaelsen (bjoern-michaelsen)
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
tags: added: rls-mgr-p-tracking
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Marking as a dupe of 917153 as without further info, it seems to be the same root cause.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in libreoffice (Ubuntu Precise):
milestone: none → ubuntu-12.04-beta-2
tags: added: dist-upgrade oneiric2precise qa-daily-testing
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libreoffice - 1:3.5.0-2ubuntu1

---------------
libreoffice (1:3.5.0-2ubuntu1) precise; urgency=low

  * merge from debian-experimental-3.5 at
    a9613a0cfaf22d4fa91652cbd135787cbf61e790
  * backport a6d65732f14e49be8ec61aac53a2a8b909d810f7 by Rene
    (LP: #882588)
  * actually give the quickstarter suppressor instance a scope
  * remove failing parts of -common postinst script, they in -core
    anyway (LP: #916291)

libreoffice (1:3.5.0-2) experimental; urgency=low

  [ Rene Engelhard ]
  * debian/patches/armhf-bridges*.diff: add armhf bridges fixes from
    Jani Monoses (LP: #900636)
  * debian/patches/revert-468fe685e3c58c84bce6d9a48b931dcc21682679.diff:
    remove, obsolete
  * debian/patches/icu-arm.diff: fix internal icu build on arm.
  * debian/patches/move-binfilter-mimetypes-in-extra-desktop-file.diff:
    as name says; imported from Fedora
  * debian/patches/passwordTest-test-old-password-algorith-too.diff: as name
    says (see fdo#45171 and #659733/#659720)
  * debian/patches/getMIMEDescription-mismatch.diff: update with proper
    ./configure check, thanks Lubok Lunak...; also update internal header

  * debian/rules:
    - remove obsolete (and buggy) conditional icu-on-arm-fails breaking
      the build
    - apply patch from Rico Tzschichholz to update some configure flags
      to new names in 3.5.x; remove some obsolete ones
    - don't try to mv libvclplug_gtk3.so if not built, thanks Rico
      Tzschichholz again
    - disable base (libebook1.2-dev missing and nsplugin (xulrunner-dev
      missing) on s390x
    - disable *all* extensions on s390*, extension mechanism broken
  * debian/source/components: remove, unused and causes lintian error

  [ Bjoern Michaelsen ]
  * debian/libreoffice-common.postrm.in: remove mismerged superfluous fi
    (closes: #660580)
 -- Bjoern Michaelsen <email address hidden> Mon, 05 Mar 2012 08:42:13 +0100

Changed in libreoffice (Ubuntu Precise):
status: Confirmed → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in libreoffice (Ubuntu Precise):
status: Fix Released → Triaged
Revision history for this message
Matthew (ruinairas1992) wrote :

I don't know if this is related or not, but I was testing 10.10 and attempted to upgrade to 11.04 and it failed. Not sure if this is a bug, or if the servers aren't supporting upgrades from 10.10 to 11.04 anymore.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

It also affects installations with ubiquity (bug 954626) setting importance to critical

Changed in libreoffice (Ubuntu Precise):
importance: High → Critical
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

@jibel: Im on my wy trying to reproduce this issue here. If that fails, would it be possible to let jenkins do the upgrade with "debug=40000" added at the end of /etc/dpkg/dpkg.cfg for trigger debug output?

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

So, with a fresh oneiric install in a Virtualbox and then:
- update && upgrade
- do-release-upgrade -d
everything works fine. I need an exact scenario to reproduce or the jenkins log with "debug=40000" or even better "debug=70000".

tags: added: rls-p-tracking
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Archive of /var/log/dist-upgrade and /var/log/dpkg.log with dpkg debug set to 70000

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in libreoffice (Ubuntu Precise):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.3 KiB)

This bug was fixed in the package libreoffice - 1:3.5.1-1ubuntu1

---------------
libreoffice (1:3.5.1-1ubuntu1) precise; urgency=low

  * new upstream release
    - fixes crash in QCoreApplication::notifyInternal() (LP: #925049)
    - fixes Writer crashes on Tools->Bibliography without libreoffice-base
      (LP: #527938)
    - fixes crash in SwTxtFrm::HideAndShowObjects() (LP: #872716)
    - fixes recent documents list is always empty (LP: #950071)
  * merge from debian-experimental-3.5
  * fail gracefully in -common postinst (LP: #916291)
  * kde4libs update breaks LibreOffice (LP: #958781)
  * exchange firefox-dev and xulrunner-dev order in rules rules

libreoffice (1:3.5.1-1) experimental; urgency=low

  [ Rene Engelhard ]
  * new upstream release
    - fixes up excessive numbers of "JRE is defective" messages
      (closes: #602127)
    - fixes populating "Recent Documents" after a profile upgrade
      (closes: #660185)
    - fixes nsplugin to create a correct
      com.sun.star.ucb.SimpleFileAccess instance (closes: #661747)

  * debian/patches/armhf-bridges-doubles.diff: some more armhf fixes
    (+ testcase) from master
  * debian/patches/debian-hardened-buildflags.diff: use hardened
    buildflags from dpkg-buildflags (closes: #656643)
  * debian/patches/debian-opt.diff: fix to actually make test and grep
    work
  * debian/patches/bibliography-no-crash-if-no-base.diff: backport fix
    from libreoffice-3-5 to not crash Tools -> Bibliography if -base isn't
    installed (closes: #602953, #598809)
  * debian/patches/pyuno_fix_python2.diff: backport from libreoffice-3-5.
    As name says, fix breakages in python2 after python3 fixes

  * debian/rules: rename ext-sources to src, as done upstream
  * debian/control.fonts.in: make ttf-opensymbol Priority: extra, thanks
    lintian
  * debian/rules:
    - --with-mingw -> --with-mingw-cross-compiler; remove obsolete
      "export MINGWSTRIP" hack
    - don't set ENABLE_SDBC_POSTGRESQL=n when building no extensions, as
      this isn't an extension anymore
    - remove obsolete "export MINGWSTRIP" hack
    - fix (>= 1.1.9) for libcommons-logging-java to actually work, thanks
      Rico Tzschichholz
    - chmod 755 setsdkenv_unix
    - also disable graphite on alpha (closes: #661294)
    - actually filter-out also armhf and powerpc powerpcspe ppc64 s390x for
      OOO_REPORTDESIGN_ARCHS
    - remove -O0 setting via ARCH_FLAGS, already handled by debian-opt.diff
  * debian/control.in: build-conflict against
    libc0.1-dev (= 2.13-26) [kfreebsd-i386 kfreebsd-amd64]
  * debian/control.mozilla.in: stricten dependencies to 3.5, thanks
    Mario Holbe for the observation
  * debian/rules, debian/control.mozilla.in: update nsplugin conditional
    to actually disable nsplugin build (and get rid of xulrunner-dev build-dep)
    if disabled
  * debian/*.triggers, debian/*.prerm.in:
   - add activate triggers for /usr/lib/libreoffice/share/extensions to
     the respetive extensions. Run sync_extensions after rm -rf'ing the
     dir already in preinst (upgrade) (closes: #658646)

  [ Bjoern Michaelsen ]
  * debian/patches/fix-quickstart-shutdown.diff: fix logout with
    quickstarter (closes: #63292...

Read more...

Changed in libreoffice (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in libreoffice (Ubuntu Precise):
status: Fix Released → Triaged
description: updated
description: updated
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

I can now reproduce this issue. It is actually the old 3.4/oneiric postinst-hook causing the trouble here, not the one from precise.

Changed in libreoffice (Ubuntu Precise):
status: Triaged → In Progress
Revision history for this message
Kate Stewart (kate.stewart) wrote :

So we'll be needing an oneiric update before this can be resolved?

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

No, just a plethora of "Conflicts: libreofficeVER-common (<< 1:3.5.0)" to make sure the old libreoffice-common and its triggers are removed before we touch the stuff that sets them off.

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

First proposed fix:
http://anonscm.debian.org/gitweb/?p=pkg-openoffice/libreoffice.git;a=commitdiff;h=6cf6cd027833c2053c19367625de1d83be56734b

This has been build into ppa:bjoern-michaelsen/libreoffice-precisetest-20120327 https://launchpad.net/~bjoern-michaelsen/+archive/libreoffice-precisetest-20120327 (alas, for i386 only -- amd64 failed again because of missing disc space).

@jibel: You can test (on i386) the fix by inserting the following step in the reproduction scenario given in the description above:
2a) sudo add-apt-repository ppa:bjoern-michaelsen/libreoffice-precisetest-20120327
2b) sudo sh -c 'echo "[Sources]" > /etc/update-manager/release-upgrades.d/allowthird.cfg'
3c) sudo sh -c 'echo "AllowThirdParty=True" >> /etc/update-manager/release-upgrades.d/allowthird.cfg'

Changed in libreoffice (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

setting milestone to final release as beta is already in freeze and libreoffice buildtimes would be too long.

Changed in libreoffice (Ubuntu Precise):
milestone: ubuntu-12.04-beta-2 → ubuntu-12.04
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

I verified the upgrade from Oneiric i386 to Precise with the directions in comment #20 and the packages in the descriptions, and the release upgrade was successful.

There is a minor glitch during upgrade, the LO icons in the launcher change to questions marks. But after upgrade they are correct.

Thanks!

Revision history for this message
Steve Langasek (vorlon) wrote :

Would it perhaps be advisable to upload this to precise-proposed, to let it build in parallel with the beta release, so it's available as soon as possible without being disruptive?

Revision history for this message
k_lago (lake-ken) wrote : Re: [Bug 916291] Re: failed to upgrade from Oneiric to Precise: ERROR: Cannot determine language! - exit status 134

I was able to do the upgrade by first removing libreoffice, doing the
install then upgrading python to python3 and then reinstalling libreoffice
On Mar 28, 2012 11:15 PM, "Steve Langasek" <email address hidden>
wrote:

> Would it perhaps be advisable to upload this to precise-proposed, to let
> it build in parallel with the beta release, so it's available as soon as
> possible without being disruptive?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (963974).
> https://bugs.launchpad.net/bugs/916291
>
> Title:
> failed to upgrade from Oneiric to Precise: ERROR: Cannot determine
> language! - exit status 134
>
> Status in “libreoffice” package in Ubuntu:
> Fix Committed
> Status in “libreoffice” source package in Precise:
> Fix Committed
>
> Bug description:
> while upgrading 11.10 to 12.04
>
> TEST CASE:
> 1. Install Ubuntu Oneiric Desktop, apply any updates available and reboot
> 2. Install the following packages:
> libreoffice
> libreoffice-base
> libreoffice-base-core
> libreoffice-calc
> libreoffice-common
> libreoffice-core
> libreoffice-draw
> libreoffice-emailmerge
> libreoffice-filter-mobiledev
> libreoffice-gnome
> libreoffice-gtk
> libreoffice-help-en-us
> libreoffice-impress
> libreoffice-java-common
> libreoffice-kde
> libreoffice-math
> libreoffice-report-builder-bin
> libreoffice-style-human
> libreoffice-style-oxygen
> libreoffice-writer
> openclipart-libreoffice
>
> 3. Upgrade to Precise:
> $ do-release-upgrade -d
>
> ACTUAL RESULT:
> Release upgrade fails with error:
> -----
> Processing triggers for libreoffice-common ...
>
> ERROR: Cannot determine language!
> Exception details:
> (com.sun.star.uno.RuntimeException) { { Message = "Cannot determine
> language!", Context = (com.sun.star.uno.XInterface) @0 } }
>
> unopkg failed.
> terminate called after throwing an instance of
> 'com::sun::star::uno::RuntimeException'
> Aborted (core dumped)
> dpkg: error processing libreoffice-common (--unpack):
> subprocess installed post-installation script returned error exit status
> 134
> Errors were encountered while processing:
> libreoffice-common
> -----
>
> ProblemType: Package
> DistroRelease: Ubuntu 12.04
> Package: libreoffice-common
> ProcVersionSignature: Ubuntu 3.2.0-8.15-generic 3.2.0
> Uname: Linux 3.2.0-8-generic i686
> NonfreeKernelModules: nvidia
> ApportVersion: 1.90-0ubuntu1
> Architecture: i386
> Date: Sat Jan 14 03:49:52 2012
> ErrorMessage: ErrorMessage: subprocess installed post-installation script
> returned error exit status 134
> InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
> PackageArchitecture: all
> SourcePackage: libreoffice
> Title: package libreoffice-common 1:3.5.0~beta2-2ubuntu2 failed to
> install/upgrade: ErrorMessage: subprocess installed post-installation
> script returned error exit status 134
> UpgradeStatus: Upgraded to precise on 2012-01-13 (0 days ago)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/916291/+subscriptions
>

Revision history for this message
N. Bruce Nelson (n-bruce-nelson) wrote :
Download full text (6.1 KiB)

Thanks! This worked.

Bruce

On Thu, Mar 29, 2012 at 4:03 AM, k_lago <email address hidden> wrote:

> I was able to do the upgrade by first removing libreoffice, doing the
> install then upgrading python to python3 and then reinstalling libreoffice
> On Mar 28, 2012 11:15 PM, "Steve Langasek" <email address hidden>
> wrote:
>
> > Would it perhaps be advisable to upload this to precise-proposed, to let
> > it build in parallel with the beta release, so it's available as soon as
> > possible without being disruptive?
> >
> > --
> > You received this bug notification because you are subscribed to a
> > duplicate bug report (963974).
> > https://bugs.launchpad.net/bugs/916291
> >
> > Title:
> > failed to upgrade from Oneiric to Precise: ERROR: Cannot determine
> > language! - exit status 134
> >
> > Status in “libreoffice” package in Ubuntu:
> > Fix Committed
> > Status in “libreoffice” source package in Precise:
> > Fix Committed
> >
> > Bug description:
> > while upgrading 11.10 to 12.04
> >
> > TEST CASE:
> > 1. Install Ubuntu Oneiric Desktop, apply any updates available and
> reboot
> > 2. Install the following packages:
> > libreoffice
> > libreoffice-base
> > libreoffice-base-core
> > libreoffice-calc
> > libreoffice-common
> > libreoffice-core
> > libreoffice-draw
> > libreoffice-emailmerge
> > libreoffice-filter-mobiledev
> > libreoffice-gnome
> > libreoffice-gtk
> > libreoffice-help-en-us
> > libreoffice-impress
> > libreoffice-java-common
> > libreoffice-kde
> > libreoffice-math
> > libreoffice-report-builder-bin
> > libreoffice-style-human
> > libreoffice-style-oxygen
> > libreoffice-writer
> > openclipart-libreoffice
> >
> > 3. Upgrade to Precise:
> > $ do-release-upgrade -d
> >
> > ACTUAL RESULT:
> > Release upgrade fails with error:
> > -----
> > Processing triggers for libreoffice-common ...
> >
> > ERROR: Cannot determine language!
> > Exception details:
> > (com.sun.star.uno.RuntimeException) { { Message = "Cannot determine
> > language!", Context = (com.sun.star.uno.XInterface) @0 } }
> >
> > unopkg failed.
> > terminate called after throwing an instance of
> > 'com::sun::star::uno::RuntimeException'
> > Aborted (core dumped)
> > dpkg: error processing libreoffice-common (--unpack):
> > subprocess installed post-installation script returned error exit
> status
> > 134
> > Errors were encountered while processing:
> > libreoffice-common
> > -----
> >
> > ProblemType: Package
> > DistroRelease: Ubuntu 12.04
> > Package: libreoffice-common
> > ProcVersionSignature: Ubuntu 3.2.0-8.15-generic 3.2.0
> > Uname: Linux 3.2.0-8-generic i686
> > NonfreeKernelModules: nvidia
> > ApportVersion: 1.90-0ubuntu1
> > Architecture: i386
> > Date: Sat Jan 14 03:49:52 2012
> > ErrorMessage: ErrorMessage: subprocess installed post-installation
> script
> > returned error exit status 134
> > InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386
> (20111012)
> > PackageArchitecture: all
> > SourcePackage: libreoffice
> > Title: package libreoffice-common 1:3.5.0~beta2-2ubuntu2 failed to
> > install/upgrade: ErrorMessage: subprocess installed post-installation
> > s...

Read more...

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

This bug was fixed in the package libreoffice - 1:3.5.1-1ubuntu4

---------------
libreoffice (1:3.5.1-1ubuntu4) precise; urgency=low

  * version bump for bug 930217

libreoffice (1:3.5.1-1ubuntu3) precise-proposed; urgency=low

  * fix typo in control.in

libreoffice (1:3.5.1-1ubuntu2) precise-proposed; urgency=low

  * call fsync on write (LP: #817326)
  * add a few conflicts for defusing the old -common dpkg-trigger
    around interfering (LP: #916291)
  * its com.sun.star.sdb.RowSet, not sdbc neither sbd
  * never let users save in /tmp by default (LP: #905355)
 -- Bjoern Michaelsen <email address hidden> Fri, 30 Mar 2012 14:34:41 +0200

Changed in libreoffice (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.