Hi,
Is it a read only file system?
change from
purged to present failed: Could not set 'present on ensure: Read-only
file system - /tmp/puppet20120216-1063-18q7lsz-0 at
/tmp/vagrant-puppet/manifests/vagrant.pp:15
Try doing a remount on / with rw.
Also check if you can do a manual install of the package once you confirm you
can right to the file system.
On 17/02/2012, at 6:03, Jair Gaxiola jyr.gaxi...@gmail.com wrote:
Hi,
I try install python-psycopg2 with other packages, when run apt-get -y
update returns the errors:
err: /Stage[main]/Etc/Package[build-essential]/ensure: change from
purged to present failed: Could not set 'present on ensure: Read-only
file system - /tmp/puppet20120216-1063-18q7lsz-0 at
/tmp/vagrant-puppet/manifests/vagrant.pp:15
err: /Stage[main]/Etc/Package[python-psycopg2]/ensure: change from
purged to present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install python-psycopg2' returned 100:
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
err: /Stage[main]/Python::Gunicorn/File[/var/log/gunicorn]/ensure:
change from absent to directory failed: Could not set 'directory on
ensure: Read-only file system - /var/log/gunicorn at
/tmp/vagrant-puppet/modules-0/python/manifests/gunicorn.pp:11
notice: /Stage[main]/Python::Gunicorn/File[/var/run/gunicorn]/ensure: created
err: /Stage[main]/Python::Venv/Package[python-virtualenv]/ensure:
change from purged to present failed: Execution of '/usr/bin/apt-get
-q -y -o DPkg::Options::=--force-confold install python-virtualenv'
returned 100: W: Not using locking for read only lock file
/var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
err: /Group[puppet]/ensure: change from absent to present failed:
Could not create group puppet: Execution of '/usr/sbin/groupadd
puppet' returned 1:
err: /Stage[main]/Etc/Package[libcurl3-dev]/ensure: change from purged
to present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install libcurl3-dev' returned 100: W:
Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
err: /Stage[main]/Etc/Package[curl]/ensure: change from purged to
present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install curl' returned 100: W: Not
using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
err: /Stage[main]/Monit/Package[monit]/ensure: change from purged to
present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install monit' returned 100: W: Not
using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
notice: /Stage[main]/Monit/File[/etc/default/monit]: Dependency
Package[monit] has failures: true
warning: /Stage[main]/Monit/File[/etc/default/monit]: Skipping because
of failed dependencies
notice: /Stage[main]/Monit/File[/etc/monit/monitrc]: Dependency
Package[monit] has failures: true
warning: /Stage[main]/Monit/File[/etc/monit/monitrc]: Skipping because
of failed dependencies
notice: /Stage[main]/Monit/File[/etc/logrotate.d/monit]: Dependency
Package[monit] has failures: true
warning: /Stage[main]/Monit/File[/etc/logrotate.d/monit]: Skipping
because of failed dependencies
notice: /Stage[main]/Monit/Service[monit]: Dependency Package[monit]
has failures: true
warning: /Stage[main]/Monit/Service[monit]: Skipping because of failed
dependencies
err: /Stage[main]/Etc/Package[git-doc]/ensure: change from purged to
present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install git-doc' returned 100: W: Not
using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
err: /Stage[main]/Etc/Package[libcurl4-gnutls-dev]/ensure: change from
purged to present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install libcurl4-gnutls-dev' returned
100: W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
-a' to correct the problem.
err: /Stage[main]/Dev/Exec[apt-get -y 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/manifests/vagrant.pp:62
err: /Stage[main]/Dev/Exec[apt-get -y make]/returns: change from
notrun to 0 failed: /usr/bin/apt-get -r make upgrade returned 100
instead