You are not logged in.

#1 2020-12-10 20:44:00

zeljko
Member
Registered: 2014-11-06
Posts: 7

[SOLVED] Failed to add binary format: No such file or directory

Hello guys!

I'm having this issue few days now. Tried to google cause and solution with no success... sad Anyone has a clue? Thanx in advance!

systemd-binfmt.service - Set Up Additional Binary Formats
     Loaded: loaded (/usr/lib/systemd/system/systemd-binfmt.service; static)
     Active: failed (Result: exit-code) since Thu 2020-12-10 21:19:21 CET; 6min ago
       Docs: man:systemd-binfmt.service(8)
             man:binfmt.d(5)
             [url]https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html[/url]
             [url]https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems[/url]
    Process: 604 ExecStart=/usr/lib/systemd/systemd-binfmt (code=exited, status=1/FAILURE)
   Main PID: 604 (code=exited, status=1/FAILURE)

pro 10 21:19:21 zeljko-laptop systemd[1]: Starting Set Up Additional Binary Formats...
pro 10 21:19:21 zeljko-laptop systemd-binfmt[604]: Failed to add binary format: No such file or directory
pro 10 21:19:21 zeljko-laptop systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
pro 10 21:19:21 zeljko-laptop systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
pro 10 21:19:21 zeljko-laptop systemd[1]: Failed to start Set Up Additional Binary Formats.

Last edited by zeljko (2020-12-11 23:22:45)

Offline

#2 2020-12-11 15:23:48

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,926

Re: [SOLVED] Failed to add binary format: No such file or directory

ExecStart=/usr/lib/systemd/systemd-binfmt

Post the output of directly executing (as root) /usr/lib/systemd/systemd-binfmt .
The output of journalctl -b -g binfmt (again run as root) may also be helpful .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2020-12-11 19:46:08

zeljko
Member
Registered: 2014-11-06
Posts: 7

Re: [SOLVED] Failed to add binary format: No such file or directory

# /usr/lib/systemd/systemd-binfmt 

gave me

Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
Failed to add binary format: No such file or directory
#journlctl -b -g binfmt 

gave me

-- Journal begins at Thu 2020-09-24 05:31:41 CEST, ends at Fri 2020-12-11 20:42>
pro 11 18:33:53 zeljko-laptop systemd[1]: proc-sys-fs-binfmt_misc.automount: Go>
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install >
pro 11 18:33:53 zeljko-laptop systemd[1]: systemd-binfmt.service: Main process >
pro 11 18:33:53 zeljko-laptop systemd[1]: systemd-binfmt.service: Failed with r>
lines 1-23...skipping...
-- Journal begins at Thu 2020-09-24 05:31:41 CEST, ends at Fri 2020-12-11 20:42:46 CET. --
pro 11 18:33:53 zeljko-laptop systemd[1]: proc-sys-fs-binfmt_misc.automount: Got automount request for /proc/sys/fs/binfmt_misc, triggered by 209 (systemd-binfmt)
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-aarch64-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-alpha-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-arm-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-armeb-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-cris-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-m68k-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-microblaze-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-mips-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-mipsel-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-ppc-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-ppc64-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-ppc64abi32-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-s390x-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sh4-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sh4eb-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sparc-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sparc32plus-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sparc64-static
pro 11 18:33:53 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-riscv64-static
pro 11 18:33:53 zeljko-laptop systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
pro 11 18:33:53 zeljko-laptop systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-aarch64-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-alpha-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-arm-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-armeb-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-cris-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-m68k-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-microblaze-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-mips-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-mipsel-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-ppc-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-ppc64-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-ppc64abi32-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-s390x-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sh4-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sh4eb-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sparc-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sparc32plus-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-sparc64-static
pro 11 20:42:46 zeljko-laptop kernel: binfmt_misc: register: failed to install interpreter file /usr/bin/qemu-riscv64-static

Last edited by zeljko (2020-12-11 22:41:49)

Offline

#4 2020-12-11 19:59:47

loqs
Member
Registered: 2014-03-06
Posts: 18,034

Re: [SOLVED] Failed to add binary format: No such file or directory

Please post the output of the following in code tags

