On Wed, Aug 01, 2018 at 02:50:14PM -0700, Tabor Kelly wrote:
> Hello,
> 
> What I really want is for this to work (it works without the --source-dir):
> 
> mkdir packages && multistrap -f /usr/share/multistrap/stretch.conf -d
> ./chroot --source-dir ./packages > multistrap_log.txt 2>&1
> 
> However, apt-get fails to find the source packages, but I can't figure
> out why. I copied /usr/sbin/multistrapand edited it to see that this is
> the command that is failing:
> 
> APT_CONFIG=/tmp/multistrap.I7F4HN apt-get  -o Apt::Architecture=amd64 -o
> Dir::Etc::TrustedParts=/work/multistrap.debug/chroot/etc/apt/trusted.gpg.d
> -o Dir::Etc::Trusted=/work/multistrap.debug/chroot/etc/apt/trusted.gpg
> -o Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o
> Dir=/work/multistrap.debug/chroot/ -o
> Dir::Etc=/work/multistrap.debug/chroot/etc/apt/ -o
> Dir::Etc::Parts=/work/multistrap.debug/chroot/etc/apt/apt.conf.d/ -o
> Dir::Etc::PreferencesParts=/work/multistrap.debug/chroot/etc/apt/preferences.d/
> -o APT::Default-Release='*' -o
> Dir::State=/work/multistrap.debug/chroot/var/lib/apt/ -o
> Dir::State::Status=/work/multistrap.debug/chroot/var/lib/dpkg/status -o
> Dir::Cache=/work/multistrap.debug/chroot/var/cache/apt/ -d source acl


The errors below seem to be hunting for "source" packages. Perhaps
you are missing an option to add apt sources for "source" packages?

(I haven't used multistrap sorry.)


...
> Reading package lists...
> E: Unable to find a source package for debian-archive-keyring
> Reading package lists...
> E: Unable to find a source package for debianutils
> Reading package lists...
> E: Unable to find a source package for diffutils
> Reading package lists...
> E: Unable to find a source package for dpkg
...
> Multistrap system installed successfully in /work/multistrap/chroot/.


> deb [arch=amd64] http://http.debian.net/debian stretch main
> deb-src http://http.debian.net/debian stretch main

Are these two lines part of the log, or did you add them to that log?


(Also, I recommend running an apt (or squid) proxy, so that you don't
 re-download packages unnecessarily.)


Good luck,

Reply via email to