qemu-user-static fails to install in WSL and LXD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Fix Released
|
Undecided
|
Christian Ehrhardt | ||
Xenial |
Won't Fix
|
Low
|
Unassigned | ||
Bionic |
Won't Fix
|
Low
|
Unassigned | ||
Disco |
Fix Released
|
Medium
|
Christian Ehrhardt |
Bug Description
[Impact]
* The check in qemu postinst to nnot by accident run in a container
doesn't work in WSL. Due to that it tries to register bin_fmt types
which can't work in that environment.
* Fix the check, so that it recognizes WSL (and probably a few other
containsers)
[Test Case]
* Install qemu-user-static in WSL(1) Ubuntu guest
[Regression Potential]
* The old check just detected LXD/LXC and any other container that put
the container into /proc/1/environ. So we could now (on install) skip
bin_fmt registration on some containers where we did it before.
Overall that is just what we wanted, but there could be containers set
up very privileged (uncommon) that would be able to do that before.
Those would regress in a sense that it is not done on install.
But the change would not prevent that in those (expected to be rare
cases) the user/admin registers the type later.
[Other Info]
* n/a
---
Happened running do-release-upgrade from 18.04 to 18.10 on Windows Subsystem for Linux, Windows 10 1903. qemu-user-static can no longer be installed or run.
ProblemType: Package
DistroRelease: Ubuntu 19.04
Package: qemu-user-static 1:3.1+dfsg-
ProcVersionSign
Uname: Linux 4.4.0-18362-
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
Date: Wed Aug 21 11:43:54 2019
Dmesg: [ 0.029344] Microsoft 4.4.0-18362.
ErrorMessage: installed qemu-user-static package post-installation script subprocess returned error exit status 2
Python3Details: /usr/bin/python3.7, Python 3.7.3, python3-minimal, 3.7.3-1
PythonDetails: N/A
RelatedPackageV
dpkg 1.19.6ubuntu1.1
apt 1.8.1
SourcePackage: qemu
Title: package qemu-user-static 1:3.1+dfsg-
UpgradeStatus: Upgraded to disco on 2019-08-21 (0 days ago)
mtime.conffile.
Related branches
- Rafael David Tinoco (community): Approve
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 40 lines (+12/-6)2 files modifieddebian/binfmt-update-in (+6/-6)
debian/changelog (+6/-0)
- Rafael David Tinoco (community): Approve
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 39 lines (+11/-6)2 files modifieddebian/binfmt-update-in (+4/-6)
debian/changelog (+7/-0)
tags: | removed: need-duplicate-check |
summary: |
- 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 + qemu-user-static fails to install in WSL |
description: | updated |
Changed in qemu (Ubuntu Xenial): | |
importance: | Undecided → Low |
status: | New → Confirmed |
summary: |
- qemu-user-static fails to install in WSL + qemu-user-static fails to install in WSL and LXD |
Note: All the data in the report indicates that you upgrade to 19.04 not 18.10.
hppa was added/enabled in 2.12 so it would make sense that it is called the first time.
To register that it needs the kernels support, maybe in WSL the binfmt has problems with it?
From your log: dfsg-2ubuntu3. 3) ... fs/binfmt_ misc/register: Invalid argument
Setting up qemu-user-static (1:3.1+
update-binfmts: warning: unable to close /proc/sys/
update-binfmts: warning: unable to enable binary format qemu-hppa
I'll ask around, but if there is anyone out there with WSL that could give this a try that would be great. Just install 19.04 and in there qemu-user-static. Just to check if this is a regular or a one-off issue.