installation fails in the presence of foreign packages
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-
libgck-2-2:amd64
libpython3.
libpython3.
libgcr-4-4:amd64
libnma-
network-
python3.12
libnma0:amd64
spice-
yelp
libyelp0:amd64
libpython3.
libpython3.
zenity
libpython3.
libpython3.
gir1.2-gcr-4:amd64
mutter-common-bin
gir1.2-gck-2:amd64
at-spi2-core
texlive-binaries
perl-debug
keyboard-
xdg-user-dirs-gtk
libpython3-
console-setup
libpython3-
libpython3-
kbd
console-
initramfs-tools
Traceback (most recent call last):
File "/usr/lib/
from aptsources.
^^^
File "/usr/lib/
import apt_pkg
ModuleNotFoundE
Traceback (most recent call last):
File "/usr/lib/
from uaclient import http, upgrade_
File "/usr/lib/
from uaclient import contract, defaults, messages, system, util
File "/usr/lib/
from uaclient import (
File "/usr/lib/
from uaclient.apt import (
File "/usr/lib/
import apt_pkg # type: ignore
^^^^^^^^^^^^^^
ModuleNotFoundE
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.
This is the list of packages I had installed before the failed upgrade, including the foreign architecture ones.