[Bug 2089293] [NEW] arm64 build failure for simple config

Sudhakar Verma 2089293 at bugs.launchpad.net
Thu Nov 21 17:43:19 UTC 2024


Public bug reported:

```
$ snap --version
snap    2.65.3+24.04
snapd   2.65.3+24.04
series  16
ubuntu  24.04
kernel  6.8.0-49-generic
```

for

```
$ snap list ubuntu-image
Name          Version  Rev  Tracking       Publisher   Notes
ubuntu-image  3.4.1    981  latest/stable  canonical✓  classic
```


When run

```
$ sudo ubuntu-image classic --workdir work --debug arm.yaml
```

eventually fails like this

```
...
Processing triggers for initramfs-tools (0.142ubuntu25.4) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-49-generic
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Warning: root device  does not exist
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
duration: 13m23.313277507s
[7] prepare_image
Fetching snapd (21761)
duration: 7.927306422s
[8] preseed_image
ubuntu classic preseeding
unmounting: /tmp/snapd-preseed
error: cannot open snapd info file "/usr/lib/snapd/info": open /usr/lib/snapd/info: no such file or directory
duration: 267.528413ms
Error: Error running command "/usr/lib/snapd/snap-preseed work/chroot". Error: exit status 1. Output:
ubuntu classic preseeding
unmounting: /tmp/snapd-preseed
error: cannot open snapd info file "/usr/lib/snapd/info": open /usr/lib/snapd/info: no such file or directory

```

the `arm.yaml` is
```
# Image metadata
name: ubuntu-classical-arm64
display-name: Ubuntu Classical Image for arm64
revision: 1
architecture: arm64
series: noble
class: preinstalled

# Optional kernel (defaults to 'linux' if omitted)
kernel: linux-image-generic

# Gadget snap
gadget:
  url: https://github.com/canonical/pc-gadget
  branch: classic
  type: git

# Root filesystem definition
rootfs:
  components:
    - main
  archive: ubuntu
  mirror: http://ports.ubuntu.com/ubuntu-ports/
  pocket: updates
  seed:
    urls:
      - git://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/
    names:
      - minimal
      - supported-hardware-common
    branch: noble
    vcs: true
  sources-list-deb822: true

# Required dependency
customization:
  extra-snaps:
    - name: snapd

# Artifacts to generate
artifacts:
  qcow2:
    - name: ubuntu-classical-arm64.img
  manifest:
    name: ubuntu-classical-arm64.manifest
```

** Affects: ubuntu-image
     Importance: Undecided
         Status: New

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

Title:
  arm64 build failure for simple config

Status in Ubuntu Image:
  New

Bug description:
  ```
  $ snap --version
  snap    2.65.3+24.04
  snapd   2.65.3+24.04
  series  16
  ubuntu  24.04
  kernel  6.8.0-49-generic
  ```

  for

  ```
  $ snap list ubuntu-image
  Name          Version  Rev  Tracking       Publisher   Notes
  ubuntu-image  3.4.1    981  latest/stable  canonical✓  classic
  ```

  
  When run

  ```
  $ sudo ubuntu-image classic --workdir work --debug arm.yaml
  ```

  eventually fails like this

  ```
  ...
  Processing triggers for initramfs-tools (0.142ubuntu25.4) ...
  update-initramfs: Generating /boot/initrd.img-6.8.0-49-generic
  /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  Warning: root device  does not exist
  /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  duration: 13m23.313277507s
  [7] prepare_image
  Fetching snapd (21761)
  duration: 7.927306422s
  [8] preseed_image
  ubuntu classic preseeding
  unmounting: /tmp/snapd-preseed
  error: cannot open snapd info file "/usr/lib/snapd/info": open /usr/lib/snapd/info: no such file or directory
  duration: 267.528413ms
  Error: Error running command "/usr/lib/snapd/snap-preseed work/chroot". Error: exit status 1. Output:
  ubuntu classic preseeding
  unmounting: /tmp/snapd-preseed
  error: cannot open snapd info file "/usr/lib/snapd/info": open /usr/lib/snapd/info: no such file or directory

  ```

  the `arm.yaml` is
  ```
  # Image metadata
  name: ubuntu-classical-arm64
  display-name: Ubuntu Classical Image for arm64
  revision: 1
  architecture: arm64
  series: noble
  class: preinstalled

  # Optional kernel (defaults to 'linux' if omitted)
  kernel: linux-image-generic

  # Gadget snap
  gadget:
    url: https://github.com/canonical/pc-gadget
    branch: classic
    type: git

  # Root filesystem definition
  rootfs:
    components:
      - main
    archive: ubuntu
    mirror: http://ports.ubuntu.com/ubuntu-ports/
    pocket: updates
    seed:
      urls:
        - git://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/
      names:
        - minimal
        - supported-hardware-common
      branch: noble
      vcs: true
    sources-list-deb822: true

  # Required dependency
  customization:
    extra-snaps:
      - name: snapd

  # Artifacts to generate
  artifacts:
    qcow2:
      - name: ubuntu-classical-arm64.img
    manifest:
      name: ubuntu-classical-arm64.manifest
  ```

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




More information about the foundations-bugs mailing list