I'm left also with an incomplete unusable installation on trying to doing an LTS 22.04 jammy to LTS 24.04.1 noble.
Fortunately I have ZFS snapshots, hence I was able to revert to the pre- upgrade state. But I did not succeed to workaround this issue. Here an extract from screenlog ---------------------------------- Entfernen von python3-distutils (3.10.8-1~22.04) ... awk: error while loading shared libraries: libreadline.so.8: cannot open shared object file: No such file or directory dpkg: Fehler beim Bearbeiten des Paketes python3-distutils (--remove): »installiertes python3-distutils-Skript des Paketes pre-removal«-Unterprozess gab den Fehlerwert 127 zurück dpkg: Zu viele Fehler, Abbruch Fehler traten auf beim Bearbeiten von: python3-distutils Bearbeitung wurde angehalten, da zu viele Fehler auftraten. Traceback (most recent call last): File "/usr/share/apport/package_hook", line 15, in <module> import apport, apport.fileutils File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module> from apport.report import Report File "/usr/lib/python3/dist-packages/apport/report.py", line 32, in <module> import apport.fileutils File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 28, in <module> from apport.packaging_impl import impl as packaging File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module> import apt File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module> import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Exception during pm.DoInstall(): E:Sub-process /usr/bin/dpkg returned an error code (1) Die Aktualisierungen konnten nicht installiert werden Die Systemaktualisierung wurde abgebrochen. Ihr System könnte sich in einem nicht verwendbaren Zustand befinden. Eine Wiederherstellung wird gestartet (»dpkg --configure -a«). […] ESC[1mdpkg:ESC[0m Fehler beim Bearbeiten des Paketes openjdk-11-jre:amd64 (--configure): Abhängigkeitsprobleme - verbleibt unkonfiguriert ESC[1mdpkg:ESC[0m Zu viele Fehler, Abbruch Trigger für libc-bin (2.39-0ubuntu8.3) werden verarbeitet ... Fehler traten auf beim Bearbeiten von: hplip sssd-ad libatspi2.0-dev:amd64 libdebuginfod1t64:amd64 libwebkit2gtk-4.1-0:amd64 remmina-plugin-spice:amd64 shotwell libnfsidmap1:amd64 libproxy1v5:amd64 gnome-control-center libgjs0g:amd64 libpython3.12-stdlib:amd64 remmina-plugin-www:amd64 libglade2-0:amd64 evolution-data-server pavucontrol libdebuginfod-common libcurl4t64:amd64 rawtherapee libevview3-3t64:amd64 libpoppler134:amd64 gnome-session-canberra network-manager-gnome xdg-desktop-portal-gnome libgail-common:amd64 python3-gdbm:amd64 python3-talloc:amd64 gnome-settings-daemon gjs ubuntu-desktop-minimal python3.12 libqt6webenginewidgets6:amd64 openjdk-11-jre-headless:amd64 libfwupd2:amd64 libostree-1-1:amd64 gparted gnome-session-bin gnome-shell-extensions libevdocument3-4t64:amd64 libraptor2-0:amd64 libnma0:amd64 libsoup-3.0-0:amd64 libedata-cal-2.0-2t64:amd64 libgupnp-1.6-0:amd64 gobject-introspection:amd64 rpm parted samba-libs:amd64 gstreamer1.0-gtk3:amd64 openjdk-11-jre:amd64 Bearbeitung wurde angehalten, da zu viele Fehler auftraten. Traceback (most recent call last): File "/usr/lib/ubuntu-advantage/convert_list_to_deb822.py", line 12, in <module> from aptsources.sourceslist import SourceEntry # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/aptsources/__init__.py", line 3, in <module> import apt_pkg ModuleNotFoundError: No module named 'apt_pkg' Traceback (most recent call last): File "/usr/lib/ubuntu-advantage/upgrade_lts_contract.py", line 10, in <module> from uaclient import config, defaults, http, log, upgrade_lts_contract File "/usr/lib/python3/dist-packages/uaclient/config.py", line 7, in <module> from uaclient import ( File "/usr/lib/python3/dist-packages/uaclient/apt.py", line 13, in <module> import apt_pkg # type: ignore ^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'apt_pkg' -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2069856 Title: installation fails in the presence of foreign packages To manage notifications about this bug go to: https://bugs.launchpad.net/subiquity/+bug/2069856/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs