Article View: linux.debian.bugs.dist
Article #16Bug#1135708: Should $MMDEBSTRAP_APT_CONFIG deal with Dir::Aptitude::State?
From: Johannes Schauer Marin Rodrigues
Date: Wed, 07 Oct 2026 08:20
Date: Wed, 07 Oct 2026 08:20
72 lines
4651 bytes
4651 bytes
--===============1125942577832086571== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Quoting Trent W. Buck (2026-05-05 04:00:02) > When debugging an mmdebstrap build, I occasionally want an interactive ap= titude GUI. > Using $MMDEBSTRAP_APT_CONFIG, I can do this without bothering to install = aptitude inside the built environment. >=20 > This works with minor issues: >=20 > mmdebstrap forky /dev/null --customize-hook=3D'APT_CONFIG=3D$MMDEBSTR= AP_APT_CONFIG aptitude' >=20 > This works with no issues: >=20 > mmdebstrap forky /dev/null --customize-hook=3D'APT_CONFIG=3D$MMDEBSTR= AP_APT_CONFIG HOME=3D$1/root aptitude -oDir::Aptitude::State=3Dvar/lib/apti= tude' --essential-hook=3D'mkdir -p $1/var/lib/aptitude' >=20 > or >=20 > mmdebstrap forky /dev/null --customize-hook=3D'APT_CONFIG=3D$MMDEBSTR= AP_APT_CONFIG HOME=3D$1/root aptitude -oDir::Aptitude::State=3Dvar/lib/apti= tude' --include=3Daptitude >=20 > Should mmdebstrap set Dir::Aptitude::State "var/lib/aptitude" in MMDEBSTR= AP_APT_CONFIG? did you consider running aptitude inside a --chrooted-customize-hook? THen = you don't need neither APT_CONFIG nor Dir::Aptitude::State. The way you are run= ning mmdebstrap above means that you install aptitude inside the chroot but then= you are running aptitude from *outside* the chroot. If you have aptitude inside= the chroot anyways, why not run that one? It would also be a bit shorter: mmdebstrap forky /dev/null --chrooted-customize-hook=3Daptitude Thanks! cheers, josch --===============1125942577832086571== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrF/l8ACgkQ8sulx4+9 g+EUNxAAlr5Nn2jWv5Y9dcocaGRXusRRBYfg9aCiNglyZ6uVzRLILn9bCgDITIq/ 6cLjA9hwYwgBO6HakWO+ozeeboEmuI4coJrqLrEXJJ03HT91hO6dmkfeF0SADvFn c5KPqjlkA+vULYfyyK72aEECrzL9aem52oFSlMmyaSzbMeKp0ddu5pjpUES1Eush K/+0YLCRPSwGpsNjlj+zoIRPVBlv42atNH+cQAZDTHAOnFoPqd9yeMYv9tpwpVqa QOFHBwaoXEpEA+1a4b9Ml/0LFNZuyiSuuxxgfVZfQEd4ME29CkMrD8ifwEhu7btB VDXPOVCe9T6TWNcyancbDJGSpNBB+v+tm4JgKQUog3IR+R0OTFJ7qBU/oQgPZrL6 hsswQjbTJTc6hCxqzZyyXdfWfheCKr1GIvvcFzALWRjpzS2VUeK+C6FpaaLGzr8c zpCA2YzpT/8wadLxmPiTu/JTAm4gCu+ZRZUDIcp/6kVd0aI6rDiSFFWd8WKfIKwu y6+szRNZr2thVks0NG6WUfIAiEzd71DyRcwZLNEyZuCLd78dDE2YMCWK/QAqup9v vscx0BloqO64x4UQHz1fc3NqE+CP8DlAA3Y2THwjJaKDHaKxHuaBF9Aq0fFm3A6H z0Lee+6EEtzTIzS2UaRJsV8I1KAr6WVsX1KNknifgI7isBc5mn4= =XalB -----END PGP SIGNATURE----- --===============1125942577832086571==--
Technical Details
Message-ID:
<NLv2x-42LO-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<MRdot-2Fn0-1@gated-at.bofh.it> <MRdot-2Fn0-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Johannes Schauer Marin Rodrigues <josch@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1135708: Should $MMDEBSTRAP_APT_CONFIG deal with Dir::Aptitude::State? Date: Wed, 07 Oct 2026 10:20:01 +0200 Message-ID: <NLv2x-42LO-1@gated-at.bofh.it> References: <MRdot-2Fn0-1@gated-at.bofh.it> <MRdot-2Fn0-1@gated-at.bofh.it> X-Original-To: 1135708@bugs.debian.org, Trent W. Buck <trentbuck@gmail.com> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 7 08:13:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Johannes Schauer Marin Rodrigues <josch@debian.org>, 1135708@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: josch@debian.org X-Debian-Pr-Message: followup 1135708 X-Debian-Pr-Package: mmdebstrap X-Debian-Pr-Source: mmdebstrap Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============1125942577832086571==" MIME-Version: 1.0 Content-Disposition: inline User-Agent: alot/0.0.0 X-Debian-User: josch X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995500 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 72 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 07 Oct 2026 10:10:10 +0200 X-Original-Message-ID: <179136061060.21057.7508895816310474707@localhost> X-Original-References: <177794640233.1352345.15973565201487935235.reportbug@hera> <177794640233.1352345.15973565201487935235.reportbug@hera>