[Bug 1783589] Re: ubuntu-release-upgrader crashes if snapd is not installed

Launchpad Bug Tracker 1783589 at bugs.launchpad.net
Wed Aug 1 23:52:32 UTC 2018


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

---------------
ubuntu-release-upgrader (1:18.10.6) cosmic; urgency=medium

  * DistUpgradeQuirks.py:
    - make sure that snapd is installed before trying to use it.
      (LP: #1783589)
    - update the view with information regarding the progress of snaps being
      installed. (LP: #1783593)
    - when checking for connectivity to the snap store use C.UTF-8 for the
      language so error message matching works. (LP: #1783738)
  * DistUpgradeController.py:
    - Remove debs from apt's "Dir::Cache::archives" folder after the upgrade
      has completed successfully.
    - Add a telemetry marker to report the time to process migration from deb
      to snaps.
  * DistUpgrade/DistUpgradeViewGtk3.py: call vte's terminal.feed_child() with
    the correct parameters thereby fixing a crash. (LP: #1780501)

 -- Brian Murray <brian at ubuntu.com>  Wed, 01 Aug 2018 15:06:53 -0700

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: In Progress => Fix Released

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

Title:
  ubuntu-release-upgrader crashes if snapd is not installed

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Bionic:
  Triaged

Bug description:
  Test Case:
  1. On Xenial with ubuntu-desktop installed and snapd uninstalled run update-manager -cd and proceed with the upgrade

  Result
  The upgrader crashes with:

  	
  Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-tmpdir/bionic", line 8, in <module>
  sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-tmpdir/DistUpgrade/DistUpgradeMain.py", line 238, in main
  if app.run():
  File "/tmp/ubuntu-release-upgrader-tmpdir/DistUpgrade/DistUpgradeController.py", line 1949, in run
  return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-tmpdir/DistUpgrade/DistUpgradeController.py", line 1826, in fullUpgrade
  if not self.doPostInitialUpdate():
  File "/tmp/ubuntu-release-upgrader-tmpdir/DistUpgrade/DistUpgradeController.py", line 893, in doPostInitialUpdate
  self.quirks.run("PostInitialUpdate")
  File "/tmp/ubuntu-release-upgrader-tmpdir/DistUpgrade/DistUpgradeQuirks.py", line 113, in run
  func()
  File "/tmp/ubuntu-release-upgrader-tmpdir/DistUpgrade/DistUpgradeQuirks.py", line 133, in bionicPostInitialUpdate
  self._checkStoreConnectivity()
  File "/tmp/ubuntu-release-upgrader-tmpdir/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] Aucun fichier ou dossier de ce type: 'snap'

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: ubuntu-release-upgrader-core 1:18.10.5
  ProcVersionSignature: Ubuntu 4.15.0-23.25-generic 4.15.18
  Uname: Linux 4.15.0-23-generic x86_64
  ApportVersion: 2.20.10-0ubuntu7
  Architecture: amd64
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Jul 25 17:08:36 2018
  InstallationDate: Installed on 2014-07-15 (1471 days ago)
  InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  Symptom: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to cosmic on 2018-03-24 (123 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1783589/+subscriptions



More information about the foundations-bugs mailing list