Updating Ubuntu package libunity-scopes1.0 1.0.2+15.10.20150921-0ubuntu1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1

Bug #1510015 reported by Johann de Boer
84
This bug affects 15 people
Affects Status Importance Assigned to Milestone
click (Ubuntu)
Fix Released
High
Colin Watson
unity-scopes-api (Ubuntu)
Invalid
High
Unassigned

Bug Description

Upgrading Ubuntu

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: libunity-scopes1.0 1.0.2+15.10.20150921-0ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
Date: Mon Oct 26 19:24:58 2015
DuplicateSignature: package:libunity-scopes1.0:1.0.2+15.10.20150921-0ubuntu1:subprocess installed pre-removal script returned error exit status 1
ErrorMessage: subprocess installed pre-removal script returned error exit status 1
InstallationDate: Installed on 2015-05-31 (148 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
RelatedPackageVersions:
 dpkg 1.18.2ubuntu5
 apt 1.0.10.2ubuntu1
SourcePackage: unity-scopes-api
Title: package libunity-scopes1.0 1.0.2+15.10.20150921-0ubuntu1 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Johann de Boer (johanndeboer-6) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Michi Henning (michihenning) wrote :

This doesn't look like a scopes-api problem. DpkgTerminalLog.txt seems to indicate click.

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

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

Changed in click (Ubuntu):
status: New → Confirmed
Changed in unity-scopes-api (Ubuntu):
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

click has the right dependencies here (click Depends: python3-click Depends: python3-apt Depends: libapt-pkg4.16). The problem is that unity-scope-click.prerm (the relevant bit of which is in fact generated by dh_click, so this isn't passing the buck) is calling click in a situation where click may be technically in an unconfigured state: in particular this is probably mid-way through upgrading the packages that form part of the g++ 5 transition between 15.04 and 15.10, so libapt-pkg and python-apt are temporarily in a rather sad state.

I don't think that strengthening dependencies is the answer here; instead, we need to make things more robust against being run in this kind of situation. The good news is that apt_pkg is only used in a few places in click, and they almost all tolerate it not being importable. The one exception is click.install, which originally imported apt_pkg because it used it to parse framework entries in manifests. That has since moved to click.framework, though, and the code there now copes with this situation.

It therefore looks as though we can just drop the apt_pkg bits from click.install and all will be well.

Changed in unity-scopes-api (Ubuntu):
importance: Undecided → High
Changed in click (Ubuntu):
importance: Undecided → High
Colin Watson (cjwatson)
Changed in unity-scopes-api (Ubuntu):
status: Confirmed → Fix Committed
Changed in click (Ubuntu):
status: Confirmed → Fix Committed
Changed in unity-scopes-api (Ubuntu):
status: Fix Committed → Invalid
Changed in click (Ubuntu):
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package click - 0.4.41+16.04.20151211-0ubuntu1

---------------
click (0.4.41+16.04.20151211-0ubuntu1) xenial; urgency=medium

  [ Colin Watson ]
  * Fix spurious test_sync_without_user_db test failure.
  * Fix test failures under Python 2.
  * Forbid installing packages with data tarball members whose names do not
    start with "./" (LP: #1506467).
  * Take evasive action in case the conflicting "click" package has been
    installed locally from PyPI (LP: #1486841).
  * Drop use of apt_pkg from click.install, since it's no longer needed
    there (LP: #1510015).

  [ Dimitri John Ledkov ]
  * Require specific Click version, to avoid gi warnings that fail
    test-suite (LP: #1522608).
  * Set Vcs-* fields to the actual development branch.

  [ CI Train Bot ]
  * No-change rebuild.

 -- Colin Watson <email address hidden> Fri, 11 Dec 2015 01:31:29 +0000

Changed in click (Ubuntu):
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.