I’m trying to use the vyos-build Dockerfile to build some virtualization images, but unfortunately I’m not even getting as far as successfully building the Docker image. The last relevant bits of the console output are:
debconf: delaying package configuration, since apt-utils is not installed
Fetched 995 MB in 6min 6s (2716 kB/s)
(Reading database ... 7624 files and directories currently installed.)
Preparing to unpack .../perl-base_5.20.2-3+deb8u12_amd64.deb ...
Unpacking perl-base (5.20.2-3+deb8u12) over (5.20.2-3+deb8u11) ...
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.20.2-3+deb8u12_amd64.deb (--unpack):
unable to make backup link of `./usr/bin/perl' before installing new version: Invalid cross-device link
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: error: error creating new backup file '/var/lib/dpkg/status-old': Invalid cross-device link
E: Sub-process /usr/bin/dpkg returned an error code (2)
The command '/bin/sh -c echo 'deb http://ftp.debian.org/debian jessie-backports main' | tee -a /etc/apt/sources.list && apt-get update && apt-get install -y vim git make live-build pbuilder devscripts python3-pystache squashfs-tools autoconf dpkg-dev syslinux genisoimage lsb-release fakechroot kernel-package libtool libglib2.0-dev libboost-filesystem-dev libapt-pkg-dev flex bison libperl-dev libnfnetlink-dev python3-git parted kpartx jq qemu-system-x86 qemu-utils quilt python3-lxml python3-setuptools python3-nose python3-coverage' returned a non-zero code: 100
I’m using vyos-build git revision 8c94c80. I will give this a go using a full Debian VM, but having the Docker work would be much more convenient.