Hi Sergey, I had the same problem recently in my case the problem was
caused by a fs error because i did the debootstrap in a ntfs fs,(it
caused a permission error). When i repeated the process in an ext4
partition the problem got solved.
Hope it will be the same problem.
On 02/05/16 07:05, Sergey Fedorov wrote:
Hi,
I can't make jessie chroot system for mips or mipsel. How I do:
# Prepare chroot
prepare_chroot() {
suit=$1
target=$2
chroot_name=$3
arch=${4:-`dpkg --print-architecture`}
extra_packages="ccache"
user=`id -un`
root_user=$user
if test "$arch" != "`dpkg --print-architecture`"; then
foreign=true
debootstrap_extra_opts="$debootstrap_extra_opts
--arch=$arch --foreign"
fi
case $suit in
jessie|sid) mirror="http://httpredir.debian.org/debian/" ;;
esac
sudo su -c '\
mkdir -p '$target' &&
debootstrap --variant=buildd '"$debootstrap_extra_opts"'
--include='$extra_packages' '$suit' '$target' '$mirror' &&
tee /etc/schroot/chroot.d/'$chroot_name'.conf >/dev/null <<EOF
['$chroot_name']
directory='$target'
type=directory
users='$user'
root-users='$root_user'
EOF
'
if test -n "$foreign"; then
schroot -c $chroot_name -u root --
/debootstrap/debootstrap --second-stage
fi
}
prepare_chroot jessie /srv/chroot/jessie-mips jessie-mips mips
What I get:
W: Failure while configuring required packages.
W: See //debootstrap/debootstrap.log for details (possibly the
package package is at fault)
debootstrap.log is here: http://paste.debian.net/678886/
I can't figure out myself what's going wrong. Could anybody help me or
I'd better report a bug?
Kind regards,
Sergey