apt installs non necessary packets, even with --mode=custom
#23
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Using a number of modified packages, I have been able to produce a runnable VM image where no package either factually requires or formally
Depends
orperl-base
.However, for unknown reasons, apt decides that
perl-base
is nevertheless needed and decides to install it.The use of
--mode=custom
should prevent the inclusion of essential packages. How come apt still believes thatperl-base
is needed if no package depends on it?Expectation
apt should not install
perl-base
.Actual result
apt includes
perl-base
in the list of packages to install.Environment
Log (highlights)
mmdebstrap:
No packages in the VM require
perl-base
:How to reproduce
To reproduce this bug you'll need a bunch of custom packages that can be found (as
equivs
control files) at https://salsa.debian.org/gioele/debian-vm-minimal-pkgs. The followingmmdebstrap
invocation assues that these packages are served fromhttp://localhost:8000/
. The root custom package that list all essential packages isdebian-vm-minimal
.It is likely a problem on your end and not with mmdebstrap. You also don't need
--aptopt='Apt::Install-Recommends "false"'
because mmdebstrap doesn't install Recommends by default. To figure out why perl-base gets installed in your case, please supply the EDSP document of your apt installation request like so:And then attach
/tmp/dump.edsp
to this issue. Thanks!Thank you for the support. The dumped EDSP document is at https://anonfiles.com/f5KdL7Mdx3/deb-vm-min-perl_edsp.
PS: feel free to close this issue, I will report it "upstream" as an apt issue.
I'm closing this because this turned out to be an issues in APT and not in mmdebstrap.
Going forward, some debug aid in mmdebstrap like the one proposed in !24 could help debugging this sort of issues.