Hi Richard,

Quoting Richard Lewis (2024-12-24 15:22:56)
> On Tue, 24 Dec 2024, 13:21 Jochen Sprickerhof, <jspri...@debian.org> wrote:
> 
> > Control: tags -1 + moreinfo
> >
> > Hi Richard,
> >
> > * Richard Lewis <richard.lewis.deb...@googlemail.com> [2024-12-22 20:43]:
> > >I make a chroot with
> > >mmdebstrap --variant=buildd bookworm
> > --include=eatmydata,debhelper,fakeroot,apt-utils
> > ~/.cache/sbuild/bookworm-amd64.tar \
> > >  http://deb.debian.org/debian --aptopt='Acquire::http { Proxy "
> > http://127.0.0.1:3142";; }'
> > >
> > >This has nothing in /var/lib/apt/lists
> > >
> > >If i set $apt_update=0 in .sbuild and do include not pass -U to
> > $autopkgtest_opts then --run-autopkgtest doesnt work,
> > >because no test dependencies can be downloaded: the chroot session thinks
> > everything is a virtual package
> > >
> > >If i add --skip=cleanup/apt/lists to mmdebstrap it all works again
> >
> > This seems to all work as expected, can you describe how you think it
> > should work and where the issue is?
> >
> 
> ok if that's the intent then maybe this is just a lack of documentation.

I do not yet understand what there is to document. What were you trying to do?
I would've thought it's common knowledge that apt cannot install packages
without having run "apt update" first?

If you always want to pass --skip=cleanup/apt/lists then maybe putting this
into your ~/.sbuildrc can help:

$unshare_mmdebstrap_extra_args = $conf->_get('UNSHARE_MMDEBSTRAP_EXTRA_ARGS');
push @$unshare_mmdebstrap_extra_args, "*", ['--skip=cleanup/apt/lists'];

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to