[Bug 1987452] Re: do-release-upgrade without the latest version of apt in focal or groovy will crash

Launchpad Bug Tracker 1987452 at bugs.launchpad.net
Mon Sep 12 14:06:11 UTC 2022


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

---------------
ubuntu-release-upgrader (1:22.04.14) jammy; urgency=medium

  * When upgrading from Ubuntu 20.04 or Ubuntu 20.10 require a version of apt
    which fixed a bug in apt (LP: 1871268) and prevents an early failure to
    upgrade. (LP: #1987452)
  * In the nvidia driver quirk handle the case where ubuntu-drivers-common is
    not installed on the system to be upgraded. (LP: #1985253)
  * Run pre-build.sh: updating mirrors and translations.

 -- Brian Murray <brian at ubuntu.com>  Tue, 23 Aug 2022 16:25:59 -0700

** Changed in: ubuntu-release-upgrader (Ubuntu Jammy)
       Status: Fix Committed => 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/1987452

Title:
  do-release-upgrade without the latest version of apt in focal or
  groovy will crash

Status in ubuntu-release-upgrader package in Ubuntu:
  Invalid
Status in ubuntu-release-upgrader source package in Jammy:
  Fix Released

Bug description:
  Impact
  ------
  There are many crash reports in the Ubuntu Error tracker (https://errors.ubuntu.com/problem/d7622e91a2afe1c1fc697f6717d45146525825c3 for one) where people experience a crash trying to upgrade from Groovy (and Focal) to Jammy due to having an old version of apt installed. While the release upgrade process ensures they have the latest version of packages installed its possible they don't have -updates enabled or their apt list files are out of date. Whatever the reason this can keep people stuck on a potentially EoL release.

  Test Case
  ---------
  1) On an Ubuntu 20.04 (or Ubuntu 20.10) system install the version of libapt-pkg6.0 and apt from the release pocket (not -updates).
  2) Disable the -updates pocket in /etc/apt/sources.list. (Or rm /var/lib/apt/lists/* .)
  3) Run do-release-upgrade
  4) Observe a crash early in the upgrade process

  With the version of ubuntu-release-upgrader from -proposed (testable
  by using do-release-upgrade -p) the release upgrade will not crash and
  instead you will be notified to install the newer version of apt and
  libapt-pkg6.0. The message will look like the following:

  "Reading state information... Done

  Required depends is not installed

  The required dependency 'apt (>= 2.0.4)' is not installed."

  Regression Potential
  --------------------
  If the Depends line is improperly formatted the upgrade process could end up crashing in a different way.

  ProblemType: Crash
  DistroRelease: Ubuntu 22.04
  Package: ubuntu-release-upgrader-core 1:22.04.13
  ProcVersionSignature: Ubuntu 5.8.0-63.71-generic 5.8.18
  Uname: Linux 5.8.0-63-generic x86_64
  Architecture: amd64
  CasperMD5CheckResult: skip
  CrashDB: ubuntu
  Date: Tue Aug 23 14:47:18 2022
  DuplicateSignature: apt_pkg.Error: E:Could not configure 'libc6:i386'. , E:Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  ExecutablePath: /usr/bin/do-release-upgrade
  ExecutableTimestamp: 1621013264
  InstallationDate: Installed on 2022-08-03 (20 days ago)
  InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
  InterpreterPath: /usr/bin/python3.8
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 -s /tmp/ubuntu-release-upgrader-fpldmaum/jammy --mode=server --frontend=DistUpgradeViewText
  ProcCwd: /tmp/ubuntu-release-upgrader-fpldmaum
  Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.6-0ubuntu1
  PythonArgs: ['/usr/bin/do-release-upgrade', '--mode=server', '--frontend=DistUpgradeViewText']
  PythonDetails: N/ASourcePackage: ubuntu-release-upgrader
  Title: do-release-upgrade crashed with apt_pkg.Error: E:Could not configure 'libc6:i386'. , E:Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  Traceback: apt_pkg.Error: E:Could not configure 'libc6:i386'. , E:Could not perform immediate configuration on 'libgcc-s1:i386'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
  UpgradeStatus: Upgraded to groovy on 2022-08-23 (0 days ago)
  UserGroups: N/A

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




More information about the foundations-bugs mailing list