Skip to content

cannot create linux cross-build environment #115995

Open
@liesauer

Description

@liesauer

i am using wsl2 with a flash new ubuntu 22, i already follow the building workflow and install everything, when i try to creating the rootfs by running sudo ./eng/common/cross/build-rootfs.sh arm64 bionic, i got this error:

umount: /home/user/projects/runtime/eng/common/cross/../../../.tools/rootfs/arm/debootstrap: not mounted.
umount: /home/user/projects/runtime/eng/common/cross/../../../.tools/rootfs/arm/var: not mounted.
running debootstrap --variant=minbase --force-check-gpg --arch armhf bionic /home/user/projects/runtime/.tools/rootfs/arm http://ports.ubuntu.com/
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 790BC7277767219C42C86F933B4FE6ACC0B21F32)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://ports.ubuntu.com...
I: Retrieving adduser 3.116ubuntu1
...
...
...
chroot: failed to run command '/bin/true': Exec format error

i have no idea what to do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions