[Bug 2141637] [NEW] ImportError: cannot import name 'inhibit_sleep' from 'DistUpgrade.utils' during 25.10 to 26.04 upgrade

thomas moore 2141637 at bugs.launchpad.net
Thu Feb 12 07:56:26 UTC 2026


Public bug reported:

While attempting an upgrade to the Ubuntu 26.04 "Resolute Raccoon"
development branch using do-release-upgrade -d, the process fails
immediately after downloading the upgrader tarball due to a Python
ImportError.

Steps to reproduce:

    Run sudo do-release-upgrade -d on an Ubuntu 25.10 system.
    The upgrader downloads the "resolute" tarball to /tmp.
    The process crashes before the UI initializes.

Expected Behavior:
The upgrader should initialize and begin the "Calculating Changes" phase.
Actual Behavior:
A Traceback occurs because DistUpgradeController.py attempts to import inhibit_sleep from DistUpgrade.utils, but that function is missing from the utils.py file in the current Resolute archive.

    Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-XXXXXX/resolute", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-XXXXXX/DistUpgrade/DistUpgradeMain.py", line 222, in main
    from .DistUpgradeController import DistUpgradeController
  File "/tmp/ubuntu-release-upgrader-XXXXXX/DistUpgrade/DistUpgradeController.py", line 43, in <module>
    from .utils import (..., inhibit_sleep)
ImportError: cannot import name 'inhibit_sleep' from 'DistUpgrade.utils'

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  ImportError: cannot import name 'inhibit_sleep' from
  'DistUpgrade.utils' during 25.10 to 26.04 upgrade

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

Bug description:
  While attempting an upgrade to the Ubuntu 26.04 "Resolute Raccoon"
  development branch using do-release-upgrade -d, the process fails
  immediately after downloading the upgrader tarball due to a Python
  ImportError.

  Steps to reproduce:

      Run sudo do-release-upgrade -d on an Ubuntu 25.10 system.
      The upgrader downloads the "resolute" tarball to /tmp.
      The process crashes before the UI initializes.

  Expected Behavior:
  The upgrader should initialize and begin the "Calculating Changes" phase.
  Actual Behavior:
  A Traceback occurs because DistUpgradeController.py attempts to import inhibit_sleep from DistUpgrade.utils, but that function is missing from the utils.py file in the current Resolute archive.

      Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-XXXXXX/resolute", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-XXXXXX/DistUpgrade/DistUpgradeMain.py", line 222, in main
      from .DistUpgradeController import DistUpgradeController
    File "/tmp/ubuntu-release-upgrader-XXXXXX/DistUpgrade/DistUpgradeController.py", line 43, in <module>
      from .utils import (..., inhibit_sleep)
  ImportError: cannot import name 'inhibit_sleep' from 'DistUpgrade.utils'

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




More information about the foundations-bugs mailing list