Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Build failed: "chroot: failed to run command ‘/bin/bash’: No such file or directory"

Featured Replies

Hi,

 

I'm trying to build the Armbian for Rock64.

Host machine is Ubuntu 24.04 AMD64 (but it is running in VirtualBox under Windows).

Build fails with the following error:

 

[🐳|🌱] Deploying qemu-user-static binary to chroot [ qemu-aarch64-static during image-early ]
[🐳|🔨]   '/usr/bin/qemu-aarch64-static' -> '/armbian/.tmp/rootfs-232e77ba-e6ab-4067-8029-afd44bd1d0b9//usr/bin/qemu-aarch64-static'
chroot: failed to run command ‘/bin/bash’: No such file or directory
[🐳|💥] Error 127 occurred in main shell [ at /armbian/lib/functions/rootfs/distro-specific.sh:276
   create_sources_list_and_deploy_repo_key() --> lib/functions/rootfs/distro-specific.sh:276
        extract_rootfs_artifact() --> lib/functions/rootfs/create-cache.sh:130
                do_with_logging() --> lib/functions/logging/section-logging.sh:81
   get_or_create_rootfs_cache_chroot_sdcard() --> lib/functions/rootfs/create-cache.sh:90
         build_rootfs_and_image() --> lib/functions/main/rootfs-image.sh:14
   full_build_packages_rootfs_and_image() --> lib/functions/main/default-build.sh:36
          do_with_default_build() --> lib/functions/main/default-build.sh:42
         cli_standard_build_run() --> lib/functions/cli/cli-build.sh:25
        armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
                 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:208
                           main() --> compile.sh:50

 

The /bin/bash (/armbian/.tmp/rootfs-232e77ba-e6ab-4067-8029-afd44bd1d0b9/bin/bash) seems an ARM64 and this might be the reason for "failed to run".

 

Is this a known issue? Can I fix it?

I've tried to avoid using chroot in this line, the build goes forward but fails with similar error later.

 

 

Solved by Werner

I ran into what appears to be the same issue (see my log). I have added the suggested qemu-user-static package, which forced removal of another qemu- family package I had previously installed to work around problems with binfmt. Not only did it compile correctly, it also ran so much faster, as you can see in the number of log lines for this build! Thank you for the assistance and getting me on the right track with the right package selection!

 

Best Regards,

 

Lobosito

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.