reidab/citizenry — Issue #63: vagrant can't run apt-get
Author: tjgillies
Created: 2011-12-22 23:49:20+00:00
State: open

/Users/tyler/citizenry> vagrant up
[default] Importing base box 'lucid32'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.1.0
VirtualBox Version: 4.1.8
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- ssh: 22 => 2222 (adapter 1)
[default] -- http: 80 => 8080 (adapter 1)
[default] -- rails: 3000 => 8000 (adapter 1)
[default] Creating shared folders metadata...
[default] Running any VM customizations...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- vagrant: /vagrant
[default] -- vagrant-apt-cache: /var/cache/apt
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[default] stdin: is not a tty
: stderr
[default] [Thu, 22 Dec 2011 15:47:01 -0800] INFO: *** Chef 0.10.2 ***
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: Setting the run_list to ["recipe[vagrant]"] from JSON
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: Run List is [recipe[vagrant]]
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: Run List expands to [vagrant]
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: Starting Chef Run for lucid32
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: Processing execute[update-profile-chdir] action run (vagrant::default line 5)
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: execute[update-profile-chdir] sh(printf "
if shopt -q login_shell; then cd /vagrant; fi" >> ~vagrant/.profile)
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: execute[update-profile-chdir] ran successfully
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: Processing execute[update-apt] action run (vagrant::default line 12)
: stdout
[default] [Thu, 22 Dec 2011 15:47:03 -0800] INFO: execute[update-apt] sh(apt-get update && touch /root/.apt-get-updated)
: stdout
[default] [Thu, 22 Dec 2011 15:47:10 -0800] ERROR: execute[update-apt] (vagrant::default line 12) has had an error
: stdout
[default] [Thu, 22 Dec 2011 15:47:10 -0800] ERROR: Running exception handlers
: stdout
[default] [Thu, 22 Dec 2011 15:47:10 -0800] ERROR: Exception handlers complete
: stdout
[default] [Thu, 22 Dec 2011 15:47:10 -0800] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
: stdout
[default] [Thu, 22 Dec 2011 15:47:10 -0800] FATAL: Chef::Exceptions::ShellCommandFailed: execute[update-apt] (vagrant::default line 12) had an error: Expected process to exit 0, but it exited with 100
---- Begin output of apt-get update && touch /root/.apt-get-updated ----
STDOUT: Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B]
Hit http://us.archive.ubuntu.com lucid Release.gpg
Get:2 http://us.archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:3 http://security.ubuntu.com lucid-security Release [44.7kB]
Hit http://us.archive.ubuntu.com lucid Release
Get:4 http://us.archive.ubuntu.com lucid-updates Release [44.7kB]
Get:5 http://security.ubuntu.com lucid-security/main Packages [247kB]
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Get:6 http://us.archive.ubuntu.com lucid-updates/main Packages [536kB]
Get:7 http://security.ubuntu.com lucid-security/restricted Packages [14B]
Get:8 http://security.ubuntu.com lucid-security/main Sources [73.1kB]
Get:9 http://security.ubuntu.com lucid-security/restricted Sources [14B]
Get:10 http://security.ubuntu.com lucid-security/universe Packages [107kB]
Get:11 http://security.ubuntu.com lucid-security/universe Sources [28.1kB]
Get:12 http://security.ubuntu.com lucid-security/multiverse Packages [4557B]
Get:13 http://security.ubuntu.com lucid-security/multiverse Sources [1750B]
Get:14 http://us.archive.ubuntu.com lucid-updates/restricted Packages [3998B]
Get:15 http://us.archive.ubuntu.com lucid-updates/main Sources [208kB]
Get:16 http://us.archive.ubuntu.com lucid-updates/restricted Sources [1850B]
Get:17 http://us.archive.ubuntu.com lucid-updates/universe Packages [246kB]
Get:18 http://us.archive.ubuntu.com lucid-updates/universe Sources [84.9kB]
Get:19 http://us.archive.ubuntu.com lucid-updates/multiverse Packages [10.5kB]
Get:20 http://us.archive.ubuntu.com lucid-updates/multiverse Sources [5073B]
Fetched 1648kB in 6s (248kB/s)
Reading package lists...
STDERR: E: Couldn't make mmap of 25165824 bytes - mmap (22: Invalid argument)
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.
---- End output of apt-get update && touch /root/.apt-get-updated ----
Ran apt-get update && touch /root/.apt-get-updated returned 100
: stdout
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chef-solo -c /tmp/vagrant-chef-1/solo.rb -j /tmp/vagrant-chef-1/dna.json

The output of the command prior to failing is outputted below:

[no output]