[Bug 2069856] Re: installation fails in the presence of foreign packages

Benjamin Schmid 2069856 at bugs.launchpad.net
Sun Sep 29 11:25:08 UTC 2024


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
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2069856

Title:
  installation fails in the presence of foreign packages

Status in subiquity:
  Invalid
Status in ubuntu-release-upgrader package in Ubuntu:
  Confirmed

Bug description:
  I tried upgrading the Ubuntu Desktop 23.10 installation on my amd64
  laptop to 24.04, but it failed with the following error (I'll attach a
  more complete installation log):

  ```
  Errors were encountered while processing:
   xdg-desktop-portal-gtk
   libgck-2-2:amd64
   libpython3.12-stdlib:amd64
   libpython3.12-stdlib:arm64
   libgcr-4-4:amd64
   libnma-gtk4-0:amd64
   network-manager-gnome
   python3.12
   libnma0:amd64
   spice-client-glib-usb-acl-helper
   yelp
   libyelp0:amd64
   libpython3.12-dev:amd64
   libpython3.12-dev:arm64
   zenity
   libpython3.12t64:amd64
   libpython3.12t64:arm64
   gir1.2-gcr-4:amd64
   mutter-common-bin
   gir1.2-gck-2:amd64
   at-spi2-core
   texlive-binaries
   perl-debug
   keyboard-configuration
   xdg-user-dirs-gtk
   libpython3-stdlib:amd64
   console-setup
   libpython3-dev:amd64
   libpython3-dev:arm64
   kbd
   console-setup-linux
   initramfs-tools
  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 http, upgrade_lts_contract
    File "/usr/lib/python3/dist-packages/uaclient/upgrade_lts_contract.py", line 30, in <module>
      from uaclient import contract, defaults, messages, system, util
    File "/usr/lib/python3/dist-packages/uaclient/contract.py", line 7, in <module>
      from uaclient import (
    File "/usr/lib/python3/dist-packages/uaclient/version.py", line 8, in <module>
      from uaclient.apt 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'

  Upgrade complete

  The upgrade has completed but there were errors during the upgrade
  process.
  ```

  I created a btrfs snapshot before the upgrade so I reverted back to
  it, removed all i386, armhf and arm64 foreign architecture packages I
  had installed and tried again. This time the upgrade worked fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/2069856/+subscriptions




More information about the foundations-bugs mailing list