Re: Question why multiarch is considered by apt 3.1.16, investigation of a problem in mkosi
Johannes Schauer Marin Rodrigues <[email protected]> Thu, 26 Mar 2026 11:33:28 +0100
| Newsgroups | gmane.linux.debian.apt.devel |
|---|---|
| Message-ID | <177452120878.3821.15457407517877620064@localhost> |
Hi, Quoting Wagner Andre (2026-03-26 11:04:42) > For solving this problem I replaced '?essential' by '?essential > ?architecture(amd64)', now only "amd64" packages are considered and the > install works. > > Can someone explain to me why this happens and if the workaround i did is a > good idea or are there better and more reliable solutions? this is because ?essential select packages which have Essential:yes and that matches packages from any architecture. In mmdebstrap we are using: ?narrow(...,?architecture(...),?essential) Note also how some configuration settings to apt have to be specified via a configuration file passed to it with the APT_CONFIG environment variable. This is because settings like Dir::Etc are evaluated *before* apt takes command line arguments into account. Does your /etc outside /buildroot maybe include armhf? For example, look at the man page of mmdebstrap in the section OPERATION to see a minimal example for how to set up a minimal chroot with apt only. Note how that example is not using apt options like you do but creates a temporary configuration file and passes that to apt via APT_CONFIG. > This e-mail and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to which they are addressed. > If you are not the intended addressee, or the person responsible for > delivering it to them, you may not copy, forward, disclose, or otherwise use > it or any part of it in any way. To do so may be unlawful. If you receive > this e-mail by mistake, please advise the sender immediately. You posted your message to a public mailing list and thus your message is already copied and available to many others even outside this list. Thanks! cheers, josch
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmnFC3MACgkQ8sulx4+9 g+FPIRAAjnygWnAZRMWp0EwafCWKCMRIp52ntVcpuBHYb0Kxkr4Fm0fow0y9Utnw B+Js8D5KiPsnDCgdSqDdCJVTt6XXQxRsBF0gKOk9GIV20VHcUrpPEWOzTAtQXGJB YN+rii89eO1KcrZzblAXaA9sLwVF0S9zWF/39sCiCqkxCGkhIqZJfRdjVmyntjB8 21EzFvwVR5+VlLwj/U1DVuY/XaNwO6x9L7lXdMxdon8/VZwSUv5v7w48rThrTU3d uo68gUdGRoUeBLKbvmWwgmFnk3s3CAgbrUGZRVxrHkVqXkB0b9Bsp3x0iw6S1QQ5 kPsFGn9OYtjCJzKfM4tBOcwo7sDS4oXPwiQnyFYnzGHim1ANmFSa+srx7wMEPNkV rrpLAgHzg0dA9EgHpFlQiafxqqMFdL1mKbBvfG74eSD7zj9d3m87kwUIIEOv+mS/ jJe9hly8SVVtN8uTrNef3D15GsffVOGJgWKv1gYHTCu5CcPXWtof3fBmD/vz94fV zbzwzCfAVH6pxXpW5rUgOcpEaw0fcFPu0Cnocm3ILrYQwhn2vo+Np7ciSwUYddl8 uCJOeY3uzKuT4lKsy2fsQllcVum+VuB0mk/F4HkcI88vi52u0W5HGb7Nteq4g1l6 udQE/QsFyjBcX28H3mtcu/nC/1ErG1AQyh4j8gv53WZRcYLf3o0= =bXKc -----END PGP SIGNATURE-----