[Bug 2098899] Re: Upgrade to 25.04 crashes if Snap is not installed

Nick Rosbrook 2098899 at bugs.launchpad.net
Tue Mar 18 19:16:10 UTC 2025


** Changed in: ubuntu-release-upgrader (Ubuntu)
   Importance: Undecided => Medium

** Tags added: foundations-todo

** Changed in: ubuntu-release-upgrader (Ubuntu)
     Assignee: (unassigned) => Nick Rosbrook (enr0n)

-- 
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/2098899

Title:
  Upgrade to 25.04 crashes if Snap is not installed

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:
  I just upgraded Ubuntu 24.10 to 25.04. The upgrade completed fine but
  crashed at the very end after removing old packages.

  Here's the stack trace in the console:

  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/plucky", line 8, in <module>
      sys.exit(main())
               ^^^^^^
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeMain.py", line 235, in main
      if app.run():
         ^^^^^^^^^
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeController.py", line 1949, in run
      return self.fullUpgrade()
             ^^^^^^^^^^^^^^^^^^
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeController.py", line 1925, in fullUpgrade
      self.doPostUpgrade()
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeController.py", line 1608, in doPostUpgrade
      self.quirks.PostCleanup()
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeQuirks.py", line 146, in PostCleanup
      subprocess.check_call(['snap', 'refresh'])
    File "/usr/lib/python3.12/subprocess.py", line 408, in check_call
      check_call(["ls", "-l"])
                ^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 389, in call
      retcode = call(["ls", "-l"])
           ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
      encoding=encoding, errors=errors)
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
      elif err_msg == "noexec":
          ^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 'snap'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeViewGtk3.py", line 518, in _handleException
      apport_crash(type, value, tb)
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeApport.py", line 55, in apport_crash
      apport_excepthook('/usr/bin/do-release-upgrade', type, value, tb)
    File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook
      report.add_proc_info(extraenv=["PYTHONPATH", "PYTHONHOME"])
    File "/usr/lib/python3/dist-packages/apport/report.py", line 787, in add_proc_info
      raise ValueError(f"{self['ExecutablePath']} does not exist")
  ValueError: /usr/bin/python3.12 (deleted) does not exist

  Original exception was:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/plucky", line 8, in <module>
      sys.exit(main())
               ^^^^^^
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeMain.py", line 235, in main
      if app.run():
         ^^^^^^^^^
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeController.py", line 1949, in run
      return self.fullUpgrade()
             ^^^^^^^^^^^^^^^^^^
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeController.py", line 1925, in fullUpgrade
      self.doPostUpgrade()
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeController.py", line 1608, in doPostUpgrade
      self.quirks.PostCleanup()
    File "/tmp/ubuntu-release-upgrader-cmq0z01g/DistUpgrade/DistUpgradeQuirks.py", line 146, in PostCleanup
      subprocess.check_call(['snap', 'refresh'])
    File "/usr/lib/python3.12/subprocess.py", line 408, in check_call
      check_call(["ls", "-l"])
                ^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 389, in call
      retcode = call(["ls", "-l"])
           ^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
      encoding=encoding, errors=errors)
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
      elif err_msg == "noexec":
          ^^^^^^^^^^^^^^^^^^^^^^
  FileNotFoundError: [Errno 2] No such file or directory: 'snap'
  Exception: pkexec exited with 1

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




More information about the foundations-bugs mailing list