Hi Daniel,

after staring at the log output for a while longer, I now have a theory:

Quoting Johannes Schauer (2019-02-28 00:11:42)
> > Get:1 http://deb.debian.org/debian sid InRelease [242 kB]
> > Get:2 http://deb.debian.org/debian sid/main amd64 Packages [8366 kB]
> > Fetched 8608 kB in 2s (4984 kB/s)
> > Reading package lists...
> > W: Download is performed unsandboxed as root as file
> > '/root/sid/var/lib/apt/lists/partial/deb.debian.org_debian_dists_sid_InRelease'
> > couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission
> > denied)
> > apt-get update failed at /usr/bin/mmdebstrap line 569.

You probably have the permissions of /root set up such that it's non-readable
by any non-root user?

This would explain the error message because it would not allow the _apt user
to perform any operation in any subdirectory of /root including your chroot
directory.

Can you confirm that mmdebstrap root mode works if you are putting your chroot
directory somewhere where also non-root users have read permissions?

That would also mean that this is not a new problem but one that always has
existed. You probably not attempted to put the chroot into /root before you
upgraded to version 0.4.0?

You could also test if disabling the apt sandboxing feature fixes the problem
for you by adding the following option to mmdebstrap:

--aptopt='APT::Sandbox::User "root"'

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to