Skip to content

fakechroot on amd64 fails to chroot into aarch64 #120

@sgstreet

Description

@sgstreet

I'm trying to chroot into a ARM64 tree setup on AMD64 system, the command:

fakeroot fakechroot -d /usr/aarch64-linux-gnu chroot $PWD/arm64
/usr/sbin/chroot.fakechroot: 1: /usr/bin/seq: Permission denied
/usr/sbin/chroot.fakechroot: 1: /usr/bin/seq: Permission denied
/usr/sbin/chroot.fakechroot: 138: env: Permission denied

and

fakechroot -d /usr/aarch64-linux-gnu fakeroot chroot $PWD/arm64
/usr/bin/fakeroot: 1: getopt: Permission denied
/usr/bin/fakeroot: 1: getopt: Permission denied
/usr/bin/fakeroot: 7: cat: Permission denied

both fail on Ubuntu 24.04. While directly using sudo chroot $PWD/arm64 works as expected. Is there a way to make this work? FYI fakechroot fakeroot chroot $PWD/amd64 works as expected. Note the working example is a AMD64 tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions