Troubleshooting
Cross-Architecture Build Issues
If you encounter errors related to ARM emulation, first ensure you’ve properly set up the prerequisites as described in the Prerequisites section.
Common error messages and their solutions:
W: Failure trying to run: chroot chroot "//armhf_rootfs" /bin/true
OR
chroot: failed to run command '/bin/true': Exec format error
Solution:
The build script automatically registers QEMU emulation handlers when building on x86 systems. If you encounter the errors above:
Ensure the required packages are installed:
sudo apt-get install qemu-user-binfmt binfmt-support
Make sure you’re running the build script with
sudoto allow Docker privileged access for automatic QEMU registration.If the automatic registration fails, you can manually register QEMU handlers:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Docker Permission Issues
If you encounter permission errors when running Docker commands:
permission denied while trying to connect to the Docker daemon socket
Solution:
Either prefix commands with
sudoas shown in the build instructionsOr add your user to the docker group (requires logout/login):
sudo usermod -aG docker $USER
Build Path Issues
If the build fails with debootstrap errors, check if your path contains spaces. As mentioned in the prerequisites, the build path must not contain spaces.
Other Issues
For other issues not covered here, please check the GitHub Issues page or open a new issue with details about your problem.