← Back to team overview

dx-packages team mailing list archive

[Bug 842799] Re: Software installation or update doesn't block session exit

 

<seb128> http://www.freedesktop.org/wiki/Software/systemd/inhibit/
<seb128> "shutdown inhibits high-level system power-off and reboot requested by (unprivileged) users"
<seb128> that's part of logind
<seb128> (e.g it's already being used, not part of changing pid 1)
<seb128> like that page has an example of pseudo code
<seb128> "fd = Inhibit("shutdown:idle", "Package Manager", "Upgrade in progress...", "block");"
<seb128> that's basically what we want

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/842799

Title:
  Software installation or update doesn't block session exit

Status in “aptdaemon” package in Ubuntu:
  Confirmed
Status in “software-center” package in Ubuntu:
  Confirmed
Status in “unity” package in Ubuntu:
  Confirmed
Status in “update-manager” package in Ubuntu:
  Confirmed
Status in “update-notifier” package in Ubuntu:
  Confirmed

Bug description:
  software-center trunk r2261, aptdaemon 0.43+bzr691, Ubuntu 11.10 beta
  1

  1. In USC, start installing something big and complicated, like Ardour.
  2. While it is installing, choose "Shut Down" and confirm it.

  What happens:
  2. The computer shuts down immediately.
  3. Ardour is not installed.
  4. After restarting, and trying to install it again, errors at the console:
  ------------
  2011-09-06 16:03:11,918 - softwarecenter.backend - ERROR - error in _on_trans_finished 'Error: Package operation failed
  The installation or removal of a software package failed.

  Setting up liblo7 (0.26~repack-7) ...
  Setting up libgnomecanvasmm-2.6-1c2a (2.26.0-1build1) ...
  dpkg: error processing libvamp-sdk2 (--configure):
   Package is in a very bad inconsistent state - you should
   reinstall it before attempting configuration.
  ------------

  What should happen:
  2. A dialog appears explaining that you can't log out until Ubuntu Software Center is finished.
  3. Once the installation finishes, the computer shuts down.

  <https://wiki.ubuntu.com/SoftwarePackageOperations#general>: "2.
  Session exit should be inhibited."

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