hilverd / vagrant-ubuntu-oracle-xe

Install Oracle 11g XE in a Vagrant virtual machine running Ubuntu 12.04.
MIT License
287 stars 96 forks source link

/usr/bin/apt-get -y update returned 100 instead of one of [0] #23

Closed gluefactory closed 9 years ago

gluefactory commented 9 years ago

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,

gluefactory commented 9 years ago

Ignore - it was a proxy issue