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

Launchpad Bug Tracker 2098899 at bugs.launchpad.net
Fri Mar 28 21:51:31 UTC 2025


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

---------------
ubuntu-release-upgrader (1:25.04.10) plucky; urgency=medium

  * DistUpgradeQuirks: make snap command failures non-fatal
    (LP: #2098899, #2080233)
  * pre-build: add PREBUILD_SKIP_TRANSLATIONS to skip translation step
  * Run pre-build.sh: updating mirrors.

 -- Nick Rosbrook <enr0n at ubuntu.com>  Fri, 28 Mar 2025 10:30:25 -0400

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: Confirmed => 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/2098899

Title:
  Upgrade to 25.04 crashes if Snap is not installed

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released

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