← Back to team overview

desktop-packages team mailing list archive

[Bug 856533] Re: Poor feedback, and no ability to escape, when an installation hangs

 

We could also check the terminal output and changes to the status fd and
adding a timeout. Would be the easiest option.

** Changed in: aptdaemon (Ubuntu)
       Status: New => Confirmed

** Changed in: aptdaemon (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/856533

Title:
  Poor feedback, and no ability to escape, when an installation hangs

Status in “apt” package in Ubuntu:
  Confirmed
Status in “aptdaemon” package in Ubuntu:
  Confirmed
Status in “software-center” package in Ubuntu:
  New

Bug description:
  There are many bug reports about situations where an installation goes
  part-way through, and then gets stuck. For example, bug 815102, bug
  796672, bug 795931, bug 795000, bug 779343, bug 775687, bug 753530,
  bug 730397, bug 725185, bug 723617, and bug 722814.

  When an installation gets stuck like this, Ubuntu Software Center
  gives no sign that it is stuck, it just says "Applying changes"
  forever. And it's not obvious how to unstick it, short of restarting
  the computer.

  As long as Ubuntu allows maintainer scripts, and as long as maintainer
  scripts can do anything they like, it will be possible for an
  installation to get wedged. And as long as we allow installation of
  third-party packages, some of those problems will not be fixable by
  Ubuntu developers.

  Therefore, we can't rely just on fixing bugs in individual
  installation/removal scripts. We should also have a failsafe that
  stops the operation -- or at least gives you the choice to stop the
  operation -- once the system can tell that it's not getting anywhere.

  Possible definitions of "it's not getting anywhere":
  (a) the overall installation, after the download finished, has taken more than 30 minutes
  (b) the installation hasn't written to any files in the past 5 minutes
  (c) an strace of the installation script shows that it's in a loop
  (d) something else
  (e) some combination of these.

  If you do choose to stop an installation, apt should then do its level
  best to undo whatever the installation had done so far.

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