[3.1][bug] extra-ppas function is invalid

Bug #2045729 reported by Laider Lai
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Fix Released
High
Paul Mars

Bug Description

From ubuntu-image latest/stable v3.1 rev#654 and latest/edge v3.1+snap5 rev#678,
the "extra-ppas" function is invalid, the packages from ppas can't be installed by "extra-packages"

The root cause may come from "clean_extra_ppas" stage.
The "extra-ppas" stage add ppa sources, but it is cleaned by "clean_extra_ppas" stage, which happened before the "install_extra_packages" stage.
Finally, "install_extra_packages" stage didn't get any ppa sources to install packages.

Could you help to check this issue?
This issue is simple to reproduce by adding any ppa resource by "extra-ppas" and install ppa's packages by "install_extra_packages"

The older v3.0+snap12 rev#577 didn't have this issue.

Tks.

Tags: oem-priority
Revision history for this message
Laider Lai (laiderlai) wrote :

The image definition yaml: https://git.launchpad.net/~laiderlai/murcia/+git/iot-image-builds/tree/yaml/desktop-amd64.yaml?h=enable-oem-meta

The "oem-murcia-meta" package is come from oem-archive/murcia ppa.
But the build process complains it can't find "oem-murcia-meta" package.

Tks.

Paul Mars (upils)
Changed in ubuntu-image:
assignee: nobody → Paul Mars (upils)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Laider Lai (laiderlai) wrote :
Download full text (3.3 KiB)

The build fail log:

The calculated states are as follows:
[0] parse_image_definition
[1] calculate_states
[2] make_temporary_directories
[3] determine_output_directory
[4] prepare_gadget_tree
[5] load_gadget_yaml
[6] verify_artifact_names
[7] extract_rootfs_tar
[8] add_extra_ppas
[9] clean_extra_ppas
[10] install_extra_packages
[11] install_extra_snaps
[12] preseed_extra_snaps
[13] clean_rootfs
[14] customize_cloud_init
[15] customize_fstab
[16] perform_manual_customization
[17] set_default_locale
[18] populate_rootfs_contents
[19] generate_disk_info
[20] calculate_rootfs_size
[21] populate_bootfs_contents
[22] populate_prepare_partitions
[23] make_disk
[24] update_bootloader
[25] generate_manifest
[26] finish
...
[7]
...
[8] add_extra_ppas
gpg: keybox '/tmp/ubuntu-image-gpg233792207/pubring.kbx' created
gpg: /tmp/ubuntu-image-gpg233792207/trustdb.gpg: trustdb created
gpg: key D4EFDDE038AD84EA: public key "Launchpad foorbar" imported
gpg: Total number processed: 1
gpg: imported: 1
duration: 1.394343543s
[9] clean_extra_ppas
duration: 42.54µs
[10] install_extra_packages
...
Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 28.6 MB in 8s (3762 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package oem-murcia-meta
duration: 10.813651961s
Error: Error running command "/usr/sbin/chroot work/chroot apt install --assume-yes --quiet --option=Dpkg::options::=--force-unsafe-io --option=Dpkg::Opt
ions::=--force-confold ubuntu-oem-keyring linux-firmware linux-intel-iotg initramfs-tools-devices shim shim-signed grub-efi-amd64 grub-efi-amd64-bin grub
-efi-amd64-signed grub2-common network-manager netplan.io net-tools wireless-tools wireless-regdb wpasupplicant bluez tpm2-tools ubuntu-desktop-minimal a
lsa-utils fwupd modemmanager oem-murcia-meta". Error is "exit status 100". Output is:

WARNING: apt does not have...

Read more...

Paul Mars (upils)
tags: added: foundations-todo
Paul Mars (upils)
summary: - [3.0][bug] extra-ppas function is invalid
+ [3.1][bug] extra-ppas function is invalid
Paul Mars (upils)
Changed in ubuntu-image:
status: Confirmed → Fix Committed
tags: removed: foundations-todo
Revision history for this message
Laider Lai (laiderlai) wrote :

Confirmed 3.1+snap7 rev#690 fixed issue. Tks.

Paul Mars (upils)
Changed in ubuntu-image:
status: Fix Committed → 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.