minimize-manual crashes in cache.commit() when cross-building armhf images on amd64

Bug #1835406 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Ubuntu-image supports cross-building images since quite a while whenever qemu-user-static is available (it's using lb's cross-building capabilities). When building an armhf classic ubuntu-server image (preinstalled based on ubuntu-cpc) for ARCH=armhf on an amd64 host, the build fails on the `/usr/share/livecd-rootfs/minimize-manual chroot` line of auto/build. Commenting out this line makes the images build successfully.

Ubuntu-image command used for the build:
`sudo ubuntu-image classic --project ubuntu-cpc --suite disco --arch armhf --subarch raspi3 --workdir build pi3-gadget/prime/`

(after priming the pi3 classic gadget)

This results in the following Python traceback:
Traceback (most recent call last):
  File "/usr/share/livecd-rootfs/minimize-manual", line 63, in <module>
    main()
  File "/usr/share/livecd-rootfs/minimize-manual", line 59, in main
    cache.commit()
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 648, in commit
    raise SystemError("installArchives() failed")
SystemError: installArchives() failed

The same has been observed for both ubuntu-server armhf+raspi3 and vanilla armhf.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.624

---------------
livecd-rootfs (2.624) focal; urgency=medium

  * Mark packages as autoinstalled using apt-mark in the chroot
    instead of using python-apt that potentially starts talking to the build
    system's dbus causing various problems. (LP: #1835406)

 -- Balint Reczey <email address hidden> Wed, 13 Nov 2019 21:01:51 +0100

Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
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.