update-manager crashes when upgrading from 16.04

Bug #1785909 reported by pranith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Undecided
Unassigned

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'

Tags: dist-upgrade
pranith (bobby-prani)
tags: added: dist-upgrade
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.