package python-uno 1:3.5.0-2ubuntu1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1

Bug #960867 reported by Tim Frost
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ lsb_release -rd
Description: Ubuntu precise (development branch)
Release: 12.04

Extract from output of 'sudo apt-get dist-upgrade':
Preparing to replace python-uno 1:3.5.0-2ubuntu1 (using .../python-uno_1%3a3.5.1-1ubuntu1_amd64.deb) ...

ERROR: unopkg cannot be started. The lock file indicates it as already running. If this does not apply, delete the lock file at:
/var/lib/libreoffice/share/prereg/.lock
dpkg: error processing /var/cache/apt/archives/python-uno_1%3a3.5.1-1ubuntu1_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

Processing triggers for fontconfig ...
Errors were encountered while processing:
 /var/cache/apt/archives/python-uno_1%3a3.5.1-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
tim@zaphod:~$

The lock file /var/lib/libreoffice/share/prereg/.lock had survived multiple reboots:
$ ls -l /var/lib/libreoffice/share/prereg/.lock
-rw-r--r-- 1 root root 126 Mar 8 20:55 /var/lib/libreoffice/share/prereg/.lock
~$ last reboot
reboot system boot 3.2.0-19-generic Tue Mar 20 19:47 - 18:13 (22:25)
reboot system boot 3.2.0-19-generic Mon Mar 19 18:26 - 19:45 (1+01:19)

Removing the lock file then running
  sudo apt-get -f install
successfuly competed the installation:
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libcogl5 gnome-js-common linux-headers-3.2.0-18 seed dkms libseed-gtk3-0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  python-uno
The following packages will be upgraded:
  python-uno
1 upgraded, 0 newly installed, 0 to remove and 71 not upgraded.
52 not fully installed or removed.
Need to get 0 B/156 kB of archives.
After this operation, 219 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 238205 files and directories currently installed.)
Preparing to replace python-uno 1:3.5.0-2ubuntu1 (using .../python-uno_1%3a3.5.1-1ubuntu1_amd64.deb) ...
Synchronizing repository for bundled extensions
 Disabling: script-provider-for-python
  Disabling: pythonscript.py

unopkg done.
Unpacking replacement python-uno ...

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: python-uno 1:3.5.0-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-19.30-generic 3.2.11
Uname: Linux 3.2.0-19-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
Date: Wed Mar 21 18:03:48 2012
ErrorMessage: subprocess new pre-installation script returned error exit status 1
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110920.5)
SourcePackage: libreoffice
Title: package python-uno 1:3.5.0-2ubuntu1 failed to install/upgrade: subprocess new pre-installation script returned error exit status 1
UpgradeStatus: Upgraded to precise on 2012-03-14 (7 days ago)

Revision history for this message
Tim Frost (timfrost) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Tim Frost (timfrost) wrote :

I ran apt-get dist-upgrade in a terminal, because update manager warned that a partial upgrade needed to be run.

After running apt-get -f install, update-manager popped up again, with 71 packages to upgrade. No archives were fetched ('Need to get 0 B/40.8 MB of archives.') which indicates that those packages were blocked by the error.

Revision history for this message
Tim Frost (timfrost) 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
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.