installation fails in the presence of foreign packages

Bug #2069856 reported by Thiago Jung Bauermann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Invalid
Undecided
Unassigned
ubuntu-release-upgrader (Ubuntu)
New
Undecided
Unassigned

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.

Revision history for this message
Thiago Jung Bauermann (thiago-bauermann) wrote :
Revision history for this message
Thiago Jung Bauermann (thiago-bauermann) wrote :

This is the list of packages I had installed before the failed upgrade, including the foreign architecture ones.

Revision history for this message
Chris Peterson (cpete) wrote :

Hi and thanks for your report. Reassigning to u-r-u for upgrade issues.

Changed in subiquity:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.