tail -vn 100 /etc/binfmt.d/*.conf /run/binfmt.d/*.conf /usr/lib/binfmt.d/*.conf

Offline

#5 2020-12-11 22:02:27

zeljko
Member
Registered: 2014-11-06
Posts: 7

Re: [SOLVED] Failed to add binary format: No such file or directory

tail: cannot open '/etc/binfmt.d/*.conf' for reading: No such file or directory
tail: cannot open '/run/binfmt.d/*.conf' for reading: No such file or directory
==> /usr/lib/binfmt.d/qemu-static.conf <==
:qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-static:CF
:qemu-alpha:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-alpha-static:CF
:qemu-arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-static:CF
:qemu-armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-static:CF
:qemu-cris:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x4c\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-cris-static:CF
:qemu-m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-m68k-static:CF
:qemu-microblaze:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\xba\xab:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-microblaze-static:CF
:qemu-mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips-static:CF
:qemu-mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xfe\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel-static:CF
:qemu-ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc-static:CF
:qemu-ppc64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc64-static:CF
:qemu-ppc64abi32:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x15:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc64abi32-static:CF
:qemu-s390x:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-s390x-static:CF
:qemu-sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-sh4-static:CF
:qemu-sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sh4eb-static:CF
:qemu-sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc-static:CF
:qemu-sparc32plus:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x12:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc32plus-static:CF
:qemu-sparc64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2b:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc64-static:CF
:qemu-riscv64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xf3\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-riscv64-static:CF

Last edited by zeljko (2020-12-11 22:37:21)

Offline

#6 2020-12-11 22:26:07

loqs
Member
Registered: 2014-03-06
Posts: 18,034

Re: [SOLVED] Failed to add binary format: No such file or directory

You missed the code tags.
What is the output of the following in code tags.

pacman -Qo /usr/lib/binfmt.d/qemu-static.conf /usr/bin/qemu-microblaze-static

Please also fix you previous posts to use code tags.

Offline

#7 2020-12-11 22:38:58

zeljko
Member
Registered: 2014-11-06
Posts: 7

Re: [SOLVED] Failed to add binary format: No such file or directory

loqs wrote:

You missed the code tags.
What is the output of the following in code tags.

pacman -Qo /usr/lib/binfmt.d/qemu-static.conf /usr/bin/qemu-microblaze-static

Please also fix you previous posts to use code tags.

Sorry! Didin't think of it!

pacman -Qo /usr/lib/binfmt.d/qemu-static.conf /usr/bin/qemu-microblaze-static

gives me

usr/lib/binfmt.d/qemu-static.conf is owned by binfmt-qemu-static 20190112-4
error: No package owns /usr/bin/qemu-microblaze-static

Last edited by zeljko (2020-12-11 22:42:52)

Offline

#8 2020-12-11 22:43:03

loqs
Member
Registered: 2014-03-06
Posts: 18,034

Re: [SOLVED] Failed to add binary format: No such file or directory

pacman -Qil qemu-user-static

Offline

#9 2020-12-11 22:47:05

zeljko
Member
Registered: 2014-11-06
Posts: 7

Re: [SOLVED] Failed to add binary format: No such file or directory

pacman -Qil qemu-user-static

gives me

error: package 'qemu-user-static' was not found

Offline

#10 2020-12-11 23:07:13

loqs
Member
Registered: 2014-03-06
Posts: 18,034

Re: [SOLVED] Failed to add binary format: No such file or directory

If qemu-user-static is not installed why is binfmt-qemu-static installed?

Offline

#11 2020-12-11 23:14:39

zeljko
Member
Registered: 2014-11-06
Posts: 7

Re: [SOLVED] Failed to add binary format: No such file or directory

I have no clue! sad

Thanx man! I owe you a beer! wink

Removed binfmt-qemu-static and that solved my problem!

Last edited by zeljko (2020-12-11 23:15:28)

Offline

#12 2020-12-11 23:17:17

zeljko
Member
Registered: 2014-11-06
Posts: 7

Re: [SOLVED] Failed to add binary format: No such file or directory

How do I mark this topic SOLVED?

Last edited by zeljko (2020-12-11 23:17:37)

Offline

#13 2020-12-11 23:20:59

loqs
Member
Registered: 2014-03-06
Posts: 18,034

Re: [SOLVED] Failed to add binary format: No such file or directory

Use the edit link on your first post so you can change the title.

Offline

Board footer

Powered by FluxBB