Artix Linux Forum

Artix Linux => Package management => Topic started by: SGOrava on 28 September 2019, 15:34:29

Title: binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//{mono,wine}.conf'
Post by: SGOrava on 28 September 2019, 15:34:29
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
Title: Re: binfmt: invalid entry on line 1 of `/usr/lib/binfmt.d//{mono,wine}.conf'
Post by: artoo on 30 September 2019, 12:02:43
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.