Error while preparing VM using Vagrant

Hello,

I’m facing a problem where the process of building a VM using Vagrant halts due to an error with the installation of zlib1g:i386:

bionic: + sudo apt-get install -y bc libtool-bin gperf bison flex texi2html texinfo help2man gawk libtool build-essential automake libglib2.0-dev libfdt-dev device-tree-compiler qemu-user-static binfmt-support multistrap git lib32z1 lib32stdc++6 libssl-dev kpartx dosfstools nfs-common zerofree u-boot-tools rpm2cpio curl libsdl1.2-dev libpixman-1-dev libc6-dev chrpath socat zlib1g-dev zlib1g:i386 unzip rsync python3-pip gcc-multilib xterm net-tools libidn11 ninja-build python3-testresources libncurses5-dev lib32ncurses5
    bionic: Reading package lists...
    bionic: Building dependency tree...
    bionic: Reading state information...
    bionic: E: Unable to locate package zlib1g:i386
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Using vagrant reload afterwards completes the process of creating the VM, but the VM itself is just a shell terminal with no GUI.

image

Is there any way to avoid this issue and complete the VM set up correctly?

Thank you

1 Like

Hi there,

Someone pointed out this package in an issue comment here, I haven’t tested this yet but you might be able to re-include that line and see if it fixes the issue.

Thanks
Shawn

1 Like

Thanks! Adding the following to setup_host.sh fixed the issue:

sudo dpkg --add-architecture i386
sudo apt-get update
2 Likes