Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #167355 > unrolled thread

debootstrap mips jessie failure

Started bySergey Fedorov <serge.fdrv@gmail.com>
First post2016-05-02 14:30 +0200
Last post2016-05-05 21:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  debootstrap mips jessie failure Sergey Fedorov <serge.fdrv@gmail.com> - 2016-05-02 14:30 +0200
    Re: debootstrap mips jessie failure Diddier Hilarion <diddierhilarion@gmail.com> - 2016-05-05 21:00 +0200

#167355 — debootstrap mips jessie failure

FromSergey Fedorov <serge.fdrv@gmail.com>
Date2016-05-02 14:30 +0200
Subjectdebootstrap mips jessie failure
Message-ID<rul97-3f2-3@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

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

[toc] | [next] | [standalone]


#167510

FromDiddier Hilarion <diddierhilarion@gmail.com>
Date2016-05-05 21:00 +0200
Message-ID<rvwFb-5rr-5@gated-at.bofh.it>
In reply to#167355
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
>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web