3. debootstrap stage2
$ sudo mount --bind /proc ubuntu/proc
$ sudo mount --bind /dev ubuntu/dev
$ sudo mount --bind /sys ubuntu/sys
$ sudo cp /usr/bin/qemu-arm-static ubuntu/usr/bin
$ sudo chroot ubuntu
(inside chroot)
$ /debootstrap/debootstrap --second-stage
I: Keyring file not available at /usr/share/keyrings/ubuntu-archive-keyring.gpg; switching to https mirror https://mirrors.kernel.org/debian
I: Installing core packages...
I: Unpacking required packages...
........snip..........
W: Failure while unpacking required packages. This will be attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/bash_4.4-5ubuntu1_armhf.deb is at fault)
From /debootstrap/debootstrap.log)
dpkg: warning: ignoring pre-dependency problem!
Preparing to unpack .../bash_4.4-5ubuntu1_armhf.deb ...
preinst: ../sysdeps/unix/sysv/linux/spawni.c:368: __spawnix: Assertion `ec >= 0' failed.
qemu: uncaught target signal 6 (Aborted) - core dumped
dpkg: error processing archive /var/cache/apt/archives/bash_4.4-5ubuntu1_armhf.deb (--unpack):
new bash package pre-installation script subprocess was killed by signal (Aborted), core dumped
Hi,
I have same error when I tried to run debootstrap --second-stage.
Anyone who have the solution?
Here is my test sequence.
1. Environment
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
$ $ uname -a
Linux cometzero-ubuntu 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
2. debootstrap stage1 ports.ubuntu. com
$ sudo debootstrap --verbose --foreign --arch armhf bionic ./ubuntu http://
3. debootstrap stage2 qemu-arm- static ubuntu/usr/bin
$ sudo mount --bind /proc ubuntu/proc
$ sudo mount --bind /dev ubuntu/dev
$ sudo mount --bind /sys ubuntu/sys
$ sudo cp /usr/bin/
$ sudo chroot ubuntu
(inside chroot) debootstrap --second-stage keyrings/ ubuntu- archive- keyring. gpg; switching to https mirror https:/ /mirrors. kernel. org/debian
$ /debootstrap/
I: Keyring file not available at /usr/share/
I: Installing core packages...
I: Unpacking required packages...
....... .snip.. ....... .
W: Failure while unpacking required packages. This will be attempted up to five times. debootstrap. log for details (possibly the package /var/cache/ apt/archives/ bash_4. 4-5ubuntu1_ armhf.deb is at fault)
W: See //debootstrap/
From /debootstrap/ debootstrap. log)
dpkg: warning: ignoring pre-dependency problem! 4.4-5ubuntu1_ armhf.deb ... unix/sysv/ linux/spawni. c:368: __spawnix: Assertion `ec >= 0' failed. apt/archives/ bash_4. 4-5ubuntu1_ armhf.deb (--unpack):
Preparing to unpack .../bash_
preinst: ../sysdeps/
qemu: uncaught target signal 6 (Aborted) - core dumped
dpkg: error processing archive /var/cache/
new bash package pre-installation script subprocess was killed by signal (Aborted), core dumped