[Bug 1785909] Re: update-manager crashes when upgrading from 16.04

Jean-Baptiste Lallement jean-baptiste.lallement at ubuntu.com
Wed Aug 8 07:37:41 UTC 2018


*** This bug is a duplicate of bug 1783589 ***
    https://bugs.launchpad.net/bugs/1783589

** This bug has been marked a duplicate of bug 1783589
   ubuntu-release-upgrader crashes if snapd is not installed

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

Title:
  update-manager crashes when upgrading from 16.04

Status in update-manager package in Ubuntu:
  New

Bug description:
  I have a 16.04 system where the package snapd has been uninstalled. On
  trying to upgrade this system to 18.04, I get the following error

  $ sudo update-manager -d
  /usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
    from gi.repository import Gtk
  /usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
    from gi.repository import Dbusmenu, Unity
  /usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
    from gi.repository import Dbusmenu, Unity
  Checking for a new Ubuntu release
  /usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcher.py:23: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
    from gi.repository import Gtk, Gdk
  /usr/lib/python3/dist-packages/DistUpgrade/ReleaseNotesViewerWebkit.py:33: PyGIWarning: WebKit2 was imported without specifying a version first. Use gi.require_version('WebKit2', '4.0') before import to ensure that the right version gets loaded.
    from gi.repository import WebKit2 as WebKit
  Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
  authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg' 
  extracting 'bionic.tar.gz'
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-18ogog0r/bionic", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeMain.py", line 238, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeController.py", line 1949, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeController.py", line 1826, in fullUpgrade
      if not self.doPostInitialUpdate():
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeController.py", line 893, in doPostInitialUpdate
      self.quirks.run("PostInitialUpdate")
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeQuirks.py", line 113, in run
      func()
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeQuirks.py", line 133, in bionicPostInitialUpdate
      self._checkStoreConnectivity()
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeQuirks.py", line 492, in _checkStoreConnectivity
      stderr=PIPE, universal_newlines=True).communicate()
    File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
      restore_signals, start_new_session)
    File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg)
  FileNotFoundError: [Errno 2] No such file or directory: 'snap'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/problem_report.py", line 497, in add_to_existing
      self.write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 450, in write
      block = f.read(1048576)
    File "/usr/lib/python3.5/codecs.py", line 321, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

  Original exception was:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-18ogog0r/bionic", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeMain.py", line 238, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeController.py", line 1949, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeController.py", line 1826, in fullUpgrade
      if not self.doPostInitialUpdate():
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeController.py", line 893, in doPostInitialUpdate
      self.quirks.run("PostInitialUpdate")
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeQuirks.py", line 113, in run
      func()
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeQuirks.py", line 133, in bionicPostInitialUpdate
      self._checkStoreConnectivity()
    File "/tmp/ubuntu-release-upgrader-18ogog0r/DistUpgrade/DistUpgradeQuirks.py", line 492, in _checkStoreConnectivity
      stderr=PIPE, universal_newlines=True).communicate()
    File "/usr/lib/python3.5/subprocess.py", line 947, in __init__
      restore_signals, start_new_session)
    File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
      raise child_exception_type(errno_num, err_msg)
  FileNotFoundError: [Errno 2] No such file or directory: 'snap'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1785909/+subscriptions



More information about the foundations-bugs mailing list