Roots Discourse

Issues with Getting Started in Local Dev (apt-get related issue?)

Hi Roots.io Community,

I have been working on a couple of non-roots related projects for a while and have stepped out of keeping my local environments as up to date as they should be. I have been trying to spin up a new instance for a couple of hours now, and I think the issues might be related to Catalina, but I am frankly not as much of an expert as I need to be solve this issue.

The problem I face occurs when vagrant attempts to install the Bindfs for the VM, however the set-up immediately fails and let’s me know that the issue is with the get-apt command, which with Homebrew has never been an issue for me. I am not quite sure what the root problem is, and have been at this for a couple of hours now with no success. Any assistance would be greatly appreciated here, as I am not quite sure what to attempt next. I have only been using the trellis/bedrock/sage frameworks for about a year and have been working as a web developer for just a couple of years longer, so your patience and grace would be greatly appreciated. Below is a complete readout of the error I receive. I can provide logs at request if need be.

==> default: Checking for bindfs in VM...
default: Package manager detected: apt-get
default: Fuse kernel module is installed
default: Fuse kernel module is loaded
==> default: Bindfs seems to not be installed on the virtual machine, installing now
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

apt-get update

Stdout from the command:

Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [618 kB]

The error continues, however since there are multiple links in the readout and I had to recreate my discourse account, I cannot post the complete readout without a greater trust level. :frowning:

In a possibly related thread, when I try to provision after booting up the VM, I run into the following issue:

TASK [common : Update apt packages] ********************************************
System info:
Ansible 2.9.1; Vagrant 2.2.6; Darwin
Trellis Head
---------------------------------------------------
Failed to update apt cache: E:Failed to fetch
http://security.ubuntu.com/ubuntu/dists/bionic-security/main/binary-amd64/by-
hash/SHA256/0bb6332441494b83f88ddfbb1c97fb7d3beb9e51a17af7edaebd3da5955b3330
File has unexpected size (13247 != 576100). Mirror sync in progress? [IP:
91.189.88.149 80]
Hashes of expected file:
- Filesize:576100 [weak]
- SHA256:0bb6332441494b83f88ddfbb1c97fb7d3beb9e51a17af7edaebd3da5955b3330
- SHA1:8772118fb8aa1a54e3ce8addc6ce06329895014c [weak]
- MD5Sum:58f86dd97517ca144febe8fc13457f10 [weak]
Release file created at: Thu, 28 Nov 2019 21:05:37 +0000