/usr/bin/apt-get -y update returned 100 instead of one of [0]
gluefactory opened this issue · 1 comments
I'm sure this is an issue due to my new-ness to vagrant and puppet.
When I run 'vagrant up' it seems to run fine until:
err: /Stage[main]/Oracle::Server/Exec[apt-update]/returns: change from notrun to 0 failed: /usr/bin/apt-get -y update returned 100 instead of one of [0] at /tmp/vagrant-puppet/modules-0/oracle/manifests/init.pp:5
If I run 'vagrant ssh' to connect to the vagrant machine and try and run /usr/bin/apt-get -y update, I get:
vagrant@oracle:~$ /usr/bin/apt-get -y update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I notice that vagrant is not mentioned in the sudeors file. Should it be?
Many thanks,
Ignore - it was a proxy issue