Comment 7 for bug 1840956

Revision history for this message
Christian Ehrhardt  (paelzer) wrote : Re: package qemu-user-static 1:3.1+dfsg-2ubuntu3.3 failed to install/upgrade: installed qemu-user-static package post-installation script subprocess returned error exit status 2

It already has code to skip the format registration for containers which WSL is to some extend.

# check if we're running inside an (lxc) container
# (we may copy or move this to the postinst script too, to skip installing it)
grep -zqs ^container= /proc/1/environ && exit 0

Maybe this just needs an extension to cover WSL?