[Bug 1969979] Re: UC22 armhf Raspi images are failing to build

William Wilson 1969979 at bugs.launchpad.net
Mon Apr 25 14:36:33 UTC 2022


The verification has passed for jammy:

```
jawn-smith at desktop:~/utils/raspberry-pi-scripts$ apt-cache policy ubuntu-image
ubuntu-image:
  Installed: 2.2+22.04ubuntu2
  Candidate: 2.2+22.04ubuntu3
  Version table:
     2.2+22.04ubuntu3 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages
 *** 2.2+22.04ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
jawn-smith at desktop:~/utils/raspberry-pi-scripts$ ubuntu-image snap ubuntu-core-22-armhf+raspi.model-assertion
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=enforce for validations to be taken into account, pass instead --validation=ignore to preserve current behavior going forward
Fetching snapd
Fetching pi-kernel
Fetching core22
Fetching pi
Error: Error preparing image: cannot extract recovery system kernel assets: cannot move RPi dtbs to /tmp/ubuntu-image-42adc97c-e0a0-49db-aea6-641a7b06a2a3/unpack/system-seed/systems/20220425/kernel:
mv: cannot stat '/tmp/ubuntu-image-42adc97c-e0a0-49db-aea6-641a7b06a2a3/unpack/system-seed/systems/20220425/kernel/dtbs/broadcom/*': No such file or directory

jawn-smith at desktop:~/utils/raspberry-pi-scripts$ sudo apt install ubuntu-image
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-gnomebluetooth-1.0 libicu67 libpython3.9 libpython3.9-minimal libpython3.9-stdlib
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  ubuntu-image
1 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
Need to get 4,286 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 ubuntu-image amd64 2.2+22.04ubuntu3 [4,286 kB]
Fetched 4,286 kB in 1s (7,926 kB/s)
The system does not support apt-btrfs-snapshot
Requesting to save current system state
Successfully saved as "autozsys_e186h6"
(Reading database ... 547206 files and directories currently installed.)
Preparing to unpack .../ubuntu-image_2.2+22.04ubuntu3_amd64.deb ...
Unpacking ubuntu-image (2.2+22.04ubuntu3) over (2.2+22.04ubuntu2) ...
Setting up ubuntu-image (2.2+22.04ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
ZSys is adding automatic system snapshot to GRUB menu
jawn-smith at desktop:~/utils/raspberry-pi-scripts$ ubuntu-image snap ubuntu-core-22-armhf+raspi.model-assertion
WARNING: proceeding to download snaps ignoring validations, this default will change in the future. For now use --validation=enforce for validations to be taken into account, pass instead --validation=ignore to preserve current behavior going forward
Fetching snapd
Fetching pi-kernel
Fetching core22
Fetching pi
jawn-smith at desktop:~/utils/raspberry-pi-scripts$ echo $?
0
jawn-smith at desktop:~/utils/raspberry-pi-scripts$ ls pi.img
pi.img
```

** Tags removed: verification-needed verification-needed-jammy
** Tags added: verification-done verification-done-jammy

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-image in Ubuntu.
https://bugs.launchpad.net/bugs/1969979

Title:
  UC22 armhf Raspi images are failing to build

Status in ubuntu-image package in Ubuntu:
  Fix Committed
Status in ubuntu-image source package in Jammy:
  Fix Committed

Bug description:
  [Impact]

   * With the current version of snapd vendored in ubuntu-image,
     UC22 armhf+raspi image builds fail with the following error:

  ```
     mv: cannot stat '/tmp/ubuntu-image-824a59fe-574a-4d00-8669-f16d22bbe23e/unpack/system-seed/systems/20220422/kernel/dtbs/broadcom/*': No such file or directory
  ```

  [Test Plan]

   * Download the Raspberry Pi UC22 armhf edge model assertion

   * Run the command: `ubuntu-image snap <path/to/model/assertion>`

   * Observe the error listed above

   * Install ubuntu-image from jammy-proposed

   * Run the same `ubuntu-image` command again

   * Observe an image is successfully created

  [Where problems could occur]

   * This will be solved by vendoring a newer version of snapd.
     Any undetected bugs in snapd could cause regressions here.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-image/+bug/1969979/+subscriptions




More information about the foundations-bugs mailing list