03.11.2016 12:46, Toby Speight wrote: > Package: qemu-user-static > Version: 1:2.7+dfsg-3 > > When I upgrade from the previous (working) version in 'testing', I get a > configure failure: > > /-------- > | # dpkg --configure -a > | Setting up qemu-user-static (1:2.7+dfsg-3) ... > | update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: > Invalid argument > | update-binfmts: warning: unable to enable binary format qemu-mips > | update-binfmts: exiting due to previous errors > | dpkg: error processing package qemu-user-static (--configure): > | subprocess installed post-installation script returned error exit status 2 > \-------- []
> I was able to work around this issue by hand-editing the postinst it to add > '|mips*' to the end of $omit (luckily, I don't need MIPS emulation on my > systems). > > The one thing that stands out about the MIPS registration is that the magic > and mask are much longer than for other systems - is it possible that the > kernel can't handle such long patterns? If so, can this be detected and > avoided? This change was introduced very recently, see #829243. But it works fine on my system. I wonder if 3.16 kernel is unable to process that binfmt while 4.1+ can handle it... Oh well. /mjt