Skip to content

Instantly share code, notes, and snippets.

@jpstacey
Last active December 18, 2015 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpstacey/5720430 to your computer and use it in GitHub Desktop.
Save jpstacey/5720430 to your computer and use it in GitHub Desktop.
Initial attempts to run computerminds:parrot VM
...
[default] Running Puppet with /tmp/vagrant-puppet/manifests/bootstrap.pp...
stdin: is not a tty
err: /Stage[main]//Node[default]/Package[puppet]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install puppet' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
augeas-lenses debconf-utils facter libaugeas-ruby1.8 libaugeas0 libreadline5
libruby libruby1.8 libshadow-ruby1.8 puppet-common ruby ruby1.8
Suggested packages:
augeas-doc ruby-json augeas-tools puppet-el vim-puppet etckeeper
ruby-selinux libselinux-ruby1.8 librrd-ruby1.8 ri ruby-dev ruby1.8-examples
ri1.8
Recommended packages:
rdoc
The following NEW packages will be installed:
augeas-lenses debconf-utils facter libaugeas-ruby1.8 libaugeas0 libreadline5
libruby libruby1.8 libshadow-ruby1.8 puppet puppet-common ruby ruby1.8
0 upgraded, 13 newly installed, 0 to remove and 66 not upgraded.
Need to get 3194 kB of archives.
After this operation, 12.5 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libreadline5 amd64 5.2-11 [128 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main libruby1.8 amd64 1.8.7.352-2ubuntu1 [1793 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main ruby1.8 amd64 1.8.7.352-2ubuntu1 [34.3 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main libruby all 4.8 [4766 B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise/main libshadow-ruby1.8 amd64 1.4.1-8build1 [9416 B]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise/main augeas-lenses all 0.10.0-0ubuntu4 [175 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise/main libaugeas0 amd64 0.10.0-0ubuntu4 [171 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main libaugeas-ruby1.8 amd64 0.3.0-1.1ubuntu4 [9642 B]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/main facter all 1.6.5-1ubuntu1 [44.9 kB]
Err http://us.archive.ubuntu.com/ubuntu/ precise-updates/main puppet-common all 2.7.11-1ubuntu2.1
404 Not Found [IP: 91.189.91.13 80]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main debconf-utils all 1.5.42ubuntu1 [54.9 kB]
Err http://security.ubuntu.com/ubuntu/ precise-security/main puppet-common all 2.7.11-1ubuntu2.1
404 Not Found [IP: 91.189.91.15 80]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main ruby all 4.8 [5054 B]
Err http://security.ubuntu.com/ubuntu/ precise-security/main puppet all 2.7.11-1ubuntu2.1
404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/puppet/puppet-common_2.7.11-1ubuntu2.1_all.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/puppet/puppet_2.7.11-1ubuntu2.1_all.deb 404 Not Found [IP: 91.189.91.15 80]
Fetched 2430 kB in 11s (208 kB/s)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
at /tmp/vagrant-puppet/manifests/bootstrap.pp:14
notice: Finished catalog run in 13.68 seconds
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
cd /tmp/vagrant-puppet/manifests && puppet apply --modulepath '/tmp/vagrant-puppet/modules-0' /tmp/vagrant-puppet/manifests/bootstrap.pp --detailed-exitcodes || [ $? -eq 2 ]
@darthsteven
Copy link

Ah, we're being far too clever, and trying to work out when we might need to apt-get update, rather than always doing it before any package handling operations.
We should make it less clever, and run more often.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment