Skip to main content
Topic: binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//{mono,wine}.conf' (Read 675 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//{mono,wine}.conf'

Hello, during todays update (after 46 days) I got this error during pacman post-transaction hooks.

How to fix it ?

Code: [Select]
( 2/34) Registering binary formats...
/usr/lib/openrc/sh/binfmt.sh: line 32: echo: write error: File exists
binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//mono.conf'
/usr/lib/openrc/sh/binfmt.sh: line 32: echo: write error: File exists
binfmt: invalid entry on line 2 of `/usr/lib/binfmt.d//wine.conf'
error: command failed to execute correctly

wine.conf:
Code: [Select]
# Start WINE on Windows executables
:DOSWin:M::MZ::/usr/bin/wine:

mono.conf:
Code: [Select]
:CLR:M::MZ::/usr/bin/mono:

Code: [Select]
$ pacman -Qo /usr/lib/binfmt.d//{mono,wine}.conf
/usr/lib/binfmt.d/mono.conf is owned by mono 6.0.0.334-1
/usr/lib/binfmt.d/wine.conf is owned by wine 4.16-1

Re: binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//{mono,wine}.conf'

Reply #1
I think that I fixed it in gremlins/openrc. Bug report is filed, and PR pending if upstream agrees.

Please update openrc and reinstall wine & mono again to confirm.
binfmt_misc should get properly unregistered now and registered again.