[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#561498: openoffice.org-emailmerge upgrade error



Hi,

This is definitely a real bug.

The openoffice.org-emailmerge preinst tries to do:
  basis=`readlink /usr/lib/openoffice/basis-link`
but this link does not exist, so the preinst exits with an error.

The problem is that
- this link is not in old versions of openoffice.org-common
- the PreDepends for openoffice.org-emailmerge is unversioned

See transcript below.

For anyone else having this problem, a workaround is to run:
  ln -s xxx /usr/lib/openoffice/basis-link
and then the install should work.

-jim

hypnosis:/tmp# apt-get install openoffice.org-emailmerge
Reading package lists... Done
Building dependency tree... 
Reading state information... Done
The following packages will be upgraded:
   openoffice.org-emailmerge (2.4.1+dfsg-1+lenny6 => 3.1.1-16)
1 upgraded, 0 newly installed, 0 to remove and 1510 not upgraded.
Need to get 0B/214kB of archives.
After this operation, 57.3kB disk space will be freed.
Preconfiguring packages ...
(Reading database ... 270959 files and directories currently installed.)
Preparing to replace openoffice.org-emailmerge 1:2.4.1+dfsg-1+lenny6 (using .../openoffice.org-emailmerge_1%3a3.1.1-16_all.deb) ...
dpkg: error processing /var/cache/apt/archives/openoffice.org-emailmerge_1%3a3.1.1-16_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/openoffice.org-emailmerge_1%3a3.1.1-16_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hypnosis:/tmp# dpkg-deb -e /var/cache/apt/archives/openoffice.org-emailmerge_1%3a3.1.1-16_all.deb /tmp/foo
hypnosis:/tmp# cd /tmp/foo
hypnosis:/tmp/foo# DEBIAN_HAS_FRONTEND=1 sh -x ./preinst upgrade
+ set -e
+ THIS_PACKAGE=openoffice.org-emailmerge
+ THIS_SCRIPT=preinst
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ case "$1" in
+ remove_extension org.openoffice.legacy.mailmerge.py
+ handle_soffice_listeners stop
+ services=docvert-converter
+ for s in '$services'
+ '[' -x /etc/init.d/docvert-converter ']'
+ sleep 1
+ check_for_running_ooo
+ '[' -e /usr/lib/openoffice/program/bootstraprc ']'
++ grep UserInstallation /usr/lib/openoffice/program/bootstraprc
++ sed -e s,SYSUSERCONFIG,HOME,
++ cut -d= -f2
+ LOCKFILE='$HOME/.openoffice.org2/.lock'
++ pgrep soffice.bin
++ head -n 1
+ PID=
+ '[' -n '' ']'
+ '[' -e '$HOME/.openoffice.org2/.lock' ']'
+ /usr/lib/openoffice/program/unopkg list --shared org.openoffice.legacy.mailmerge.py
++ mktemp -d
+ INSTDIR=/tmp/tmp.W3KFRrPDyE
+ export PYTHONPATH=/usr/lib/openoffice/basis3.1/program
+ PYTHONPATH=/usr/lib/openoffice/basis3.1/program
++ readlink /usr/lib/openoffice/basis-link
+ basis=
hypnosis:/tmp/foo# ls -al /usr/lib/openoffice
total 184
drwxr-xr-x   6 root root   4096 2009-02-24 00:13 .
drwxr-xr-x 267 root root 135168 2010-03-05 17:14 ..
drwxr-xr-x   3 root root   4096 2010-02-18 20:08 help
drwxr-xr-x  16 root root   4096 2008-01-19 03:19 presets
drwxr-xr-x   6 root root  32768 2010-02-18 20:08 program
drwxr-xr-x  22 root root   4096 2008-02-06 02:43 share
hypnosis:/tmp/foo# apt-cache policy openoffice.org-common | grep Installed
  Installed: 1:2.4.1+dfsg-1+lenny6
hypnosis:/tmp/foo# apt-cache show openoffice.org-emailmerge | egrep 'Version|Pre-Depends'
Version: 1:3.2.0-3
Pre-Depends: python-uno, openoffice.org-common, debconf (>= 0.5) | debconf-2.0, procps
Version: 1:3.1.1-16
Pre-Depends: python-uno, openoffice.org-common, debconf (>= 0.5) | debconf-2.0, procps
Version: 1:3.1.1-15+squeeze1
Pre-Depends: python-uno, openoffice.org-common, debconf (>= 0.5) | debconf-2.0, procps
Version: 1:2.4.1+dfsg-1+lenny6
Version: 1:2.4.1+dfsg-1+lenny3



Reply to: