← Back to team overview

ubuntu-phone team mailing list archive

Re: Stuck during apt-get upgrade

 

On 24.09.2015 07:46, Steve Langasek wrote:
On Thu, Sep 24, 2015 at 08:12:22AM +1000, Michi Henning wrote:
I'm seeing this on Vivid plus overlay on my desktop as well as on my Nexus
4 when using citrain device-upgrade.

Are you sure you're seeing the same issue on a Nexus 4?  The ps output shows
systemd-specific tools being invoked.  This should not ever happen on a
Nexus 4, where the init system is still upstart.

During package installation, the bluez install hangs. Looking at the
processes, I see

  28628 pts/1    S+     0:00 sudo apt-get upgrade
  28629 pts/1    S+    29:25 apt-get upgrade
  36342 pts/20   Ss+    0:00 /usr/bin/dpkg --status-fd 66 --unpack --auto-deconfigure /var/cache/apt/archives/bluez_4.101
  36348 pts/20   S+     0:00 /bin/sh /var/lib/dpkg/info/bluez.prerm upgrade 4.101+15.04.20150914.2-0ubuntu1
  36351 pts/20   S+     0:00 /bin/sh /usr/sbin/invoke-rc.d bluetooth stop
  36392 pts/20   S+     0:00 systemctl stop bluetooth.service
  36393 pts/20   S+     0:00 /bin/systemd-tty-ask-password-agent --watch
  36394 pts/20   Sl+    0:00 /usr/bin/pkttyagent --notify-fd 5 --fallback

Can anyone suggest a fix/work-around?

I can point you to bugs describing this issue:

   https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1456789
   https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1489630

The reason for this isn't clear yet however I modified the citrain utility to do an device upgrade without service restart and then directly reboot the device recently. See https://code.launchpad.net/~morphis/phablet-tools/citrain-changes

This should let the upgrade run through.

Not sure when ogra has time to land that change.

regards,
Simon



Follow ups

References