Utopic -> Vivid upgrade displays failure warning

Bug #1413270 reported by Erick Brunzell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Brian Murray
Vivid
Fix Released
High
Brian Murray

Bug Description

Just testing Ubuntu GNOME Utopic -> Vivid release upgrades and towards the end of the upgrade a failure warning is displayed:

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a).

The terminal displays this:

lance@lance-desktop:~$ update-manager -d -c
Checking for a new Ubuntu release
authenticate 'vivid.tar.gz' against 'vivid.tar.gz.gpg'
extracting 'vivid.tar.gz'
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1122, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/vivid", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeMain.py", line 239, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1812, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1777, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1166, in doDistUpgrade
    self._view.getTerminal().call(cmd)
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeViewGtk3.py", line 377, in call
    (success, pid) = self.term.spawn_sync(Vte.PtyFlags.DEFAULT,
AttributeError: 'Terminal' object has no attribute 'spawn_sync'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 102, in apport_excepthook
    pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 521, in add_proc_info
    raise ValueError('%s does not exist' % self['ExecutablePath'])
ValueError: /usr/bin/python3.4.dpkg-new (deleted) does not exist

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1122, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/vivid", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeMain.py", line 239, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1812, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1777, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1166, in doDistUpgrade
    self._view.getTerminal().call(cmd)
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeViewGtk3.py", line 377, in call
    (success, pid) = self.term.spawn_sync(Vte.PtyFlags.DEFAULT,
AttributeError: 'Terminal' object has no attribute 'spawn_sync'

Upon reboot I notice that I am running the Vivid kernel but apparently some packages had failed to configure:

lance@lance-desktop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libts-0.0-0 linux-headers-3.16.0-23 linux-headers-3.16.0-23-generic
  linux-image-3.16.0-23-generic linux-image-extra-3.16.0-23-generic tsconf
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up bash (4.3-11ubuntu2) ...
Installing new version of config file /etc/bash.bashrc ...
update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode
Setting up bash-completion (1:2.1-4ubuntu1) ...
Setting up gdm (3.14.1-0ubuntu1) ...
Installing new version of config file /etc/gdm/Xsession ...
Installing new version of config file /etc/init.d/gdm ...
Installing new version of config file /etc/init/gdm.conf ...
Setting up ubuntu-gnome-desktop (0.37) ...
Processing triggers for ureadahead (0.100.0-17) ...
ureadahead will be reprofiled on next reboot

Now it's time to reboot again. I'm sure you'll need more info but I can't think what else to add right now.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: ubuntu-release-upgrader-core 1:15.04.3
ProcVersionSignature: Ubuntu 3.18.0-9.10-generic 3.18.2
Uname: Linux 3.18.0-9-generic i686
ApportVersion: 2.15.1-0ubuntu2
Architecture: i386
CrashDB: ubuntu
CurrentDesktop: GNOME
Date: Wed Jan 21 09:30:34 2015
InstallationDate: Installed on 2014-10-22 (90 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release i386 (20141022.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to vivid on 2015-01-21 (0 days ago)
VarLogDistupgradeTermlog:

Revision history for this message
Erick Brunzell (lbsolost) wrote :
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1413270

tags: added: iso-testing
Revision history for this message
Brian Murray (brian-murray) wrote :

This seems to be the root of the problem:

Processing triggers for install-info (5.2.0.dfsg.1-6) ...
dpkg: dependency problems prevent processing triggers for plymouth-theme-ubuntu-gnome-text:
 plymouth-theme-ubuntu-gnome-text depends on plymouth; however:
  Package plymouth is not configured yet.

dpkg: error processing package plymouth-theme-ubuntu-gnome-text (--configure):
 dependency problems - leaving triggers unprocessed
dpkg: dependency problems prevent processing triggers for plymouth-theme-ubuntu-gnome-text:
 plymouth-theme-ubuntu-gnome-text depends on plymouth; however:
  Package plymouth is not configured yet.

tags: added: rls-v-incoming
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → High
Revision history for this message
Erick Brunzell (lbsolost) wrote :

Hi Brian,

I got busy and forgot to add a comment about follow up testing. About 20 hours after this initial test on i386 I performed a second test on the same hardware but with an amd64 OS and I got no such failure warning. So I just happened to think, is it possible that this could be arch specific?

Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :
Download full text (3.9 KiB)

This just happened to me on the amd64 architecture.
One package failed to upgrade (the package whoopsie).
This is the current python trace:

root@rivendell:/home/nazgul# update-manager -c -d
Neue Veröffentlichungen von Ubuntu werden gesucht
»vivid.tar.gz« wird gegenüber »vivid.tar.gz.gpg« legitimiert
»vivid.tar.gz« wird entpackt
No candidate ver: libharfbuzz0:i386
No candidate ver: librtmp0
No candidate ver: libharfbuzz0:i386
No candidate ver: librtmp0
No candidate ver: linux-image-3.16.0-23-generic
No candidate ver: linux-image-extra-3.16.0-23-generic
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeController.py", line 1137, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/vivid", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeMain.py", line 240, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeController.py", line 1831, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeController.py", line 1796, in fullUpgrade
    if not self.doDistUpgrade():
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeController.py", line 1182, in doDistUpgrade
    self._view.getTerminal().call(cmd)
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeViewGtk3.py", line 377, in call
    (success, pid) = self.term.spawn_sync(Vte.PtyFlags.DEFAULT,
AttributeError: 'Terminal' object has no attribute 'spawn_sync'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 102, in apport_excepthook
    pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 521, in add_proc_info
    raise ValueError('%s does not exist' % self['ExecutablePath'])
ValueError: /usr/bin/python3.4 (deleted) does not exist

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeController.py", line 1137, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-1wmkhnt8/vivid", line 8, in <module>
    sys.exit(main...

Read more...

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

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

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Erick Brunzell (lbsolost) wrote :

I performed an Ubuntu GNOME amd64 Utopic -> Vivid upgrade test last night (20150222) and it worked flawlessly - no error warning at all. No doubt it was entirely different hardware (first UEFI capable mobo):

http://paste.ubuntu.com/10347173/

Revision history for this message
Brian Murray (brian-murray) wrote :

This particular part of the Traceback seems worth fixing:

  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeController.py", line 1166, in doDistUpgrade
    self._view.getTerminal().call(cmd)
  File "/tmp/ubuntu-release-upgrader-4aooz0fb/DistUpgrade/DistUpgradeViewGtk3.py", line 377, in call
    (success, pid) = self.term.spawn_sync(Vte.PtyFlags.DEFAULT,
AttributeError: 'Terminal' object has no attribute 'spawn_sync'

Revision history for this message
Brian Murray (brian-murray) wrote :

Having said that this is the only incident of this crash I can find. I checked other u-r-u bugs and the Error Tracker.

Revision history for this message
Erick Brunzell (lbsolost) wrote :

I just performed both i386 and amd64 Utopic -> Vivid release upgrades for Ubuntu GNOME Vivid Beta 1 testing without any problem whatsoever. Could this have been a fluke? Maybe something transitional when we were preparing for Alpha 2?

I think it would be safe to consider it fixed since I've not been able to reproduce it.

tags: removed: rls-v-incoming
Revision history for this message
Brian Murray (brian-murray) wrote :

I think I was able to recreate this:

 $ ipython
Python 2.7.9 (default, Mar 9 2015, 23:17:55)
Type "copyright", "credits" or "license" for more information.

IPython 2.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import gi

In [2]: gi.require_version("Vte", "2.90")

In [3]: from gi.repository import Vte

In [4]: term = Vte.Terminal.new()

In [5]: term.spawn_sync()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-a26cb7d7520c> in <module>()
----> 1 term.spawn_sync()

AttributeError: 'Terminal' object has no attribute 'spawn_sync'

Revision history for this message
Brian Murray (brian-murray) wrote :

In Vte 2.90 it was called fork_command_full and took one less argument than spawn_sync. :-(

Changed in ubuntu-release-upgrader (Ubuntu Vivid):
status: Confirmed → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Brian Murray (brian-murray) wrote :

This can also be observed in /var/log/dist-upgrade/main.log:

VarLogDistupgradeMainlog.txt:2014-12-16 20:21:57,758 ERROR got error from PostInstallScript ./xorg_fix_proprietary.py ('Terminal' object has no attribute 'spawn_sync')

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

This bug was fixed in the package ubuntu-release-upgrader - 1:15.04.12

---------------
ubuntu-release-upgrader (1:15.04.12) vivid; urgency=medium

  * add more compatibility for vte 2.90 (and we need to keep that until
    16.04) (LP: #1413270)
 -- Brian Murray <email address hidden> Wed, 25 Mar 2015 14:38:46 -0700

Changed in ubuntu-release-upgrader (Ubuntu Vivid):
status: In Progress → 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.