Skip to content

Instantly share code, notes, and snippets.

@laurens94
Created September 19, 2019 08:54
Show Gist options
  • Select an option

  • Save laurens94/82b50a8c62cee005446815830570b8bd to your computer and use it in GitHub Desktop.

Select an option

Save laurens94/82b50a8c62cee005446815830570b8bd to your computer and use it in GitHub Desktop.
vagrant up
Bringing machine 'drupal7' up with 'virtualbox' provider...
==> drupal7: Cloning VM...
==> drupal7: Matching MAC address for NAT networking...
==> drupal7: Checking if box 'geerlingguy/drupal-vm' version '2.0.3' is up to date...
==> drupal7: Setting the name of the VM: drupal7.test
==> drupal7: Fixed port collision for 22 => 2222. Now on port 2201.
==> drupal7: Clearing any previously set network interfaces...
==> drupal7: Preparing network interfaces based on configuration...
drupal7: Adapter 1: nat
drupal7: Adapter 2: hostonly
==> drupal7: Forwarding ports...
drupal7: 22 (guest) => 2201 (host) (adapter 1)
==> drupal7: Running 'pre-boot' VM customizations...
==> drupal7: Booting VM...
==> drupal7: Waiting for machine to boot. This may take a few minutes...
drupal7: SSH address: 127.0.0.1:2201
drupal7: SSH username: vagrant
drupal7: SSH auth method: private key
==> drupal7: Machine booted and ready!
[drupal7] GuestAdditions versions on your host (6.0.12) and guest (6.0.10) do not match.
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-4.15.0-45-generic is already the newest version (4.15.0-45.48).
The following packages were automatically installed and are no longer required:
python-asn1crypto python-cffi-backend python-crypto python-cryptography
python-enum34 python-httplib2 python-idna python-ipaddress python-jinja2
python-markupsafe python-paramiko python-pkg-resources python-pyasn1
python-setuptools python-six python-yaml sshpass
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
build-essential dpkg-dev fakeroot g++ g++-7 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot
libfile-fcntllock-perl libstdc++-7-dev
Suggested packages:
python3-apport menu debian-keyring g++-multilib g++-7-multilib gcc-7-doc
libstdc++6-7-dbg bzr libstdc++-7-doc
The following NEW packages will be installed:
build-essential dkms dpkg-dev fakeroot g++ g++-7 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot
libfile-fcntllock-perl libstdc++-7-dev
0 upgraded, 13 newly installed, 0 to remove and 4 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 45.8 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libstdc++-7-dev amd64 7.4.0-1ubuntu1~18.04.1 [1,468 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++-7 amd64 7.4.0-1ubuntu1~18.04.1 [7,574 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 g++ amd64 4:7.4.0-1ubuntu2.3 [1,568 B]
Ign:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdpkg-perl all 1.19.0.5ubuntu2.1
Ign:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.1
Get:6 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4,758 B]
Ign:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.4
Get:8 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5 [11.1 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
Err:4 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdpkg-perl all 1.19.0.5ubuntu2.1
404 Not Found [IP: 91.189.91.24 80]
Err:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.1
404 Not Found [IP: 91.189.91.24 80]
Err:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.4
404 Not Found [IP: 91.189.91.24 80]
Fetched 9,241 kB in 5s (1,737 kB/s)
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/d/dpkg/libdpkg-perl_1.19.0.5ubuntu2.1_all.deb 404 Not Found [IP: 91.189.91.24 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.19.0.5ubuntu2.1_all.deb 404 Not Found [IP: 91.189.91.24 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/d/dkms/dkms_2.3-3ubuntu9.4_all.deb 404 Not Found [IP: 91.189.91.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main i386 Packages [51.7 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [51.7 kB]
Get:6 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [516 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main Translation-en [24.3 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [373 kB]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [173 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [7,648 B]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [3,064 B]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [591 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:16 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [607 kB]
Hit:12 https://packagecloud.io/varnishcache/varnish61/ubuntu bionic InRelease
Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [202 kB]
Get:18 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4,904 B]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [4,152 B]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,396 B]
Get:21 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [739 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [585 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [266 kB]
Get:24 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [8,600 B]
Get:25 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [14.5 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [4,736 B]
Get:27 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,006 kB]
Get:28 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [979 kB]
Get:29 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [309 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [7,528 B]
Get:31 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6,788 B]
Get:32 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3,868 B]
Get:33 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [4,020 B]
Get:34 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4,020 B]
Get:35 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1,856 B]
Fetched 6,824 kB in 7s (987 kB/s)
Reading package lists...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-4.15.0-45-generic is already the newest version (4.15.0-45.48).
The following packages were automatically installed and are no longer required:
python-asn1crypto python-cffi-backend python-crypto python-cryptography
python-enum34 python-httplib2 python-idna python-ipaddress python-jinja2
python-markupsafe python-paramiko python-pkg-resources python-pyasn1
python-setuptools python-six python-yaml sshpass
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
build-essential dpkg-dev fakeroot g++ g++-7 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot
libfile-fcntllock-perl libstdc++-7-dev
Suggested packages:
python3-apport menu debian-keyring g++-multilib g++-7-multilib gcc-7-doc
libstdc++6-7-dbg bzr libstdc++-7-doc
The following NEW packages will be installed:
build-essential dkms dpkg-dev fakeroot g++ g++-7 libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl libfakeroot
libfile-fcntllock-perl libstdc++-7-dev
0 upgraded, 13 newly installed, 0 to remove and 89 not upgraded.
Need to get 887 kB/10.1 MB of archives.
After this operation, 45.8 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libdpkg-perl all 1.19.0.5ubuntu2.2 [211 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg-dev all 1.19.0.5ubuntu2.2 [607 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 dkms all 2.3-3ubuntu9.5 [68.1 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 887 kB in 2s (560 kB/s)
Selecting previously unselected package libstdc++-7-dev:amd64.
(Reading database ... 72109 files and directories currently installed.)
Preparing to unpack .../00-libstdc++-7-dev_7.4.0-1ubuntu1~18.04.1_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~18.04.1) ...
Selecting previously unselected package g++-7.
Preparing to unpack .../01-g++-7_7.4.0-1ubuntu1~18.04.1_amd64.deb ...
Unpacking g++-7 (7.4.0-1ubuntu1~18.04.1) ...
Selecting previously unselected package g++.
Preparing to unpack .../02-g++_4%3a7.4.0-1ubuntu2.3_amd64.deb ...
Unpacking g++ (4:7.4.0-1ubuntu2.3) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../03-libdpkg-perl_1.19.0.5ubuntu2.2_all.deb ...
Unpacking libdpkg-perl (1.19.0.5ubuntu2.2) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../04-dpkg-dev_1.19.0.5ubuntu2.2_all.deb ...
Unpacking dpkg-dev (1.19.0.5ubuntu2.2) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../05-build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (12.4ubuntu1) ...
Selecting previously unselected package dkms.
Preparing to unpack .../06-dkms_2.3-3ubuntu9.5_all.deb ...
Unpacking dkms (2.3-3ubuntu9.5) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../07-libfakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../08-fakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../09-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../10-libalgorithm-diff-xs-perl_0.04-5_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-5) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../11-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../12-libfile-fcntllock-perl_0.22-3build2_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build2) ...
Setting up libdpkg-perl (1.19.0.5ubuntu2.2) ...
Setting up libstdc++-7-dev:amd64 (7.4.0-1ubuntu1~18.04.1) ...
Setting up libfile-fcntllock-perl (0.22-3build2) ...
Setting up dpkg-dev (1.19.0.5ubuntu2.2) ...
Setting up dkms (2.3-3ubuntu9.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up g++-7 (7.4.0-1ubuntu1~18.04.1) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libalgorithm-diff-xs-perl (0.04-5) ...
Setting up g++ (4:7.4.0-1ubuntu2.3) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.4ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: device write-protected, mounted read-only.
Installing Virtualbox Guest Additions 6.0.12 - guest version is 6.0.10
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.10 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.15.0-45-generic.
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
An error occurred during installation of VirtualBox Guest Additions 6.0.12. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
Unmounting Virtualbox Guest Additions ISO from: /mnt
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 6.0.10
VBoxService inside the vm claims: 6.0.12
Going on, assuming VBoxService is correct...
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims: 6.0.10
VBoxService inside the vm claims: 6.0.12
Going on, assuming VBoxService is correct...
==> drupal7: Checking for guest additions in VM...
==> drupal7: [vagrant-hostsupdater] Checking for host entries
==> drupal7: [vagrant-hostsupdater] Writing the following entries to (/etc/hosts)
==> drupal7: [vagrant-hostsupdater] 192.168.88.88 drupal7.test # VAGRANT: a794c6b9717db445099db492606a8d86 (drupal7) / 63613f8a-c7b0-45f1-98a5-e78c2ba61a1b
==> drupal7: [vagrant-hostsupdater] 192.168.88.88 drupal7.test www.drupal7.test # VAGRANT: a794c6b9717db445099db492606a8d86 (drupal7) / 63613f8a-c7b0-45f1-98a5-e78c2ba61a1b
==> drupal7: [vagrant-hostsupdater] 192.168.88.88 adminer.drupal7.test # VAGRANT: a794c6b9717db445099db492606a8d86 (drupal7) / 63613f8a-c7b0-45f1-98a5-e78c2ba61a1b
==> drupal7: [vagrant-hostsupdater] 192.168.88.88 xhprof.drupal7.test # VAGRANT: a794c6b9717db445099db492606a8d86 (drupal7) / 63613f8a-c7b0-45f1-98a5-e78c2ba61a1b
==> drupal7: [vagrant-hostsupdater] 192.168.88.88 pimpmylog.drupal7.test # VAGRANT: a794c6b9717db445099db492606a8d86 (drupal7) / 63613f8a-c7b0-45f1-98a5-e78c2ba61a1b
==> drupal7: [vagrant-hostsupdater] 192.168.88.88 192.168.88.88 dashboard.drupal7.test # VAGRANT: a794c6b9717db445099db492606a8d86 (drupal7) / 63613f8a-c7b0-45f1-98a5-e78c2ba61a1b
==> drupal7: [vagrant-hostsupdater] This operation requires administrative access. You may skip it by manually adding equivalent entries to the hosts file.
Password:
==> drupal7: Setting hostname...
==> drupal7: Configuring and enabling network interfaces...
==> drupal7: Exporting NFS shared folders...
==> drupal7: Preparing to edit /etc/exports. Administrator privileges will be required...
==> drupal7: Mounting NFS shared folders...
==> drupal7: Running provisioner: drupalvm (ansible_local)...
drupal7: Installing Ansible...
drupal7: Installing pip... (for Ansible installation)
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
pip install --upgrade ansible
Stdout from the command:
Stderr from the command:
bash: line 5: pip: command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment