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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1510015

Title:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1510015/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to