[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debootstrap and using /var/cache/apt/archives as --cache-dir

On Thu, 12 Apr 2018 10:41:57 +0200
Raphael Hertzog <hertzog@debian.org> wrote:
> 1/ You will put files there but what happens if "apt-get clean" is run in
> a cron job while you are running debootstrap ?
> 2/ APT stores files there with a naming policy of its own (for instance
> it adds the epoch to the version) and you are not respecting that policy
> and you can run into trouble due to this. APT is able to clean up files
> it puts there, but it might not be able to clean up files put there by
> others in particular when their name is not consistent with what it uses.
> 3/ debootstrap ought to be usable on any machine to bootstrap any
> distribution, what happens if /var/cache/apt/archives contains ubuntu
> packages (same name, same version, recompiled for ubuntu) and you want to
> bootstrap debian and not ubuntu ? You will remove the pre-existing file
> and put there a Debian package, breaking APT's cache.
> For all those reasons, I'm really sure that it is not a good idea
> to enable that directory as default --cache-dir.

 Thanks, 1 is rare, but 2 and 3 sound reasonable.
 Then, can we make any directories for cache option by default?


 Hideki Yamane     henrich @ debian.org/iijmio-mail.jp

Reply to: