Table of contents

Problems provisioning and fetching packages in VM


Make sure you are running the latest versions of VirtualBox and Vagrant. Specifically, Vagrant 1.8.x versions have known issues with provisioning.

GOV.UK has an apt repository at []. This is not accessible on the internet, so if you’re trying to provision the virtual machine outside of the GDS office, you will need to connect to the VPN before running vagrant provision.

You may also need to run sudo apt-get update if you get errors such as:

E: Unable to locate package rbenv-ruby-2.4.0
E: Couldn't find any package by regex 'rbenv-ruby-2.4.0'

Bundler permissions error on provision

If you see the following error when running vagrant up or vagrant provision:

/usr/lib/ruby/1.9.1/fileutils.rb:247:in 'mkdir': Permission denied - /Users (Errno::EACCES)`

Make sure that no bundler config already exists (if you have bundled outside of the development VM).

You can remove this in the govuk-puppet directory:

rm -r ~/govuk/govuk-puppet/.bundle

librarian:install fails due to permission errors

If you see chown/OperationNotPermitted errors during the librarian:install rake task, try running vagrant provision on your host machine.

This page was last reviewed on 12 March 2019. It needs to be reviewed again on 12 September 2019 by the page owner #govuk-2ndline .
This page was set to be reviewed before 12 September 2019 by the page owner #govuk-2ndline. This might mean the content is out of date.