Michael Tokarev <[email protected]> writes:

> On 18.05.2026 12:25, Niels Möller wrote:
> ...
>> Next, I wanted qemu-user. Just running apt-get install qemu-user also
>> installs the recommended qemu-user-binfmt package. Since I didn't want
>> to get the binfmt magic, I instead ran apt-get install qemu-user
>> qemu-user-binfmt- (note trailing -). Then apt-get decided to install
>> the additional package qemu-user-binfmt:s390x, and I accepted that
>> and pressed ENTER without realizing the bad consequences.
>
> Here's the most interesting part.  Why apt (?) insisted on installing
> qemu-user-binfmt?  I don't think apt will do that just due to Recommends.
> Is there maybe something else which *depends* on qemu-user-binfmt?

There were no complaints or additional removed packages once I managed
to run apt-get remove qemu-user-binfmt:s390x, which I guess means no
hard dependencies.

I have done the "apt-get install qemu-user qemu-user-binfmt-" thing
previously (see
https://git.lysator.liu.se/nettle/build-images/-/blob/main/buildenv-cross/Dockerfile,
producing the image used for nettle's cross build ci tests), where it
has appeared to work fine. But those images were made with bookworm and
are a bit dated.

> Do you have old qemu-user-static package installed?

The only qemu packages I have (after uninstalling the problematic binfmt
package) are:

$ dpkg -l 'qemu*' |grep ^i
ii  qemu-block-extra           1:10.0.8+ds-0+deb13u1+b2 amd64        extra 
block backend modules for qemu-system and qemu-utils
ii  qemu-system-common         1:10.0.8+ds-0+deb13u1+b2 amd64        QEMU full 
system emulation binaries (common files)
ii  qemu-system-data           1:10.0.8+ds-0+deb13u1    all          QEMU full 
system emulation (data files)
ii  qemu-system-x86            1:10.0.8+ds-0+deb13u1+b2 amd64        QEMU full 
system emulation binaries (x86)
ii  qemu-user                  1:10.0.8+ds-0+deb13u1+b2 amd64        QEMU user 
mode emulation (static binaries)
ii  qemu-utils                 1:10.0.8+ds-0+deb13u1+b2 amd64        QEMU 
utilities

I do have a bit of a mix of trixie and forky packages, including
libc6-2.42.16 from forky. Not sure if that could confuse resolution.

Regards,
/Niels

-- 
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.

Reply via email to