Unable to upgrade from Ubuntu 22.04 LTS to Ubuntu 24. Error with libext2fs

Ubuntu Version

Ubuntu 22.04 LTS

Desktop Environment (if applicable)

None (server/headless)

Problem Description

Unable to do-release-upgrade to migrate from Ubuntu 22.04 to Ubuntu 24.

Relevant System Information

do-release-upgrade errors on libext2fs2t64:amd64

Error Messages / Logs

From the apt.log:

Starting 2 pkgProblemResolver with broken count: 3
Investigating (0) libext2fs2t64:amd64 < none -> 1.47.0-2.4~exp1ubuntu4.1 @rc umN Ib >
Broken libext2fs2t64:amd64 Breaks on libext2fs2:amd64 < 1.46.5-2ubuntu1.2 @ii pmK > (< 1.47.0-2.4~exp1ubuntu4.1)
  Considering libext2fs2:amd64 -3 as a solution to libext2fs2t64:amd64 113
Investigating (0) libiw30t64:amd64 < none -> 30~pre9-16.1ubuntu2 @un uN Ib >
Broken libiw30t64:amd64 Conflicts on libiw30:amd64 < 30~pre9-13.1ubuntu4 @ii mK > (< 30~pre9-16.1ubuntu2)
  Considering libiw30:amd64 -3 as a solution to libiw30t64:amd64 0
  Added libiw30:amd64 to the remove list
  MarkDelete libiw30:amd64 < 30~pre9-13.1ubuntu4 @ii mK > FU=0
  Fixing libiw30t64:amd64 via remove of libiw30:amd64
Investigating (0) libgsasl7:amd64 < 1.10.0-5 @ii mK Ib >
Broken libgsasl7:amd64 Depends on gsasl-common:amd64 < 1.10.0-5 -> 2.2.1-1willsync1ubuntu0.1 @ii umU > (= 1.10.0-5)
  Considering gsasl-common:amd64 2 as a solution to libgsasl7:amd64 -1
  Removing libgsasl7:amd64 rather than change gsasl-common:amd64
  MarkDelete libgsasl7:amd64 < 1.10.0-5 @ii mK Ib > FU=0
Investigating (0) libmailutils8:amd64 < 1:3.14-1 @ii mK Ib >
Broken libmailutils8:amd64 Depends on libgsasl7:amd64 < 1.10.0-5 @ii mR > (>= 1.1)
  Considering libgsasl7:amd64 -1 as a solution to libmailutils8:amd64 -2
  Removing libmailutils8:amd64 rather than change libgsasl7:amd64
  MarkDelete libmailutils8:amd64 < 1:3.14-1 @ii mK Ib > FU=0
Investigating (1) libext2fs2t64:amd64 < none -> 1.47.0-2.4~exp1ubuntu4.1 @rc umN Ib >
Broken libext2fs2t64:amd64 Breaks on libext2fs2:amd64 < 1.46.5-2ubuntu1.2 @ii pmK > (< 1.47.0-2.4~exp1ubuntu4.1)
  Considering libext2fs2:amd64 -3 as a solution to libext2fs2t64:amd64 113
Done

What I’ve Tried

I’ve attempted the following:
apt install libext2fs2t64 --fix-broken
apt --fix-broken install
apt full-upgrade

apt-mark unhold libext2fs2
do-release-upgrade

Find which installed packages still depend on the old library:

apt-cache rdepends --installed libext2fs2

Then run apt-cache policy on each package it lists. Remove any package whose only source is /var/lib/dpkg/status or a PPA, or reinstall the Ubuntu archive version of it, then run sudo do-release-upgrade again.

Drafted with AI.

This worked perfectly. Thank you.