Hi,

Quoting Benjamin Drung (2019-11-13 19:39:32)
> Am Mittwoch, den 13.11.2019, 19:25 +0100 schrieb Johannes Schauer:
> > Quoting Benjamin Drung (2019-11-13 19:22:14)
> > > mmdebstrap fails to remove all APT list files at the cleanup stage.
> > > APT
> > > list files for /etc/apt/sources.list.d/*.list remain in image. You
> > > can
> > > reproduce it by running:
> > > 
> > > mmdebstrap --keyring=/usr/share/keyrings/debian-archive-keyring.gpg 
> > > \
> > >   -v --component=main \
> > >   --setup-hook="echo \"deb http://deb.debian.org/debian $suite
> > > contrib\" > \"\$1/etc/apt/sources.list.d/example.list\""
> > >   buster /tmp/buster.tar.xz
> > > 
> > 
> > why do you think this is a bug?
> 
> Since mmdebstrap echos "cleaning package lists and apt cache..." and
> runs
> 
>    apt-get --option Dir::Etc::SourceList=/dev/null update
> 
> Running 'rm -rf "$0/var/lib/apt/lists/"*' in a customize hook has no effect.

yes, /etc/apt/sources.list.d/*.list files remain in the image.

files in /var/lib/apt/lists/ get purged by running "apt-get --option
Dir::Etc::SourceList=/dev/null update".

Where is the bug?

Would you have expected that package lists remain in the result? Would you have
expected that sources lists get removed?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to