Re: Trouble with multistrap and even apt-get

2018-08-02 Thread Zenaan Harkness
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,



Trouble with multistrap and even apt-get

2018-08-01 Thread Tabor Kelly

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

I can reproduce this on the command-line. If I do the (carefully
crafted) apt-get update and then this apt-get source I see the same
failure, but I'm really scratching my head as to why? I can see the
deb-src line in
/work/multistrap/chroot/etc/apt/sources.list.d/multistrap-debian.list,
If I strace apt-get install source I can see it opening
/work/multistrap.debug/chroot/var/lib/apt/lists/http.debian.net_debian_dists_stretch_main_source_Sources.lz4.
If I decompress
http.debian.net_debian_dists_stretch_main_source_Sources.lz4 I see the
package that it says that it can't find.

What am I missing? I am happy to find a place to post any of the files
that people are interested in looking at.

Thanks,

Tabor

PS - This is on an up-to-date stretch system but I also saw the same
behavior on my Ubuntu 18.04 system.

Statement of Confidentiality

The contents of this e-mail message and any attachments are confidential and 
are intended solely for the addressee. The information may also be legally 
privileged. This transmission is sent in trust, and the sole purpose of 
delivery to the intended recipient. If you have received this transmission in 
error, any use, reproduction or dissemination of this transmission is strictly 
prohibited. If you are not the intended recipient, please immediately notify 
the sender by reply e-mail or at 508-535-5100 and delete this message and its 
attachments, if any.
multistrap 2.2.9 using /usr/share/multistrap/stretch.conf
multistrap 2.2.9 using /usr/share/multistrap/stretch.conf
Defaulting architecture to native: amd64
multistrap building amd64 multistrap on 'amd64'
I: Setting /work/multistrap/chroot/lib64 -> /work/multistrap/chroot/lib 
symbolic link.
I: Downloading debian-archive-keyring 
Get:1 http://deb.debian.org/debian stretch/main amd64 debian-archive-keyring 
all 2017.5 [56.4 kB]
Fetched 56.4 kB in 0s (420 kB/s)
W: Download is performed unsandboxed as root as file 
'/work/multistrap/debian-archive-keyring_2017.5_all.deb' couldn't be accessed 
by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Getting package lists: APT_CONFIG=/tmp/multistrap.QCJ7PU apt-get  -o 
Apt::Architecture=amd64 -o 
Dir::Etc::TrustedParts=/work/multistrap/chroot/etc/apt/trusted.gpg.d -o 
Dir::Etc::Trusted=/work/multistrap/chroot/etc/apt/trusted.gpg -o 
Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o 
Dir=/work/multistrap/chroot/ -o Dir::Etc=/work/multistrap/chroot/etc/apt/ -o 
Dir::Etc::Parts=/work/multistrap/chroot/etc/apt/apt.conf.d/ -o 
Dir::Etc::PreferencesParts=/work/multistrap/chroot/etc/apt/preferences.d/ -o 
APT::Default-Release='*' -o Dir::State=/work/multistrap/chroot/var/lib/apt/ -o 
Dir::State::Status=/work/multistrap/chroot/var/lib/dpkg/status -o 
Dir::Cache=/work/multistrap/chroot/var/cache/apt/ update
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:2 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main Sources [6758 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7099 
kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main Translation-en [5393 
kB]
Fetched 19.4 MB in 3s (6107 kB/s)
Reading package lists...
I: Calculating required packages.
APT_CONFIG=/tmp/multistrap.QCJ7PU apt-get  -o Apt::Architecture=amd64 -o 
Dir::Etc::TrustedParts=/work/multistrap/chroot/etc/apt/trusted.gpg.d -o 
Dir::Etc::Trusted=/work/multistrap/chroot/etc/apt/trusted.gpg -o 
Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o 
Dir=/work/multistrap/chroot/ -o Dir::Etc=/work/multistrap/chroot/etc/apt/ -o 
Dir::Etc::Parts=/work/multistrap/chroot/etc/apt/apt.conf.d/ -o 
Dir::Etc::PreferencesParts=/work/multistrap/chroot/etc/apt/preferences.d/ -o 
APT::Defau