[Bug 1947333] [NEW] do-release-upgrade fails to run while migrating from hirsute

Nicolas Palix 1947333 at bugs.launchpad.net
Fri Oct 15 09:44:01 UTC 2021


Public bug reported:

I just have done a migration from focal 20.04 LTS to hirsute.
I now want to go to 21.10 impish.

While running `do-release-upgrade`, it fails with

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-dn9dgsjs/impish", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeMain.py", line 236, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 2024, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 1928, in fullUpgrade
    self._inhibitIdle()
  File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 2074, in _inhibitIdle
    self._getUserEnv()
  File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 2101, in _getUserEnv
    pid = subprocess.check_output(["pgrep", "-u", self._uid,
  File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.9/subprocess.py", line 505, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pgrep'

It appears that the package procps as been removed (with residual-config)
in a cleanup operation.

As the failure appears after the sources have been swapped to impish, do-release-upgrade
fails to run again and the installation must be done with apt.

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubuntu-release-upgrader-core 1:21.04.17
ProcVersionSignature: Ubuntu 5.4.0-88.99-generic 5.4.140
Uname: Linux 5.4.0-88-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.3
Architecture: amd64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 15 11:34:24 2021
DistributionChannelDescriptor:
 # This is the distribution channel descriptor for the OEM CDs
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-bionic-amd64-20180608-47+merion+X66
InstallationDate: Installed on 2019-12-19 (666 days ago)
InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20180608-09:38
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to hirsute on 2021-10-15 (0 days ago)
mtime.conffile..etc.update-manager.release-upgrades: 2021-10-14T18:48:02.293029

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


** Tags: amd64 apport-bug dist-upgrade hirsute third-party-packages wayland-session

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

Title:
  do-release-upgrade fails to run while migrating from hirsute

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

Bug description:
  I just have done a migration from focal 20.04 LTS to hirsute.
  I now want to go to 21.10 impish.

  While running `do-release-upgrade`, it fails with

  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-dn9dgsjs/impish", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeMain.py", line 236, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 2024, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 1928, in fullUpgrade
      self._inhibitIdle()
    File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 2074, in _inhibitIdle
      self._getUserEnv()
    File "/tmp/ubuntu-release-upgrader-dn9dgsjs/DistUpgrade/DistUpgradeController.py", line 2101, in _getUserEnv
      pid = subprocess.check_output(["pgrep", "-u", self._uid,
    File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/usr/lib/python3.9/subprocess.py", line 505, in run
      with Popen(*popenargs, **kwargs) as process:
    File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
      raise child_exception_type(errno_num, err_msg, err_filename)
  FileNotFoundError: [Errno 2] No such file or directory: 'pgrep'

  It appears that the package procps as been removed (with residual-config)
  in a cleanup operation.

  As the failure appears after the sources have been swapped to impish, do-release-upgrade
  fails to run again and the installation must be done with apt.

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: ubuntu-release-upgrader-core 1:21.04.17
  ProcVersionSignature: Ubuntu 5.4.0-88.99-generic 5.4.140
  Uname: Linux 5.4.0-88-generic x86_64
  ApportVersion: 2.20.11-0ubuntu65.3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Fri Oct 15 11:34:24 2021
  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for the OEM CDs
   # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-bionic-amd64-20180608-47+merion+X66
  InstallationDate: Installed on 2019-12-19 (666 days ago)
  InstallationMedia: Ubuntu 18.04 "Bionic" - Build amd64 LIVE Binary 20180608-09:38
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to hirsute on 2021-10-15 (0 days ago)
  mtime.conffile..etc.update-manager.release-upgrades: 2021-10-14T18:48:02.293029

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




More information about the foundations-bugs mailing list