chroot: failed to run command '/bin/sh': Exec format errorwut
Conversation
Notices
-
Embed this notice
Chloe (chloe@catwithaclari.net)'s status on Tuesday, 17-Mar-2026 04:14:43 JST
Chloe
-
Embed this notice
Chloe (chloe@catwithaclari.net)'s status on Tuesday, 17-Mar-2026 04:14:42 JST
Chloe
chroot: failed to run command '/bin/sh': Exec format error (1782005) [12:09:33] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (1782005) [12:09:33] NOTE: The failed command's output is above the ^^^ line in the log file: /home/chloe/.local/var/pmbootstrap/log.txt (1782005) [12:09:33] ERROR: Command failed (exit code 126): (rootfs_samsung-elitexlte) % addgroup chloe audio (1782005) [12:09:33] See also: <https://postmarketos.org/troubleshooting> (1782005) [12:09:33] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/pmb/__init__.py", line 109, in main run_command(args) ~~~~~~~~~~~^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/commands/__init__.py", line 56, in run_command getattr(frontend, args.action)(args) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/helpers/frontend.py", line 411, in install pmb.install.install(args) ~~~~~~~~~~~~~~~~~~~^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/install/_install.py", line 1500, in install create_device_rootfs(args, step, steps) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/install/_install.py", line 1369, in create_device_rootfs set_user(context.config) ~~~~~~~~^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/install/_install.py", line 230, in set_user pmb.chroot.root(["addgroup", config.user, group], chroot) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/chroot/run.py", line 168, in root return rootm( [cmds], ...<7 lines>... add_proxy_env_vars, ) File "/usr/lib/python3.13/site-packages/pmb/chroot/run.py", line 96, in rootm return pmb.helpers.run_core.core( ~~~~~~~~~~~~~~~~~~~~~~~~~^ msg, cmd_sudo, None, output, output_return, check, True, disable_timeout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.13/site-packages/pmb/helpers/run_core.py", line 500, in core check_return_code(code, log_message) ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/pmb/helpers/run_core.py", line 337, in check_return_code raise RuntimeError(f"Command failed (exit code {code}): " + log_message) RuntimeError: Command failed (exit code 126): (rootfs_samsung-elitexlte) % addgroup chloe audiothis doesn't even make any sense
Puniko ? likes this. -
Embed this notice
Puniko ? (puniko@mk.absturztau.be)'s status on Tuesday, 17-Mar-2026 04:17:03 JST
Puniko ?
@Chloe@catwithaclari.net 126 usually means permission problem or the command is not executable. at least according to the bash exit codes https://tldp.org/LDP/abs/html/exitcodes.html
In conversation permalink Attachments
-
Embed this notice
new mir (mir@ice.ch3.st)'s status on Tuesday, 17-Mar-2026 04:17:36 JST
new mir
@Chloe@catwithaclari.net exec format error usually means wrong cpu architecture. i think there's a way to make it run binaries thru qemu?
In conversation permalink Puniko ? likes this.
-
Embed this notice